/* ===== Footer ===== */

#contacto {
  background: #34495e;
  color: #fff;
  padding: 60px 20px 30px;
  font-family: "Segoe UI", Arial, sans-serif;
}

#contacto .footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: space-between;
}

/* Cada columna */

#contacto .footer-column {
  flex: 1;
  /* Tres columnas iguales */
  min-width: 220px;
  /* Evita que se achique demasiado */
}

#contacto .footer-column h1,
#contacto .footer-column h3 {
  color: #e8b339;
  margin-bottom: 15px;
}

#contacto .footer-column p {
  color: #fff;
  line-height: 1.6;
  font-size: 0.95rem;
}

#contacto .footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#contacto .footer-column ul li {
  margin-bottom: 10px;
}

#contacto .footer-column ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

#contacto .footer-column ul li a:hover {
  color: #f5c65a;
}

#contacto .footer-column ul li i {
  margin-right: 8px;
  color: #f5c65a;
}

/* Footer inferior */

#contacto .footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
  margin-top: 30px;
  font-size: 0.85rem;
  color: #ccc;
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  #contacto .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }
  #contacto .footer-column {
    flex: 1 1 100%;
  }
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
  #contacto .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  #contacto .footer-section {
    flex: 1 1 100%;
  }
  #contacto .footer-section ul li i {
    display: inline-block;
  }
}


.hero {
  background: linear-gradient(135deg, #2b3a4a, #3c5870);
  color: #fff;
  padding: 120px 20px 80px;
  text-align: center;
  margin-top:-3rem;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #d08c42;
  /* ocre vibrante */
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #d0d8e0;
  /* gris claro */
}

.btn-secondary {
  background: #d08c42;
  color: #2b3a4a;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(245, 198, 90, 0.3);
  /* más dorado en sombra */
}

.btn-secondary:hover {
  background: #f5c65a;
  color: #2b3a4a;
  transform: translateY(-2px);
}

/* Secciones */

.about,
.how-it-works,
.highlighted-memory,
.cta {
  background: #3c5870;
  color: #eee;
}

.memory-description h2 {
  color: #f5c65a;
  /* dorado/amarillo */
}

.section-title h2 {
  color: #d08c42;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.section-title p,
.about-text p,
.feature p,
.step p,
.memory-description p,
.cta p {
  color: #d0d8e0;
}

.about-text h3 {
  color: #f5c65a;
}

/* Features */

.features {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.feature {
  flex: 1 1 180px;
  background: #2b3a4a;
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 4px 15px rgba(245, 198, 90, 0.25);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(245, 198, 90, 0.45);
  /* amarillo más presente */
}

.feature i {
  font-size: 2.5rem;
  color: #f5c65a;
  /* más amarillo en iconos */
  margin-bottom: 10px;
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: #d08c42;
}

/* Cómo funciona */

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.step {
  background: #2b3a4a;
  flex: 1 1 220px;
  border-radius: 15px;
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(245, 198, 90, 0.2);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(245, 198, 90, 0.45);
  /* amarillo extra */
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: #f5c65a;
  /* amarillo más intenso */
  color: #2b3a4a;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.2rem;
}

.step i {
  font-size: 3rem;
  color: #f5c65a;
  /* iconos steps amarillos */
  margin-bottom: 15px;
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #d08c42;
}

/* Estilos para la sección CTA */
.cta {
  background: linear-gradient(135deg, #34495e 0%, #2b3a4a 100%);
  padding: 80px 20px;
  text-align: center;
  border-top: 3px solid #d08c42;
}

.cta .container {
  max-width: 800px;
}

.cta h2 {
  color: #d08c42;
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cta p {
  color: #d0d8e0;
  font-size: 1.3rem;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn {
  background: linear-gradient(135deg, #d08c42 0%, #f5c65a 100%);
  color: #2b3a4a;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(245, 198, 90, 0.4);
  border: 2px solid transparent;
  display: inline-block;
}

.cta .btn:hover {
  background: linear-gradient(135deg, #f5c65a 0%, #d08c42 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245, 198, 90, 0.6);
  border-color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .cta {
    padding: 60px 20px;
  }
  
  .cta h2 {
    font-size: 2rem;
  }
  
  .cta p {
    font-size: 1.1rem;
  }
  
  .cta .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .cta {
    padding: 50px 15px;
  }
  
  .cta h2 {
    font-size: 1.8rem;
  }
  
  .cta p {
    font-size: 1rem;
  }
  
  .cta .btn {
    padding: 10px 25px;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .memory-layout {
    flex-direction: column;
  }
  .memory-image {
    margin-bottom: 20px;
    margin-top: -50px;
    /* Sube un poco más */
  }
}

/* Responsive */

@media (max-width: 768px) {
  .about-content,
  .memory-layout {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .events-banner {
    top: 180px;
  }
  .hero {
    padding-top: 50px;
  }
  .events-banner a {
    font-size: 0.9em;
    white-space: normal;
  }
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Llavero */

.llavero {
  background: #2b3a4a;
  color: #eee;
  padding: 60px 20px;
}

.llavero .section-title h2 {
  color: #d08c42;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
}

.llavero .section-title p {
  color: #d0d8e0;
  margin-bottom: 40px;
}

.llavero-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: center;
}

.llavero-image img {
  max-width: 300px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(245, 198, 90, 0.25);
}

.llavero-text {
  max-width: 500px;
}

.llavero-text h3 {
  color: #f5c65a;
  margin-bottom: 15px;
}

.llavero-text p {
  color: #fff;
  line-height: 1.6;
}

/* Responsive */

@media (max-width: 768px) {
  .llavero-content {
    flex-direction: column;
    text-align: center;
  }
  .llavero-text {
    max-width: 100%;
  }
}

.events-banner {
  position: relative;
  /* ya no fixed */
  top: auto;
}

section {
  padding: 30px 0;
  /* espacio interno en vez de separación externa */
  margin: 0;
  /* quitamos el margin */
}


section {
  scroll-margin-top: 60px;
  
}

/* Estilo base (PC y pantallas grandes) */

.about-image {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.img-inferior,
.img-inferior-2 {
  width: 400px;
  height: 400px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: none !important;
}

/* Tablets */

@media (max-width: 992px) {
  .img-inferior,
  .img-inferior-2 {
    width: 300px;
    height: 300px;
  }
}

/* Celulares */

@media (max-width: 600px) {
  .about-image {
    flex-direction: column;
    /* apila las imágenes */
  }
  .img-inferior,
  .img-inferior-2 {
    width: 70%;
    max-width: 250px;
    height: auto;
    /* que mantengan proporción */
  }
}

.event-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-size: 1.3rem;
  font-weight: 500;
}

.event-list li {
  background: #2c3e50;
  padding: 15px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  justify-content: center;
  color: #fff;
}

.event-list i {
  color: #f5c65a;
}

/* 📱 Responsive para celulares */

@media (max-width: 600px) {
  .event-list ul {
    flex-direction: column;
    /* los apila */
    align-items: center;
  }
  .event-list li {
    width: 100%;
    max-width: 280px;
    /* no más de 280px para que no ocupen todo */
    font-size: 1.1rem;
  }
}

/* Asegurar que el texto sea responsive */

@media (max-width: 768px) {
  .memory-description > div {
    margin: 20px 0 !important;
    padding: 12px !important;
  }
  .memory-description p {
    font-size: 0.9rem !important;
  }
}

/* ---- AÑADE ESTE CÓDIGO AUTOMÁTICO ---- */

/* Colorea las secciones IMPARES (la 1ra, 3ra, 5ta...) con el tono oscuro */

/* La primera sección es la de "sobre", ya que "hero" no comparte la misma etiqueta */

body > section:nth-of-type(odd) {
  background: #3c5870;
  /* Tono claro */
}

/* Colorea las secciones PARES (la 2da, 4ta, 6ta...) con el tono claro */

body > section:nth-of-type(even) {
  background: #2b3a4a;
  /* Tono oscuro */
}

/* --- EXCEPCIÓN IMPORTANTE --- */

/* Le decimos que la sección Hero debe mantener su gradiente especial y no ser afectada */

.hero {
  background: linear-gradient(135deg, #2b3a4a, #3c5870) !important;
}

.llavero {
  padding: 40px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#como-funciona .section-title p {
  color: #ffffff;
  /* Color blanco */
  font-weight: 600;
  font-size: 1.3rem;
  font-style: italic;
  margin-top: 10px;
}

.section-title p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  color: #ffffff;
  /* Color blanco */
}

.llavero-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.llavero-button-container {
  flex: 0 0 auto;
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.diseno-infantil-btn {
  display: inline-block;
  background: linear-gradient(135deg, #f5c65a 0%, #e8b339 100%);
  color: #6a4c93;
  padding: 18px 35px;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(245, 198, 90, 0.4);
  transition: all 0.3s ease;
  border: 3px solid #fff;
  cursor: pointer;
  min-width: 220px;
  margin-bottom: 30px;
}

.diseno-infantil-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(245, 198, 90, 0.6);
  background: linear-gradient(135deg, #e8b339 0%, #f5c65a 100%);
}

.diseno-infantil-btn i {
  margin-right: 10px;
  font-size: 1.6rem;
}

/* Cuadrícula de imágenes de personajes */

.personajes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 25px 0;
}

.personaje-item {
  background: white;
  border-radius: 10px;
  padding: 0;
  /* Eliminamos el padding */
  text-align: center;
  transition: transform 0.3s ease;
  border: 2px solid #f9f5f0;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Para que la imagen no se salga del borde redondeado */
}

.personaje-item:hover {
  transform: translateY(-3px);
  border-color: #f5c65a;
}

.personaje-item img {
  width: 100%;
  /* Ocupa todo el ancho */
  height: 100%;
  /* Ocupa todo el alto */
  object-fit: fill;
  /* Cubre todo el espacio sin distorsionar */
  border-radius: 8px;
  /* Un poco menos que el contenedor */
}

.llavero-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.llavero-text h3 {
  font-size: 2.1rem;
  margin-bottom: 20px;
}

.llavero-text p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.llavero-text p strong {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #f5c65a;
}

.character-list {
  list-style: none;
  margin: 20px 0;
}

.character-list li {
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  font-size: 1.1rem;
  color: #ffffff;
}

.character-list li i {
  position: absolute;
  left: 0;
  top: 5px;
  color: #f5c65a;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .llavero-content {
    flex-direction: column;
    text-align: center;
  }
  .section-title h2 {
    font-size: 2rem;
  }
  .llavero-text h3 {
    font-size: 1.5rem;
  }
  .diseno-infantil-btn {
    font-size: 1.2rem;
    padding: 15px 30px;
  }
  .personajes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .personajes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Base - Escritorio (≥ 993px) */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2.5rem; /* ~40px */
  font-weight: 700;
  color: #d08c42;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
}

.section-title p {
  font-size: 1.2rem; /* ~19px */
  max-width: 700px;
  margin: 0 auto;
  color: #ffffff;
  font-weight: 400;
  line-height: 1.6;
}

/* Tablets (≤ 992px) */
@media (max-width: 992px) {
  .section-title h2 {
    font-size: 2.1rem; /* ~34px */
  }
  .section-title p {
    font-size: 1.1rem; /* ~18px */
  }
}

/* Móviles (≤ 768px) */
@media (max-width: 768px) {
  .section-title h2 {
    font-size: 1.8rem; /* ~29px */
  }
  .section-title p {
    font-size: 1rem; /* ~16px */
  }
}



/* Móviles pequeños (≤ 480px) */
@media (max-width: 480px) {
  .section-title h2 {
    font-size: 1.5rem; /* ~24px */
  }
  .section-title p {
    font-size: 0.95rem; /* ~15px */
  }
}

.memory-content {
  display: flex;
  align-items: center;
  gap: 20px; /* Menor gap */
  justify-content: space-between;
  flex-wrap: nowrap;
  min-height: 400px; /* Altura mínima */
}

.memory-text {
  flex: 1;
  min-width: 300px; /* Ancho mínimo para el texto */
}

.memory-image {
  flex-shrink: 0;
  min-width: 250px; /* Ancho mínimo para la imagen */
}

.image-preview img {
  max-width: 240px; /* Imagen más compacta */
}
/* Pone la imagen a la derecha en la sección de recuerdo destacado */
#recuerdo-destacado .memory-layout {
  display: flex;
  flex-direction: row; /* texto izquierda, imagen derecha */
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* En móviles, que se apilen */
@media (max-width: 768px) {
  #recuerdo-destacado .memory-layout {
    flex-direction: column;
  }
}
/* ---------------------------
   Click-hint (texto junto al título) como link
   --------------------------- */
#recuerdo-destacado .click-hint a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.12);
  color: #f5c65a;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  margin-top: 12px;
  width: max-content;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 200ms ease;
}

#recuerdo-destacado .click-hint a i {
  font-size: 1rem;
  color: #f5c65a;
  line-height: 1;
}

#recuerdo-destacado .click-hint a:hover {
  transform: translateY(-2px);
}


/* ---------------------------
   Contenedor de la imagen (link)
   --------------------------- */
#recuerdo-destacado .image-preview {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform 320ms ease, box-shadow 320ms ease;
  text-decoration: none;
}

/* efecto zoom suave sobre la imagen */
#recuerdo-destacado .image-preview img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 400ms ease;
}

/* al hover o foco (accesible por teclado) */
#recuerdo-destacado .image-preview:hover,
#recuerdo-destacado .image-preview:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.45);
}
#recuerdo-destacado .image-preview:hover img,
#recuerdo-destacado .image-preview:focus-within img {
  transform: scale(1.04);
}

/* outline visible para accesibilidad */
#recuerdo-destacado .image-preview:focus {
  outline: 3px solid rgba(208,140,66,0.18);
  outline-offset: 6px;
}

/* ---------------------------
   Overlay (icono + texto "Ver ejemplo completo")
   --------------------------- */
#recuerdo-destacado .preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  color: #fff;
  pointer-events: none;                /* no interfiere hasta que aparezca */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.65) 100%);
  text-align: center;
}

/* aparece al hover o focus (teclado) */
#recuerdo-destacado .image-preview:hover .preview-overlay,
#recuerdo-destacado .image-preview:focus-within .preview-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* estilo del icono circular */
#recuerdo-destacado .preview-overlay i {
  background: #f5c65a;
  color: #2b3a4a;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.25rem;
  box-shadow: 0 6px 18px rgba(208,140,66,0.2);
}

/* etiqueta "Ver ejemplo completo" */
#recuerdo-destacado .preview-overlay span {
  display: inline-block;
  background: rgba(245,198,90,0.12);
  padding: 8px 14px;
  border-radius: 22px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: none;
  color: #fff;
  font-size: 0.95rem;
}

/* ---------------------------
   Comportamiento en móviles: como no hay hover, mostramos la etiqueta abajo
   --------------------------- */
@media (max-width: 768px) {
  #recuerdo-destacado .preview-overlay {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
    align-items: center;
    justify-content: flex-end;
    padding: 12px;
  }

  #recuerdo-destacado .preview-overlay i {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  /* Si querés que en móvil la imagen no haga zoom */
  #recuerdo-destacado .image-preview:hover img {
    transform: none;
  }
}
