@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600&display=swap");

/* Estilos Generales */
* {
  font-family: "Nunito", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  transition: all 0.2s linear;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

html::-webkit-scrollbar {
  width: 1rem;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: #0eb582;
  border-radius: 5rem;
}

body {
  background: #f7f7f7;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  padding: 2rem 9%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.header .logo {
  font-size: 2.5rem;
  color: #444;
  font-weight: bolder;
}

.header .logo i {
  color: #0eb582;
  padding-right: 0.5rem;
}

.header .navbar {
  display: flex;
  gap: 2rem;
}

.header .navbar #close-navbar {
  display: none;
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 3rem;
  color: #444;
  cursor: pointer;
}

.header .navbar #close-navbar:hover {
  color: #0eb582;
  transform: rotate(90deg);
}

.header .navbar a {
  font-size: 1.7rem;
  color: #444;
}

.header .navbar a:hover {
  color: #0eb582;
}

.header .icons div {
  font-size: 2.5rem;
  color: #444;
  margin-left: 1.5rem;
  cursor: pointer;
}

.header .icons div:hover {
  color: #0eb582;
}

#menu-btn {
  display: none;
}

/* Account Form */
.account-form {
  position: fixed;
  top: 0;
  right: -105%;
  width: 35rem;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1200;
  padding: 2rem;
  text-align: center;
}

.account-form.active {
  right: 0;
  box-shadow: 0 0 0 100vw rgba(0, 0, 0, 0.8);
}

.account-form #close-form {
  position: absolute;
  top: 1.5rem;
  right: 2.5rem;
  font-size: 4rem;
  color: #444;
  cursor: pointer;
}

.account-form #close-form:hover {
  transform: rotate(90deg);
}

.account-form form {
  border: 0.1rem solid #0eb582;
  padding: 2rem;
  display: none;
}

.account-form form.active {
  display: block;
}

.account-form form h3 {
  font-size: 2.5rem;
  color: #444;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
}

.account-form form .box {
  width: 100%;
  padding: 1.2rem 1.4rem;
  border: 0.1rem solid #0eb582;
  font-size: 1.6rem;
  margin: 0.7rem 0;
}

.account-form form .flex {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
}

.account-form form .flex label {
  font-size: 1.5rem;
  color: #777;
  cursor: pointer;
}

.account-form form .flex a {
  font-size: 1.5rem;
  color: #777;
  margin-left: auto;
}

.account-form form .flex a:hover {
  text-decoration: underline;
  color: #0eb582;
}

.account-form form .btn {
  width: 100%;
}

.account-form .buttons .btn {
  margin: 0 0.5rem;
}

.account-form .buttons .btn.active {
  background: #0eb582;
  color: #fff;
}

.heading {
  text-align: center;
  margin-top: 6rem;
  margin-bottom: 3rem;
  font-size: 3.5rem;
  color: #444;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 1rem 3rem;
  font-size: 1.8rem;
  border: 0.1rem solid #0eb582;
  background: #f0fdfa;
  color: #0eb582;
  cursor: pointer;
  text-transform: capitalize;
  border-radius: 0.5rem;
}

.btn:hover {
  background: #0eb582;
  color: #fff;
}

/* HOME - Sección mejorada */
.home {
  padding: 0;
  position: relative;
}

.home .slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60rem;
  background-size: cover !important;
  background-position: left !important;
}

.home .slide .content {
  width: 100rem;
  max-width: 90%;
  padding: 0 2rem;
  margin: 0 auto;
  text-align: left;
}

.home .slide .content h3 {
  font-size: 5.5rem;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.3);
}

.home .slide .content p {
  font-size: 1.6rem;
  color: #eee;
  margin-bottom: 2rem;
  line-height: 1.6;
  padding: 0 1rem;
}

.swiper-pagination-bullet-active {
  background: #0eb582;
}

/* SUBJECTS - Sección mejorada */
.subjects {
  padding: 5rem 9%;
}

.subjects .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 3rem;
  justify-items: center;
}

.subjects .box-container .box {
  width: 100%;
  max-width: 30rem;
  padding: 3rem 2rem;
  text-align: center;
  border: 0.1rem solid #0eb582;
  background: #3a5a40;
  cursor: pointer;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.subjects .box-container .box:hover {
  background: #3a5a40;
  transform: translateY(-0.5rem);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.subjects .box-container .box:hover h3 {
  color: #fff;
}

.subjects .box-container .box:hover p {
  color: #eee;
}

.subjects .box-container .box img {
  height: 10rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.subjects .box-container .box:hover img {
  transform: scale(1.1);
}

.subjects .box-container .box h3 {
  font-size: 1.8rem;
  color: #fff;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.subjects .box-container .box p {
  font-size: 1.4rem;
  color: #eee;
  line-height: 1.6;
  transition: all 0.3s ease;
}

/* ABOUT */
.container-about {
  width: 90%;  /* Ocupa el 90% del ancho disponible */
  max-width: 1800px;  /* Pero nunca más de 1200px */
  margin: 0 auto;  /* Centrado */
  padding: 0 1rem;  /* Pequeño padding para móviles */
}

.about {
  padding: 3rem 0;
}

.about .row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  padding-bottom: 3rem;
}

.about .row .video-container {
  flex: 1 1 40rem;
  position: relative;
}

.about .row .video-container video {
  width: 100%;
  border: 1.5rem solid #0eb582;
  border-radius: .5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.about .row .content {
  flex: 1 1 40rem;
  padding: 0 2rem;
}

.about .row .content h3 {
  font-size: 3rem;
  color: #333;
}

.about .row .content p {
  font-size: 1.5rem;
  color: #999;
  padding: 1rem 0;
  line-height: 1.5;
}

/* Botón de toggle de audio */
.audio-toggle {
  position: absolute;
  bottom: 25px;
  right: 25px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.audio-toggle:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.audio-toggle .icon {
  font-size: 18px;
  color: white;
  transition: all 0.3s ease;
}

.audio-toggle .tooltip {
  position: absolute;
  bottom: 50px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.audio-toggle:hover .tooltip {
  opacity: 1;
}

/* Estado cuando el audio está activo */
.audio-toggle.active .icon {
  content: "🔊";
}

/* FOOTER (MANTENIENDO EL ORIGINAL) */
footer {
  margin-top: 100px;
  background-color: #3a5a40;
  padding: 60px 0;
  color: #fff;
}

.section-footer {
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer-section-logo {
  width: 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 40px;
}

.footer-section-logo .img-logo {
  width: 120px;
  height: 100%;
  align-self: center;
}

.footer-section-logo p {
  font-size: 14px;
  line-height: 1.6;
  text-align: justify;
}

.footer-section-logo .social-links {
  display: flex;
  gap: 20px;
}

.footer-section-logo .social-links i {
  color: #fff;
  font-size: 16px;
  margin-top: 10px;
}

.footer-links {
  display: flex;
  gap: 50px;
  flex: 1;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 1;
}

.footer-column h4 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column ul li {
  cursor: pointer;
  font-size: 14px;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

.footer-column.newsletter {
  flex: 2;
}

.footer-column.newsletter p {
  font-size: 14px;
  line-height: 1.6;
}

.newsletter-form {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
}

.newsletter-form input {
  border: none;
  padding: 15px 20px;
  outline: none;
  width: 70%;
  font-family: inherit;
  flex: 1;
}

.newsletter-form input::placeholder {
  color: #333;
  font-weight: 600;
}

.newsletter-form button {
  border: none;
  background: none;
  margin-right: 20px;
  color: #0eb582;
  cursor: pointer;
}

.credit {
  width: 100%;
  text-align: center;
  font-size: 1.4rem;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.1);
  padding: 1.5rem 0;
  margin-top: 6rem;
  margin-bottom: -60px;
}

/* User Info Styles */
.user-info {
  color: #fff;
  background: #333;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logout-link {
  color: #ff4d4d;
  text-decoration: none;
  font-weight: bold;
}

.logout-link:hover {
  text-decoration: underline;
}



/* PAGINA DE CONTACTO */
#page-header {
    background-image: url(../images/BANNER1.jpg);
    width: 100%;
    height: 40vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 14px;
}

#page-header h2 {
    font-size: 46px;
    line-height: 54px;
    color: #fff;
}

#page-header p {
    font-size: 16px;
    margin: 15px 0 20px 0;
    color: #fff;
}

#contact-details {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#contact-details .details {
    width: 40%;
}

#contact-details .details span,
#form-details form span {
    font-size: 12px;
}

#contact-details .details h2,
#form-details form h2 {
    font-size: 24px;
    /* TamaÃ±o de letras */
    line-height: 35px;
    padding: 20px 0;
}

#contact-details .details h3 {
    font-size: 16px;
    /* TamaÃ±o de letras */
    padding-bottom: 15px;
}

#contact-details .details li {
    list-style: none;
    display: flex;
    padding: 10px 0;
}

#contact-details .details li i {
    font-size: 13px;
    padding-right: 22px;
}

#contact-details .details li p {
    margin: 0;
    font-size: 14px;
}

#contact-details .map {
    width: 55%;
    height: 400px;
}

#contact-details .map iframe {
    width: 100%;
    height: 100%;
}

#form-details {
    display: flex;
    justify-content: space-between;
    margin: 30px;
    padding: 80px;
    border: 1px solid #e1e1e1;
}

#form-details form {
    width: 65%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#form-details form input,
#form-details form textarea {
    width: 100%;
    padding: 12px 15px;
    outline: none;
    margin-bottom: 20px;
    border: 1px solid #e1e1e1;
}

#form-details form button {
    background-color: #088178;
    color: #fff;
}

#form-details .people div {
    max-width: 400px;
    margin-left: 30px;
    /* Agregar este estilo para dar margen al lado derecho */
    padding-bottom: 25px;
    display: flex;
    align-items: flex-start;
    text-align: justify;
}

#form-details .people div img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 50%;
    /* Agregar esta lÃ­nea para recortar en forma de cÃ­rculo */
}

#form-details .people div p {
    margin: 0;
    font-size: 11px;
    line-height: 25px;
}

#form-details .people div p span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #000;
}



/* Media Queries */
@media (max-width: 1200px) {
  .header {
    padding: 2rem 5%;
  }
  
  .home .slide .content h3 {
    font-size: 4.5rem;
  }
  
  .subjects .box-container {
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  }
}

@media (max-width: 991px) {
  html {
    font-size: 55%;
  }
  
  .section-footer {
    flex-direction: column;
    gap: 30px;
  }

  .footer-section-logo {
    width: 100%;
    padding-right: 0;
  }

  .footer-section-logo .img-logo {
    align-self: center;
  }

  .footer-section-logo p {
    text-align: center;
  }

  .footer-section-logo .social-links {
    justify-content: center;
    margin-bottom: 20px;
  }

  .footer-links {
    align-items: center;
    margin-left: 150px;
    gap: 30px;
    width: 100%;
  }

  .footer-column.newsletter {
    margin-left: -300px;
    margin-right: 130px;
    flex: 1;
  }
}

@media (max-width: 768px) {
  #menu-btn {
    display: inline-block;
  }

  .header .navbar {
    position: fixed;
    top: 0;
    right: -105%;
    width: 30rem;
    background: #fff;
    height: 100%;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    padding-top: 15rem;
    z-index: 1200;
  }

  .header .navbar.active {
    right: 0;
    box-shadow: 0 0 0 100vw rgba(0, 0, 0, 0.8);
  }

  .header .navbar #close-navbar {
    display: block;
    margin-top: 15px;
    margin-right: 25px;
  }

  .header .navbar a {
    display: block;
    margin: 1rem 2rem;
    text-align: center;
    font-size: 3rem;
  }
  
  .home .slide {
    height: 50rem;
  }
  
  .home .slide .content h3 {
    font-size: 3.5rem;
  }
  
  .home .slide .content p {
    font-size: 1.6rem;
  }
  
  .subjects .box-container {
    grid-template-columns: 1fr;
    max-width: 40rem;
    margin: 0 auto;
  }

  .about .row .video-container h3 {
    font-size: 2rem;
  }
  
  .audio-toggle {
    width: 36px;
    height: 36px;
    bottom: 15px;
    right: 15px;
  }
  
  .footer-links {
    align-items: center;
    margin-left: 0px;
    gap: 30px;
    width: 90%;
  }

  .footer-column.newsletter {
    margin-top: 30px;
    margin-right: 0px;
    margin-left: -30px;
    flex: 1;
  }

  .newsletter-form input {
    width: 80%;
  }

  .credit {
    max-width: 100%;
    margin-bottom: -40px;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }
  
  .heading {
    font-size: 3rem;
  }
  
  .home .slide .content h3 {
    font-size: 3rem;
  }
  
  .home .slide .content p {
    font-size: 1.4rem;
  }
  
  .account-form {
    width: 100%;
  }
}


.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: white;
    flex-wrap: wrap;
    max-width: 100%;
    padding-left: 10px;
}

.user-info i {
    color: white;
}

.user-email {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

.logout-link {
    color: #ffdddd;
    font-size: 13px;
    text-decoration: none;
}

.logout-link:hover {
    text-decoration: underline;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding-left: 0;
    }

    .user-email {
        max-width: 100%;
        font-size: 13px;
    }

    .logout-link {
        font-size: 12px;
    }
}
