/* Styles to web page */* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

.img-slider-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  display: flex;
  justify-content: center;
}

/* Contenedor del slider */
.img-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 500px;
  overflow: hidden;
  background: transparent;
}

/* Slide oculta por defecto */
.img-slider .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  clip-path: circle(0% at 0 50%);
  opacity: 0;
  transition: clip-path 1.2s ease-in-out, opacity 0.6s ease-in-out;
}

/* Slide visible */
.img-slider .slide.active {
  clip-path: circle(150% at 0 50%);
  opacity: 1;
  z-index: 1;
}

/* Imagen */
.img-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.img-slider .slide .info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.img-slider .info-title {
  align-self: flex-start;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.img-slider .info-title h2 {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
}

.img-slider .info-description {
  align-self: flex-start;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  margin-bottom: 10px;
}

.img-slider .info-description p {
  font-size: 18px;
  margin: 0;
}

.img-slider .slide .info h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.img-slider .navigation {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center; /* Asegura alineación vertical */
  z-index: 3;
}

.img-slider .navigation .btn {
  width: 12px;
  aspect-ratio: 1 / 1; /* Mantiene proporción 1:1 para círculo perfecto */
  background: rgba(255, 255, 255, 0.8);
  margin: 5px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
  display: block; /* Asegura que no herede display flex u otros */
}

.img-slider .navigation .btn.active {
  background: #ff00aa;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.slide-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: inherit;
}

/* RESPONSIVE */
@media (max-width: 920px) {
  .img-slider {
    min-height: 375px;
  }

  .img-slider .slide .info h2 {
    font-size: 30px;
  }
}

@media (max-width: 620px) {
  .img-slider {
    min-height: 280px;
  }

  .img-slider .slide .info {
    padding: 10px 20px;
  }

  .img-slider .slide .info h2 {
    font-size: 26px;
  }

  .img-slider .navigation .btn {
    width: 10px;
    height: 10px;
    margin: 4px;
  }
}

@media (max-width: 420px) {
  .img-slider {
    min-height: 200px;
  }

  .img-slider .slide .info {
    padding: 5px 10px;
  }

  .img-slider .slide .info h2 {
    font-size: 20px;
  }
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: #fff;
  background-color: rgba(0,0,0,0.4);
  padding: 10px;
  cursor: pointer;
  z-index: 4;
  user-select: none;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.arrow:hover {
  background-color: rgba(0,0,0,0.7);
}

.left-arrow {
  left: 20px;
}

.right-arrow {
  right: 20px;
}


/* Estilos para redes sociales */

.social-icons-section {
  padding: 2em 0;
  text-align: center;
  width: 100%;
}

.social-icons-container {
  display: flex;
  justify-content: center;
  gap: 2em;
  flex-wrap: wrap;
  padding: 0 1em;
  max-width: 100%;
}

.social-icons-container a {
  display: inline-block;
  width: clamp(2.5em, 5vw, 4em); 
}

.social-icons-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Estilo de banner (escuela/conferencias)*/


.promo-banner {
  width: 100%;
  padding: 2em 1em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.promo-banner a {
  display: inline-block;
  width: 100%;
  max-width: 1200px; /* Antes 100% y max 800px */
}

.responsive-banner {
  width: 100%;
  height: auto;
  display: block;
}


/* Recursos de gridview */

.resources-section {
  padding: 4em 0; /* 4em arriba y abajo, puedes ajustar */
}

@media (max-width: 768px) {
  .character img {
    max-width: 120px;
  }
}

/* Contenedor principal de toda la sección de recursos */
.resources-wrapper {
  display: flex;
  justify-content: center;
  align-items: center; /* <-- CAMBIA esto */
  gap: 2em;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  flex-wrap: nowrap; /* <-- IMPORTANTE: evita salto de línea */
}

/* Contenedor de las dos filas */
.resources-container {
  display: flex;
  flex-direction: column;
  gap: 3em;
  width: 100%;
  max-width: 1000px;
}

/* Grid de recursos */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.grid-top {
  column-gap: 7em; /* Espacio extra solo en la fila superior */
}

.grid-bottom {
  column-gap: 2em;
}


.resource-item img {
  width: 80px;
  height: auto;
  max-width: 100%;
}

.resource-item h3 {
  font-size: 1.1em;
  margin: 0.5em 0 0.2em;
  font-weight: 700;
}

.resource-item p {
  font-size: 0.95em;
  color: #333;
}

.character {
  display: flex;
  align-items: center;
  height: 100%;
}

.character img {
  max-height: 300px;
  width: auto;
  object-fit: contain;
}

.resource-item a {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease-in-out;
}

.resource-item img {
  transition: transform 0.3s ease;
}

.resource-item:hover img {
  transform: scale(1.1);
}



/* Newsletter section container */


.newsletter-section {
  background-color: #fff;
  padding: 4em 2em;
}

/* Section title */
.newsletter-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2em;
  color: #111;
}

/* Cards container */
.newsletter-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
}

/* Individual card */
.newsletter-card {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
  max-width: 350px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Image container with cropping */
.newsletter-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.newsletter-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content area under image */
.newsletter-content {
  padding: 1.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8em;
}

.newsletter-date {
  font-weight: bold;
  color: #111;
  margin: 0;
}

.newsletter-content h3 {
  font-size: 1rem;
  color: #222;
  margin: 0;
}

.btn-info {
  background: #162847;
  color: #fff;
  text-align: center;
  padding: 0.6em 1em;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.2s ease; /* add transition */
}

.btn-info:hover {
  transform: scale(1.05); /* hover animation */
}

/* Wrapper for "Ver más" button */
.newsletter-more-wrapper {
  margin-top: 2.5em;
  text-align: center;
}

/* "Ver más" button style */
.newsletter-more-btn {
  display: inline-block;
  background: linear-gradient(90deg, #be2edd, #e056fd); /* rosa-magenta gradient */
  color: #fff;
  padding: 0.75em 2em;
  border-radius: 999px;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}


.newsletter-more-btn:hover {
  transform: scale(1.05);
}



/* ESTILOS DE EVENTOS */

.eventos-section {
  position: relative;
  padding: 60px 20px;
  color: #fff;
}

.eventos-background {
  background-image: url('../img/backgrounds/bg-eventos.webp');
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.eventos-overlay {
  background: rgba(112, 0, 112, 0.267); 
  width: 100%;
  height: 100%;
}

.eventos-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.eventos-wrapper h2 {
  font-size: 36px;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.eventos-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.evento-card {
  background: #fff;
  color: #333;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.evento-img img {
  width: 100%;
  height: auto;
  border-radius: 100%;
  max-width: 100px;
  margin: auto;
}

.evento-info {
  padding-left: 20px;
  text-align: left;
}

.evento-fecha {
  font-weight: bold;
  color: #555;
}

.evento-titulo {
  font-size: 16px;
  margin: 10px 0;
}

.evento-titulo .rosa {
  color: #c70086;
}

.evento-lugar {
  font-size: 14px;
  color: #777;
}

/* Popup general */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.popup-overlay.hidden {
  display: none;
}

.popup-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  max-width: 95vw;
  max-height: 95vh;
  overflow: auto;
}

.popup-content img {
  width: 100%;
  max-width: 800px;
  max-height: 80vh;
  height: auto;
  display: block;
  margin: auto;
  border-radius: 8px;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #000;
  cursor: pointer;
  font-weight: bold;
}

.popup-loader {
  text-align: center;
  font-weight: bold;
  padding: 40px;
  font-size: 1.2rem;
  color: #555;
}


/* ESTILOS COLUMNAS */

.opinion-section {
  padding: 50px 20px;
  background-color: #ffffff;
  text-align: center;
}

.opinion-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 30px;
}

.opinion-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  position: relative;
  overflow: hidden;
  height: 520px;
}


.opinion-card {
  width: 300px;
  padding: 25px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute; /* obligatorio para que el JS tenga control */
  transition: transform 0.5s ease;
}

.opinion-inner {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.opinion-card:hover .opinion-inner {
  transform: translateY(-11px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

.opinion-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #b4137b;
  margin-bottom: 20px;
}

.opinion-subtitle {
  font-size: 1rem;
  margin-bottom: 10px;
}

.opinion-author {
  font-weight: bold;
  text-decoration: underline;
  margin: 10px 0 5px;
}

.opinion-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.opinion-btn {
  background: linear-gradient(to right, #b4137b, #e13a92);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.opinion-btn:hover {
    transform: scale(1.05);
}

.arrow {
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  color: #999;
}

.see-more-wrapper {
  margin-top: 30px;
}

.see-more-btn {
  display: inline-block;
  background-color: #1d2c58;
  color: white;
  padding: 10px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.see-more-btn:hover {
    transform: scale(1.05);
}

/* ESTILOS PARA LOS VIDEOS*/

.videos-section {
  padding: 60px 20px;
  background-image: url('../img/backgrounds/bg-videos.webp'); /* Ajusta si cambias la ruta */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.videos-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: bold;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: scale(1.02);
}

.video-card img {
  width: 100%;
  height: auto;
  display: block;
}

.video-card .overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px 15px;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.video-card h3 {
  font-size: 1rem;
  margin: 0;
}

.social-icon {
  width: 24px;
  height: 24px;
}
