/* ════════════════════════════════════════════
   PTYC1.CSS — Estilos exclusivos de ptyc1.html
   Se carga DESPUÉS de base.css y subpaginas.css
   ════════════════════════════════════════════ */


/* ── BOTÓN FLOTANTE "INSCRIPCIÓN" ─────────────
   Mismo lenguaje visual que .back-btn (subpaginas.css)
   pero espejado a la derecha, ancla a #ptyc-cta.
   ─────────────────────────────────────────── */

.ptyc-float-inscripcion {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  display: inline-flex;
  align-items: stretch;
  height: 36px;
  text-decoration: none;
  z-index: 999;
}

.ptyc-float-text {
  background: var(--orange);
  color: var(--white);
  font-family: var(--font);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

.ptyc-float-arrow {
  background: var(--black);
  color: var(--white);
  font-size: var(--text-base);
  padding: 0 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
}

.ptyc-float-inscripcion:hover .ptyc-float-text  { background: var(--black); color: var(--white); }
.ptyc-float-inscripcion:hover .ptyc-float-arrow { background: var(--orange); }

/* Estado cerrado: fuera del rango inicio_inscripcion/cierre_inscripcion de la edición */
.ptyc-float-inscripcion--cerrado { opacity: 0.5; }
.ptyc-float-inscripcion--cerrado:hover .ptyc-float-text  { background: var(--orange); color: var(--white); }
.ptyc-float-inscripcion--cerrado:hover .ptyc-float-arrow { background: var(--black); }


/* ── BENTO GRID ──────────────────────────────
   Grilla de 3 columnas para las cards
   de presentación del evento.
   ─────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

/* Card base: fondo blanco, flex column centrado */
.bento-card {
  background: var(--white);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; text-transform: uppercase; }
.bento-card p  { font-family: var(--font-body); font-size: 0.95rem; line-height: 1.5; color: rgba(0,0,0,0.75); }

/* Ícono decorativo sobre el título de cada card */
.bento-icon-wrap { font-size: 2rem; margin-bottom: 1rem; color: var(--bg); }

/* Card principal: ocupa las 3 columnas, horizontal */
.bento-main {
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}
.bento-main h2 { font-size: 2rem; font-weight: 900; text-transform: uppercase; line-height: 1.1; margin-top: 0.5rem; margin-bottom: 1rem; }

/* Badge "Desde 2024" */
.bento-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  text-transform: uppercase;
}

/* Contenedor de la imagen decorativa en bento-main */
.bento-img-container { flex-shrink: 0; width: 160px; text-align: center; }
.bento-featured-img  { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.15)); }

/* Variante oscura: fondo negro */
.bento-dark { background: var(--black); color: var(--white); }
.bento-dark p { color: rgba(255,255,255,0.75); }
.bento-dark .bento-icon-wrap { color: var(--orange); }

/* Variante de acento: fondo naranja */
.bento-accent { background: var(--orange); color: var(--white); }
.bento-accent p { color: rgba(255,255,255,0.9); }
.bento-accent .bento-icon-wrap { color: var(--black); }

/* Banner histórico: ancho completo, texto de impacto */
.bento-banner {
  grid-column: span 3;
  background: var(--black);
  color: var(--white);
  padding: 2rem;
  display: flex;
  align-items: center;
}

.bento-banner h2 {
  font-family: var(--font);
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Card de imagen del encuentro */
.bento-img-placeholder {
  padding: 0;
  overflow: hidden;
  background: var(--black);
}

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

/* Sección "Ellos dijeron que sí" (2 cols en la grilla) */
.bento-nombres {
  grid-column: span 2;
  justify-content: flex-start;
}

.bento-nombres-etiqueta {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bg);
  margin-bottom: 1.5rem;
}

.bento-nombres-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.bento-nombres-cat {
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.bento-nombres-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bento-nombres-lista li {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}

/* CTA fuera del bento-grid */
.ptyc-cta {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.ptyc-cta h3 {
  font-family: var(--font);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--bg);
  line-height: 1.1;
}

.ptyc-cta p { color: rgba(255,255,255,0.7); }

.ptyc-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Botón principal (formulario) */
.bento-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 2rem;
  transition: background-color 0.2s;
}
.bento-action-btn:hover { background: #e06a00; }

/* Variante WhatsApp */
.bento-action-btn--wsp            { background: #25D366; }
.bento-action-btn--wsp:hover      { background: #20ba5a; }


/* ── RESPONSIVE BENTO ────────────────────────
   900px → 2 columnas
   600px → 1 columna
   ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-main    { grid-column: span 2; flex-direction: column; text-align: center; }
  .bento-banner  { grid-column: span 2; }
  .bento-nombres { grid-column: span 2; }
}

@media (max-width: 600px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-main, .bento-banner, .bento-nombres { grid-column: span 1; }
  .bento-nombres-grid { grid-template-columns: 1fr 1fr; }
}


/* ════════════════════════════════════════════
   SECCIÓN RECUERDOS DEL ENCUENTRO
   Galería de álbumes de fotos y videos.
   Se carga dinámicamente desde leer-albumes.php
   y leer-fotos.php vía JS.
   ════════════════════════════════════════════ */


/* ── SECCIÓN CONTENEDORA ─────────────────────
   Ocupa el ancho completo del subpage-container.
   margin-top separa visualmente del bento-grid.
   ─────────────────────────────────────────── */
.recuerdos-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;                /* Espacio entre encabezado, filtros y galería */
  margin-top: 1.5rem;
}


/* ── ENCABEZADO DE LA SECCIÓN ────────────────
   Franja negra con el título "Recuerdos del Encuentro".
   Usa la tipografía display del sitio (Outfit).
   ─────────────────────────────────────────── */
.recuerdos-header {
  background: var(--black);
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Etiqueta pequeña sobre el título */
.recuerdos-tagline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bg);         /* Celeste — mismo color que el bg del sitio */
}

/* Título grande de la sección */
.recuerdos-title {
  font-family: var(--font);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: var(--white);
}


/* ── BOTONES DE ÁLBUM ────────────────────────
   Fila de botones generada por JS, uno por álbum.
   Cada botón tiene data-album con el slug de carpeta.
   .active marca el álbum actualmente visible.
   flex-wrap para que en móvil bajen de línea.
   ─────────────────────────────────────────── */
.recuerdos-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Botón individual de álbum */
.recuerdos-tab {
  font-family: var(--font);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.45rem 1rem;
  border: 2px solid var(--black);
  background: transparent;
  color: var(--black);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

/* Estado activo y hover: fondo negro texto blanco */
.recuerdos-tab:hover,
.recuerdos-tab.active {
  background: var(--black);
  color: var(--white);
}


/* ── ESTADO DE CARGA ─────────────────────────
   Texto "Cargando..." oculto por defecto.
   El JS le agrega .visible mientras espera el fetch.
   ─────────────────────────────────────────── */
.recuerdos-loading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--black);
  opacity: 0.5;
  display: none;
}

.recuerdos-loading.visible { display: block; }


/* ── GRILLA DE MINIATURAS ────────────────────
   Muchas columnas pequeñas para acomodar
   grandes cantidades de fotos/videos por álbum.
   auto-fill con minmax permite que se adapten
   fluidamente al ancho disponible.
   ─────────────────────────────────────────── */
.recuerdos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.4rem;
}


/* ── ÍTEM DE LA GRILLA ───────────────────────
   Cada celda es un cuadrado 1:1 con la miniatura.
   cursor pointer indica que es clickeable.
   ─────────────────────────────────────────── */
.recuerdos-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--black);   /* Fondo mientras carga la imagen */
  cursor: pointer;
}

/* Imagen o video de miniatura: recorte cuadrado */
.recuerdos-item img,
.recuerdos-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.25s ease;
  filter: grayscale(10%) contrast(95%);
}

/* Zoom y color completo al hover */
.recuerdos-item:hover img,
.recuerdos-item:hover video {
  transform: scale(1.06);
  filter: grayscale(0%) contrast(100%);
}


/* ── ÍCONO SUPERPUESTO ───────────────────────
   Aparece al hover sobre cada ítem.
   Para videos: fa-play con padding-left óptico.
   Para imágenes: fa-expand sin padding extra.
   ─────────────────────────────────────────── */
.recuerdos-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.2s;
}

.recuerdos-item:hover .recuerdos-play { opacity: 1; }

/* Círculo naranja con el ícono */
.recuerdos-play i {
  font-size: 1.1rem;
  color: var(--white);
  background: var(--orange);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;   /* Compensación óptica del triángulo de play */
}

/* Para expand (imagen): sin compensación de padding */
.recuerdos-play.img i { padding-left: 0; }


/* ── NOMBRE DEL ÍTEM ─────────────────────────
   Franja negra semitransparente en la parte
   inferior de cada miniatura.
   Visible solo al hacer hover (opacity transición).
   ─────────────────────────────────────────── */
.recuerdos-nombre {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.75);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.4rem;
  line-height: 1.2;
  opacity: 0;
  transition: opacity 0.2s;

  /* Recorta nombres muy largos con puntos suspensivos */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recuerdos-item:hover .recuerdos-nombre { opacity: 1; }


/* ════════════════════════════════════════════
   LIGHTBOX DE RECUERDOS
   Visor de pantalla completa para fotos y videos
   de la galería. Mismo sistema que promos.css.
   ════════════════════════════════════════════ */

/* Capa fija que cubre toda la pantalla.
   Invisible por defecto con visibility + opacity
   para poder animar la entrada/salida.
   Al agregar .open se hace visible. */
.rec-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s, visibility 0.25s;
}

.rec-lightbox.open {
  visibility: visible;
  opacity: 1;
}

/* Fondo oscuro detrás del panel: clic cierra */
.rec-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  cursor: pointer;
}

/* Panel central con el contenido del lightbox */
.rec-lb-panel {
  position: relative;
  z-index: 1;
  width: min(860px, 94vw);
  background: var(--black);
  display: flex;
  flex-direction: column;
}

/* Encabezado: álbum (izquierda) + botón cerrar (derecha) */
.rec-lb-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem 1.2rem 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Nombre del álbum en celeste */
.rec-lb-album {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bg);
  margin-bottom: 0.2rem;
}

/* Nombre del archivo como título del lightbox */
.rec-lb-title {
  font-family: var(--font);
  font-size: clamp(0.9rem, 2.2vw, 1.3rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1;
}

/* Botón ✕ para cerrar */
.rec-lb-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  line-height: 1;
  transition: color 0.2s;
  flex-shrink: 0;
}

.rec-lb-close:hover { color: var(--white); }

/* Área de media: proporción 16:9 fija.
   El JS inserta aquí un <img> o <video>. */
.rec-lb-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

/* Imagen: contain para no recortar verticales */
.rec-lb-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Video nativo */
.rec-lb-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

/* Navegación: ← contador → */
.rec-lb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Botones de flecha cuadrados con borde */
.rec-lb-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s, border-color 0.2s;
}

.rec-lb-btn:hover    { background: var(--orange); border-color: var(--orange); }
.rec-lb-btn:disabled { opacity: 0.25; pointer-events: none; }

/* Contador "3 / 47" */
.rec-lb-count {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
}


/* ── RESPONSIVE RECUERDOS ────────────────────
   768px → miniaturas un poco más grandes (120px)
   520px → miniaturas mínimas (80px), más densidad
   ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .recuerdos-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
}

@media (max-width: 520px) {
  .recuerdos-grid  { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 0.3rem; }
  .recuerdos-title { font-size: 2rem; }
}
