/* ==========================================================================
   ESTILOS PRINCIPALES — BODA MIRIAM & ALAN
   Diseño Editorial de Alta Gama: Papel Marfil, Dorado Clásico y Legibilidad
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Jost:wght@300;400;500;600;700&family=Pinyon+Script&display=swap');

:root {
  --paper:          #F7F4EE;
  --paper-deep:     #EFE9DD;
  --cream-glow:     #FAF7F0;
  --gold:           #9E7E38;
  --gold-light:     #D6BD7F;
  --gold-dark:      #7E6224;
  --gold-accent:    #B89648;
  --ink:            #1A1815;
  --ink-soft:       #423D36;
  --ink-muted:      #787166;
  --white:          #FFFFFF;
  --danger:         #9B2C2C;
  --ok:             #2D6A4F;
  --border-gold:    rgba(158, 126, 56, 0.3);

  --gold-gradient:  linear-gradient(135deg, #7E6224 0%, #D6BD7F 50%, #9E7E38 100%);
  --gold-button:    linear-gradient(135deg, #9E7E38 0%, #CDB06D 50%, #826627 100%);
  --gold-button-h:  linear-gradient(135deg, #AC8B3E 0%, #DCBF7C 50%, #91722C 100%);

  --font-display:   'Cinzel', serif;
  --font-names:     'Cormorant Garamond', Georgia, serif;
  --font-body:      'Jost', -apple-system, sans-serif;

  --shadow-soft:    0 10px 28px rgba(45, 36, 18, 0.08);
  --shadow-card:    0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--paper);
  background-image: url('../img/paper-texture.svg');
  background-repeat: repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Contenedor centralizado */
.page-wrapper {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--paper);
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.06);
  position: relative;
}

@media (min-width: 768px) {
  .page-wrapper {
    max-width: 720px;
  }
}

@media (min-width: 1024px) {
  .page-wrapper {
    max-width: 820px;
  }
}

/* Tipografía de títulos */
h1, h2, h3, .heading-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Nombre de los novios: Alta legibilidad, serif itálica elegante */
.names-hero {
  font-family: var(--font-names);
  font-size: 3.4rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin: 0.6rem 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

@media (min-width: 480px) {
  .names-hero {
    font-size: 4rem;
  }
}

.names-amp {
  font-family: var(--font-names);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  margin: 0 0.15em;
  display: inline-block;
}

.label-caps {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* Separadores */
.gold-divider {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 1.2rem auto;
  border-radius: 2px;
}

/* Botones estilo píldora de alta visibilidad */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.8rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
}

.btn-gold {
  background: var(--gold-button);
  color: var(--white) !important;
  box-shadow: 0 4px 14px rgba(126, 98, 36, 0.35);
}

.btn-gold:hover, .btn-gold:active {
  background: var(--gold-button-h);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(126, 98, 36, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold);
}

.btn-outline:hover {
  background: var(--cream-glow);
  border-color: var(--gold-dark);
}

/* ==========================================================================
   1. HERO COMPACTO Y ELEGANTE
   ========================================================================== */
.hero-compact {
  padding: 3rem 1.5rem 2.2rem;
  text-align: center;
  background: linear-gradient(180deg, #F9F5EC 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--border-gold);
  position: relative;
}

.hero-monogram-badge {
  width: 96px;
  height: 96px;
  margin: 0 auto 0.8rem;
  display: block;
  filter: drop-shadow(0 3px 8px rgba(126, 98, 36, 0.22));
}

.hero-subtitle {
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.2rem;
  font-weight: 500;
}

.hero-date-highlight {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
  margin: 0.5rem 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

/* ==========================================================================
   2. CARRUSEL CINEMATOGRÁFICO DE LOS NOVIOS (PORTADA)
   ========================================================================== */
.couple-carousel {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #14120F;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16);
  user-select: none;
}

@media (min-width: 600px) {
  .couple-carousel {
    height: 560px;
  }
}

@media (min-width: 900px) {
  .couple-carousel {
    height: 600px;
  }
}

.couple-carousel-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.couple-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.couple-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* 1. Fondo difuminado: llena todo el marco con la misma foto creando ambiente */
.slide-bg-blur {
  position: absolute;
  inset: -25px;
  width: calc(100% + 50px);
  height: calc(100% + 50px);
  object-fit: cover;
  filter: blur(28px) brightness(0.35) grayscale(100%);
  opacity: 0.92;
  pointer-events: none;
  z-index: 1;
}

/* 2. Fotografía principal: 100% completa, sin recortar a los novios */
.slide-main-img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: auto;
  filter: grayscale(100%) contrast(106%) brightness(98%);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
  transform: scale(1);
  transition: transform 6.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Efecto Ken Burns suave en la foto principal al estar activa */
.couple-carousel-slide.active .slide-main-img {
  transform: scale(1.025);
}

/* Viñeta degradada sutil arriba y abajo para integrar con la página */
.couple-carousel-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(20, 18, 15, 0.25) 0%,
    transparent 20%,
    transparent 80%,
    rgba(20, 18, 15, 0.45) 100%
  );
}

/* Flechas de navegación elegantes */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(26, 24, 21, 0.55);
  color: #FAF7F0;
  border: 1px solid rgba(214, 189, 127, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  font-size: 1.15rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(5px);
  outline: none;
}

.carousel-arrow:hover, .carousel-arrow:focus-visible {
  background: rgba(158, 126, 56, 0.9);
  border-color: #D6BD7F;
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
}

.carousel-prev {
  left: 14px;
}

.carousel-next {
  right: 14px;
}

/* Indicadores de barra/puntos dorados */
.carousel-indicators {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  z-index: 4;
}

.carousel-dot {
  width: 20px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.38);
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  padding: 0;
  outline: none;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.carousel-dot.active {
  width: 38px;
  height: 3.5px;
  background: var(--gold-light);
  box-shadow: 0 0 8px rgba(214, 189, 127, 0.75);
}

/* ==========================================================================
   2. ITINERARIO FIEL A LA INVITACIÓN FÍSICA (TEXTO + ILUSTRACIONES LINE ART)
   ========================================================================== */
.itinerary-section {
  padding: 3.5rem 1.2rem 3rem;
  text-align: center;
  background: var(--paper);
  border-bottom: 1px solid var(--border-gold);
}

.itinerary-script-title {
  font-family: 'Pinyon Script', cursive;
  font-size: 4rem;
  line-height: 1;
  color: #B5934C;
  position: relative;
  display: inline-block;
  margin: 0 auto 2.5rem;
  padding-bottom: 0.4rem;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.itinerary-script-title::after {
  content: '';
  position: absolute;
  left: 10%;
  bottom: 0;
  width: 80%;
  height: 1.5px;
  background: #B5934C;
}

/* Tablero vertical fiel a la invitación */
.itinerary-board {
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

.itinerary-row {
  display: flex;
  align-items: center;
  min-height: 90px;
  position: relative;
}

/* Columna izquierda: ilustración line-art */
.itinerary-icon-box {
  width: 42%;
  display: flex;
  justify-content: flex-end;
  padding-right: 1.5rem;
}

.itinerary-icon-box img, .itinerary-icon-box svg {
  width: 58px;
  height: 58px;
  display: block;
}

/* Columna central: línea vertical negra continua con muesca horizontal */
.itinerary-spine-box {
  position: relative;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
}

/* La línea vertical negra continua */
.itinerary-spine-box::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2.5px;
  background: #1A1815;
}

/* Muesca horizontal hacia la derecha */
.itinerary-spine-box::after {
  content: '';
  position: absolute;
  left: 0;
  width: 30px;
  height: 2.5px;
  background: #1A1815;
}

/* Redondear extremos superior e inferior de la espina */
.itinerary-row:first-child .itinerary-spine-box::before {
  top: 50%;
}
.itinerary-row:last-child .itinerary-spine-box::before {
  bottom: 50%;
}

/* Columna derecha: Texto (Nombre dorado + Hora negra) */
.itinerary-text-box {
  width: 50%;
  padding-left: 1rem;
  text-align: left;
}

.itinerary-event-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #9E7E38;
  line-height: 1.25;
  text-transform: uppercase;
}

.itinerary-event-time {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: #1A1815;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}

/* ==========================================================================
   3. ÁLBUM EN VIVO: FOTO + COMENTARIO SUPERPUESTO (LOOK EDITORIAL)
   ========================================================================== */
.gallery-section {
  padding: 3.5rem 1.4rem 4rem;
  text-align: center;
  background: var(--paper);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 2.2rem 0;
}

@media (min-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

/* TARJETA EDITORIAL CON FOTO Y COMENTARIO SUPERPUESTO */
.guest-photo-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #1F1C18;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.guest-photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

/* Imagen de fondo a pantalla completa dentro de la tarjeta */
.guest-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.guest-photo-card:hover .guest-photo-img {
  transform: scale(1.03);
}

/* Degradado oscuro para que el texto y comentario siempre sean 100% legibles */
.guest-photo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.0) 30%,
    rgba(0, 0, 0, 0.5) 60%,
    rgba(0, 0, 0, 0.92) 100%
  );
  pointer-events: none;
}

/* Badge superior (Mesa / Video) */
.guest-card-top-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.guest-table-pill {
  background: rgba(158, 126, 56, 0.92);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.guest-video-badge {
  background: rgba(0, 0, 0, 0.65);
  color: var(--white);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.guest-video-play-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  z-index: 2;
  pointer-events: none;
}

.guest-video-play-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* CONTENIDO SUPERPUESTO (COMENTARIO + NOMBRE + FECHA) */
.guest-card-overlay-content {
  position: relative;
  z-index: 3;
  padding: 1.2rem 1.1rem 1.1rem;
  text-align: left;
  color: var(--white);
}

.guest-card-message {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.45;
  color: #FAF6EE;
  font-style: italic;
  margin-bottom: 0.6rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guest-card-message::before {
  content: '“';
  font-family: var(--font-names);
  font-size: 1.4rem;
  line-height: 0;
  color: var(--gold-light);
  margin-right: 2px;
}

.guest-card-message::after {
  content: '”';
  font-family: var(--font-names);
  font-size: 1.4rem;
  line-height: 0;
  color: var(--gold-light);
  margin-left: 2px;
}

.guest-card-author-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.5rem;
}

.guest-card-author-name {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.guest-card-time {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Estado vacío */
.gallery-empty {
  padding: 3.5rem 1.5rem;
  background: var(--cream-glow);
  border-radius: 16px;
  border: 1.5px dashed var(--border-gold);
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto;
}

.gallery-empty-heart {
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

/* ==========================================================================
   4. PIE DE PÁGINA
   ========================================================================== */
.footer-section {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  background: var(--cream-glow);
  border-top: 1px solid var(--border-gold);
}

.footer-quote {
  font-family: var(--font-names);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.footer-copy {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.footer-admin-link {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-decoration: none;
  opacity: 0.7;
}

.footer-admin-link:hover {
  opacity: 1;
  color: var(--gold-dark);
}

/* ==========================================================================
   LIGHTBOX FLOTANTE
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 12, 10, 0.95);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(8px);
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  color: var(--white);
  z-index: 10;
}

.lightbox-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.lightbox-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  position: relative;
  overflow: hidden;
}

.lightbox-content img, .lightbox-content video {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  padding: 1.2rem 1.5rem 1.8rem;
  color: var(--white);
  text-align: center;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

.lightbox-guest {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
  letter-spacing: 0.06em;
}

.lightbox-message {
  font-size: 0.95rem;
  color: #F7F4EE;
  max-width: 520px;
  margin: 0 auto;
  font-style: italic;
  line-height: 1.45;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 1.4rem;
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
