/*
* Diseñado por: Ezequiel Ronaldo Espíritu Apolinar
* Formación: Lic. Animación y arte digital
* Correo: ezequielapolinar512@gmail.com
* Redes: @kabu.studios y @Cheku.exe
* Este código está protegido por derechos de autor
*/

footer {
  margin-top: 0px;
  padding: 20px 10px; 
  background: linear-gradient(135deg, #5a5280 0%, #443d68 100%);
  color: #fff;
  font-weight: bold;
  position: relative;
  text-align: center;
  height: auto;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 0;
  overflow: visible !important; 
}

@font-face {
  font-family: 'PoetsenOne-regular';
  src: url('./icons/PoetsenOne-Regular.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

/* texto del footer */
h5 {
  font-family: 'PoetsenOne-regular', sans-serif;
  font-size: 12px;
  margin-top: -5px;
  line-height: 1.6;
  margin-inline-end: auto;
  letter-spacing: 0.5px;
  text-align: center;
}

h3 {
  font-family: 'PoetsenOne-regular', sans-serif;
  font-size: 14.2px;
}
span {
  font-family: 'PoetsenOne-regular', sans-serif;
  font-size: 14.2px;
}

i {
  color: #fff;
  font-size: 0.9rem ;
  align-items: center;
}

body {
  position: relative;
  padding-bottom: 0;
  overflow-x: hidden;
}

body > main {
  flex: 1;
}

/* Rectángulos decorativos superior e inferior con gradiente igual */
footer::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 0px;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, #f2264f 0%, #6171fb 50%, #79d4f3 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  z-index: 1;
  pointer-events: none;
  opacity: 0.98;
}

footer::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 0px;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, #f2264f 0%, #6171fb 50%, #79d4f3 100%);
  box-shadow: 0 -6px 14px rgba(0, 0, 0, 0.12);
  z-index: 1;
  pointer-events: none;
  opacity: 0.98;
}


@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Animaciones */
@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes countIncrement {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

a:-webkit-any-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.carousel-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card.selected {
  border: 4px solid #bafcff;
  transform: scale(1.1);
  z-index: 1;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Redes sociales con íconos mejorados */
.social {
  margin-top: 50px;
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.social a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #e591ff, #ff76aa, #ffc874);
  padding: 12px 25px;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(255, 73, 255, 0.477);
  position: relative;
  overflow: hidden;
  border: 2px linear-gradient(135deg, #7ab3fd, #ff70b1, #ff4d4d);
}

.social a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.692), transparent);
  transition: 0.5s;
}

.social a:hover {
  background: linear-gradient(135deg, #ff80ce, #ff87bd);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgb(255, 64, 64);
  color: #fff;
}

.social a:hover::before {
  left: 100%;
}

.social img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.54));
}

.social a:hover img {
  transform: scale(1.2) rotate(10deg);
}

/* Animaciones específicas para cada red social */
.social a:nth-child(1) { /* whatsapp */
  background: linear-gradient(135deg, #06e44c, #14d166, #70ea93);
  box-shadow: 0 4px 15px rgba(59, 152, 70, 0.433);
}
.social a:nth-child(1):hover {
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 8px 25px rgba(59, 152, 70, 0.522);
}
.social a:nth-child(2) { /* Facebook */
  background: linear-gradient(135deg, #3b5998, #368bfa, #78b2fe);
  box-shadow: 0 4px 15px rgba(59, 88, 152, 0.437);
}
.social a:nth-child(2):hover {
  background: linear-gradient(135deg, #1877f2, #3b5998);
  box-shadow: 0 8px 25px rgba(63, 99, 178, 0.59);
}
.social a:nth-child(3) { /* Instagram */
  background: linear-gradient(135deg, #ba52ff, #ff59cd, #ffcb51, #ff5f52, #8352ff);
  background-size: 200% 200%;
  box-shadow: 0 4px 15px rgba(137, 43, 200, 0.493);
  animation: instagramGradient 8s ease infinite;
}
.social a:nth-child(3):hover {
  background: linear-gradient(135deg, #db78ff, #ff8ddb, #ffcc80, #fd8f83, #b88fff);
  box-shadow: 0 8px 25px rgba(59, 89, 152, 0.4);
}

.social a:nth-child(4) { /* YouTube */
  background: linear-gradient(135deg, #ff5959, #c72c2c);
  box-shadow: 0 4px 15px rgba(167, 11, 11, 0.601);
}
.social a:nth-child(4):hover {
  background: linear-gradient(135deg, #cc0000, #ff0000);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}
.social a:nth-child(5) { /* Pinterest */
  background: linear-gradient(135deg, #f40156, #bb002f, #fb2e5a);
  box-shadow: 0 4px 15px rgba(170, 13, 60, 0.597);
}
.social a:nth-child(5):hover {
  background: linear-gradient(135deg, #ff2a6e, #ff1d46, #b9033d);
  box-shadow: 0 8px 25px rgba(229, 17, 102, 0.641);
}
.social a:nth-child(6) { /* Mail */
  background: linear-gradient(135deg, #00eeff, #56a5f0, #88dbff);
  box-shadow: 0 4px 15px rgba(0, 139, 177, 0.693);
}
.social a:nth-child(6):hover {
  background: linear-gradient(135deg, #4298bb, #64d3ff);
  box-shadow: 0 8px 25px rgba(0, 106, 177, 0.4);
}
.social a:nth-child(7) { /* Google Maps */
  background: linear-gradient(135deg, #4285f4, #2eab4f, #fbbc05, #ea4335);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.381);
}
.social a:nth-child(7):hover {
  background: linear-gradient(135deg, #34a853, #fbbc05, #f76255, #538ae3);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.332);
}

@keyframes instagramGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Efecto al hacer clic */
.social a:active {
  animation: clickWave 0.4s ease-out;
}

@keyframes clickWave {
  0% { transform: translateY(-5px) scale(1.05); }
  50% { transform: translateY(0) scale(0.95); }
  100% { transform: translateY(-5px) scale(1.05); }
}

/* Responsive */
@media (max-width: 768px) {
  .social {
    gap: 15px;
  }
  .social a {
    padding: 10px 20px;
    font-size: 1rem;
  }
  .social img {
    width: 24px;
    height: 24px;
  }
}

/* Redes sociales */
.social {
  display: flex;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: -5px;
  padding: 5px;
}
.social a {
  border-radius: 15px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);;
  transition: all 0.3s ease;
}
.social a:hover {
  transform: scale(1.05);
}
.social img {
  width: 24px;
  height: 24px;
}

/* Logo original */
.school-logo {
  width: 80px;
  height: 90px;
  transition: all 0.3s ease;
  padding: 5px;
  object-fit: contain;
}

/* Efectos hover para el logo */
.school-logo:hover {
  transform: scale(1.2) rotate(5deg);
  filter: brightness(1.1);
}

/* Titulo nuevo */
.school-logo-2 {
  height: 90px;
  width: auto;
  max-width: 400px;
  transition: all 0.3s ease;
  padding: 5px;
  object-fit: contain;
  position: relative;
  top: 3px;
  
  /* Ajuste de alineación vertical */
  position: relative;
  top: 3px;
}

/* Responsive */
@media (max-width: 900px) {
  .school-logo-2 {
    max-width: 350px;
  }
}

@media (max-width: 768px) {
  .school-title-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .school-logo-2 {
    max-width: 300px;
    top: 0;
  }
}

@media (max-width: 480px) {
  .school-logo-2 {
    max-width: 250px;
  }
  
  .school-logo {
    width: 70px;
    height: 80px;
  }
}

/* responsive */
@media (max-width: 768px) {
  .school-title-container {
    flex-direction: column;
  }
  
  .school-logo-2 {
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .school-logo-2 {
    max-width: 200px;
  }
}

/* Efecto decorativo opcional para el título */
.school-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e74c3c, transparent);
}

/* estilos para contador de visitas */
.visit-counter {
  position: absolute;
  width: 100px;
  bottom: 15px;
  right: 0px;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  padding: 5px 2px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(88, 255, 177, 0.995),
              inset 0 0 10px rgba(255, 255, 255, 0.1);
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-family: 'Segoe UI', sans-serif;
}

.visit-counter:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4),
              0 0 0 2px rgba(121, 212, 243, 0.6),
              inset 0 0 15px rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.75);
}

.counter-icon {
  background: linear-gradient(135deg, #61fbb8, #59b182);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseIcon 2.5s ease infinite;
  box-shadow: 0 0 10px rgba(97, 113, 251, 0.5);
}

.counter-icon i {
  font-size: 12px;
  color: white;
}

#visit-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}

#visit-count {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.loading-icon {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

@keyframes pulseIcon {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 0 10px rgba(97, 113, 251, 0.5);
  }
  50% { 
    transform: scale(1.1); 
    box-shadow: 0 0 15px rgba(97, 113, 251, 0.8);
  }
}

/* Efecto de brillo al completar */
@keyframes countComplete {
  0% { text-shadow: 0 0 5px rgba(247, 247, 247, 0.7); }
  50% { text-shadow: 0 0 15px rgb(72, 157, 255); }
  100% { text-shadow: 0 0 5px rgba(183, 183, 183, 0.873); }
}

@media (max-width: 768px) {
    footer {
        padding: 30px 5%;
        text-align: center;
        width: auto;
        height: auto;
    }
    
    .social {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .social a {
        margin: 0 8px;
    }
    
    .social img {
        width: 30px;
        height: 30px;
    }
    
    .contact-info-horizontal {
        margin-bottom: 20px;
        font-size: 0.9rem;
    }
    
    .visit-counter {
        margin-bottom: -10px;
        height: 30px;
        width: 80px;
    }
    
    footer h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    footer h5 {
        font-size: 0.8rem;
        margin-top: -10px;
    }
}

/* Estilos para el enlace de privacidad en el footer */
#privacy-link-footer {
  color: #ffd41f;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

#privacy-link-footer:hover {
  color: #ffed4a;
  text-decoration: underline;
}

/* Modal discreto para Aviso de Privacidad */
.privacy-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  animation: modalFadeIn 0.3s ease-out;
  border-top: 4px solid #003c8b;
  max-height: 80vh;
  overflow-y: auto;
}

@keyframes modalFadeIn {
  from { 
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to { 
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.privacy-modal-header {
  padding: 18px 20px;
  background: linear-gradient(135deg, #003c8b, #0056b3);
  color: white;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1;
}

.privacy-modal-header h3 {
  margin: 0;
  font-family: 'PoetsenOne', sans-serif;
  font-size: 1.3rem;
}

.privacy-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.privacy-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.privacy-modal-content {
  padding: 25px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.privacy-modal-content p {
  margin-bottom: 15px;
  text-align: justify;
}

.privacy-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 9999;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
  .privacy-modal {
    width: 95%;
    max-height: 85vh;
  }
  
  .privacy-modal-header {
    padding: 15px;
  }
  
  .privacy-modal-header h3 {
    font-size: 1.2rem;
  }
  
  .privacy-modal-content {
    padding: 20px 15px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .privacy-modal {
    width: 98%;
    max-height: 90vh;
  }
  
  .privacy-modal-header {
    padding: 12px 15px;
  }
  
  .privacy-modal-content {
    padding: 15px 12px;
  }
}