/* ================================================================
   wedding-invitation.css  – hoja de estilos completa y actualizada
   ================================================================ */

/* ---------- PALETA DE COLORES ---------------------------------- */
:root{
  --terracotta:#C47856;
  --sage:#80907d;
  --sand:#f7f4ef;
  --gold:#c2a678;
  --white:#ffffff;
  --black:#1b1b1b;  
  --radius:12px;
}

/* ==========================================================
   SISTEMA ÚNICO DE BOTONES  —  v4 (fix iPhone)
   ========================================================== */
.btn{
  --bg       : var(--terracotta);
  --bg-hover : var(--sage);
  --fg       : #fff;
  --border   : var(--gold);

  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.35rem;
  padding:.9rem 2.4rem;
  border:2px solid var(--border);
  border-radius:50px;
  font:600 1rem/1 'Libre Baskerville', serif;
  color:var(--fg);
  background:var(--bg);
  text-decoration:none;
  cursor:pointer;
  transition:background .3s, color .3s, transform .25s;
  touch-action:manipulation;               /* ✔ evita doble-tap */
  -webkit-tap-highlight-color:transparent; /* ✔ quita flash azul */
}

/* FEEDBACK TÁCTIL (todos los móviles) */
.btn:active{ transform:scale(.96); }

/* EFECTO HOVER  ➜  solo cuando existe hover real */
@media (hover:hover) and (pointer:fine){
  .btn:hover,
  .btn:focus-visible{
    background:var(--bg-hover);
    transform:translateY(-2px);
    outline:none;
  }
}

/* ---------- variantes ---------- */
.btn--outline{
  --bg:transparent;
  --fg:var(--terracotta);
}
@media (hover:hover) and (pointer:fine){
  .btn--outline:hover,
  .btn--outline:focus-visible{ color:#fff; }
}

.btn--sm{ padding:.65rem 1.4rem; font-size:.93rem; }

.btn[disabled],.btn--disabled{
  pointer-events:none; opacity:.45; transform:none;
}


/* ---------- RESET BÁSICO --------------------------------------- */
*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Libre Baskerville',serif;
  color:var(--black);
  background:var(--sand) url('../assets/images/linen.png') repeat;
  line-height:1.6;
}

/* ---------- TIPOGRAFÍA ----------------------------------------- */
h1,h2{font-family:'Playfair Display',serif;font-weight:700;}

/* ===============================================================
   1 · PORTADA / HERO
   =============================================================== */
.section-hero{
  min-height:100vh;
  background:url('../assets/images/hero_acuarela.jpg') center/cover no-repeat;
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  text-align:center;color:var(--white);position:relative;
}
.section-hero::after{content:'';position:absolute;inset:0;background:rgba(0,0,0,.45);}
.hero-content{position:relative;z-index:2;padding:1rem;}
.couple-name{
  font-family:'Parisienne',cursive;
  font-size:clamp(3.5rem,7vw,6rem);
  letter-spacing:.04em;
  color:var(--gold);
}
.date-location{font-size:1.25rem;letter-spacing:.06em;margin-bottom:2rem;}



/* ===============================================================
   2 · SECCIONES GENÉRICAS
   =============================================================== */
.section-countdown,.section-timeline,.section-gallery,.section-stay,
.section-dress,.section-gifts,.section-rsvp{
  padding:4rem 1rem;
  text-align:center;
}
.section-countdown{background:rgba(196,120,86,.07);}
.timer{font-size:2rem;font-weight:700;margin-top:1rem;}

/* ========== GALERÍA / CARRUSEL ========== */
/* ======== GALERÍA / CARRUSEL ========== */
.section-gallery {
  background: var(--sand);
  padding: 3rem 1rem;
  text-align: center;
}

.carousel {
  width: 100%;
  max-width: 1000px;
  height: 75vh; /* Tamaño base más alto */
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  border-radius: var(--radius);
}

/* Flechas */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  font-size: 2rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.prev:hover, .next:hover {
  background: rgba(0, 0, 0, 0.6);
}

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

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
  gap: 0.6rem;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dots .dot.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

/* ======== RESPONSIVE ========== */

/* 📱 Para móviles en vertical */
@media (max-width: 600px) and (orientation: portrait) {
  .carousel {
    height: 90vh; /* 📢 Usa casi toda la pantalla */
  }

  .carousel-track img {
    height: 100%;
    object-fit: contain;
  }

  .prev, .next {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }

  .carousel-dots {
    margin-top: 1rem;
  }
}

/* 🌄 Para horizontales bajitas como tablets apaisadas */
@media (max-height: 500px) {
  .carousel {
    height: 70vh;
  }
}


/* ===============================================================
   4 · FORMULARIO RSVP – ajustes para impedir desbordes
   =============================================================== */
.section-rsvp form{
  max-width:640px;                /* ancho central razonable */
  margin:2rem auto;               /* centrado horizontal */
  display:flex;
  flex-direction:column;
  gap:1.2rem;
  text-align:left;
}

/* Inputs y textarea 100 % del contenedor — nunca exceden bordes */
.section-rsvp input,
.section-rsvp textarea,
.rsvp-form input,
.rsvp-form textarea{
  width:100%;
  max-width:100%;
  box-sizing:border-box;          /* padding + borde incluidos */
  padding:.6rem .8rem;
  border:1px solid var(--gold);
  border-radius:var(--radius);
  font-size:1rem;
}
.section-rsvp textarea,
.rsvp-form textarea{resize:vertical;} /* solo crece en altura */

/* Grupo de radios */
.field-group label{
  margin-right:1.2rem;
  display:inline-flex;
  gap:.4rem;
  cursor:pointer;
}

/* Contenedor RSVP global */
.rsvp-form{
  max-width:640px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:1.2rem;
}
.rsvp-form label{display:flex;flex-direction:column;gap:.4rem;font-weight:600;}

/* Gracias */
.rsvp-thanks{display:none;text-align:center;margin-top:2rem;}
.rsvp-thanks.show{display:block;animation:fade .6s ease;}

@keyframes fade{from{opacity:0}to{opacity:1}}

/* Ocultación plus-one */
.hide{display:none !important;}
#plusone-field{transition:all .3s ease;}


/* ========== FOOTER ========== */
footer {
  padding: 2rem 1rem;
  background: var(--sage);
  color: #fff;
  text-align: center;
  font-size: .85rem;
}

/* ========== ANIMACIÓN ========== */
@keyframes fadeRise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none;         }
}
.fade-in {
  opacity: 0;
  animation: fadeRise .9s ease forwards;
}

/* ========== RESPONSIVE GENERAL ========== */
@media (min-width: 768px) {
  .timer { font-size: 2.5rem; }
  .carousel { aspect-ratio: 16/7; }
}
@media (max-width: 420px) {
  .carousel-track img { object-position: center top; }
}

/* ========== ITINERARIO ARCO BOHO ========== */

.section-timeline h2 {
  font-family: 'Playfair Display', cursive;
  font-size: clamp(2.5rem, 2vw, 3rem); /* más grande y fluido */
  color: var(--sage);
  margin-bottom: 0.8rem;
}

/* Subtítulo */
.section-timeline .tagline {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-style: italic;
  color: var(--terracotta);
  margin-bottom: 2.5rem;
}
.timeline-arch {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
  padding: 2.8rem 2rem 3.2rem;
    /* Fondo blush suave */
  background: #E5DFD1;
  border-radius: 220px 220px 18px 18px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
  overflow: hidden;
}
.timeline-arch::before {
  content: '';
  position: absolute;
  inset: -4% -4%;
  background: url('../assets/images/arch-flowers.png') center/cover no-repeat;
  opacity: .3;
  mix-blend-mode: multiply;
  pointer-events: none;
}
/* Cabecera */
.day-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.46rem;
  line-height: 1.15;
  text-align: center;
  color: var(--gold);
  letter-spacing: .05em;
  padding-bottom: 1rem;
  position: relative;
}
.day-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: .2rem;
  width: 160px;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
}
.timeline-arch header .date {
  margin-top: 1.25rem;
  font-weight: 700;
  text-align: center;
}
.section-timeline .tagline {
  font-style: italic;
  font-size: .95rem;
  color: var(--terracotta);
  margin-bottom: 1.8rem;
}

/* —— TIMELINE (FLEXBOX) —— */
.timeline-arch .events {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin: 3rem auto 2.5rem;
  width: 100%;
}

/* línea vertical en centro */
.timeline-arch .events::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
}

/* evento: icono | texto */
.timeline-arch .events li {
  position: relative;
  display: flex;
  align-items: center;
}

/* punto */
.timeline-arch .events li::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* conector punteado */
.timeline-arch .events li::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(0, -50%);
  width: 20px;
  border-top: 2px dashed var(--gold);
}

/* icono (mitad izquierda) */
.timeline-arch .events .icon {
  width: 50%;
  display: flex;
  justify-content: flex-end;
  padding-right: 1.5rem;
  background: transparent;
}
/* icono (mitad izquierda) */
.timeline-arch .events .icon img{
  display:block;
  width: clamp(48px, 20vw, 90px); /* ❶ nuevo: mínimo 48 px, máximo 90 px */
  height:auto;
  object-fit:contain;
  flex-shrink:0;                  /* ❷ evita que se encoja por falta de espacio */
  background:transparent;
}


/* texto (mitad derecha) */
.timeline-arch .events .txt {
  width: 50%;
  padding-left: 1.5rem;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1.25;
}
.timeline-arch .events .txt strong {
  font-weight: 700;
}
.timeline-arch .events .txt br + * {
  font-weight: 400;
  color: var(--black);
}

/* ajustes móviles */
@media (max-width: 420px) {
  .timeline-arch .events {
    gap: 2.5rem;
  }
  .timeline-arch .events li::after {
    width: 16px;
  }
  .timeline-arch .events .icon {
    padding-right: 1rem;
  }
  .timeline-arch .events .txt {
    padding-left: 1rem;
  }

  
}

/* ========== FONDO + TEXTURA GRAIN ========== */
.section-timeline {
  background: var(--sand) url('../assets/images/grain.png') repeat;
  background-size: 350px;
  backdrop-filter: blur(2px);
}


/* ========== HERO ESTILO ELEGANTE CARTEL ========== */
.elegant-hero {
  height: 100vh;
  background: url('../assets/images/portada1.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  color: var(--white);
}

.elegant-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* oscurece sutil para contraste */
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
}

.hero-quote {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.2rem;
  color: var(--white);
  text-shadow: 0 0 6px rgba(0,0,0,0.4);
  margin-bottom: 1rem;
}

.hero-names {
  font-family: 'Parisienne', cursive;
  font-size: clamp(3rem, 7vw, 5rem);
  color: var(--gold);
  text-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.hero-names span {
  color: var(--terracotta);
}

.hero-countdown {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  margin-top: 2rem;
  letter-spacing: 0.15em;
}

/* ========== PORTADA TIPO POSTER COMPLETO ========== */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.poster-hero.full-height {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--sand);
}

.poster-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}



/* Texto superpuesto */
.poster-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: var(--white);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1rem;
  text-shadow: 0 0 6px rgba(0,0,0,0.5);
  pointer-events: none;
}

.poster-names {
  font-family: 'Parisienne', cursive;
  font-size: clamp(3rem, 7vw, 4rem);
  color: var(--gold);
  margin: 0;
  padding-top: 60vh; /* Centrado vertical más preciso */
  max-width: 90%;
  margin-inline: auto;
  line-height: 1.2;
  word-break: break-word;
}


/* ===== Fecha “tarjeta” con barras verticales ===== */
.poster-date-card{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: clamp(.8rem, 2.5vw, 1.4rem);
  margin: .4rem auto 1.2rem;
  color: #f2f0ec;                        /* claro, elegante */
  text-shadow: 0 0 6px rgba(0,0,0,.45);
  letter-spacing: .08em;
  font-family: 'Libre Baskerville', serif;
}

/* Barras doradas */
.poster-date-card .vsep{
  width:2px;
  height: clamp(1.6em, 3.2vw, 2.2em);
  background: var(--gold);
  border-radius: 2px;
  opacity:.95;
}

/* Columna central (mes arriba, día grande abajo) */
.poster-date-card .monthday{
  display:flex;
  flex-direction:column;
  align-items:center;
  line-height:1;
  margin: 0 .15rem;
}
.poster-date-card .month{
  font-family: 'Playfair Display', serif;
  font-size: clamp(.8rem, 2.2vw, 1.05rem);
  letter-spacing: .16em;
}
.poster-date-card .day{
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 6.2vw, 3.6rem);  /* número protagónico */
  line-height: .95;
}

/* Laterales: día de semana y año */
.poster-date-card .weekday,
.poster-date-card .year{
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  letter-spacing: .12em;
}

/* Ajustes finos en móviles */
@media (max-width: 420px){
  .poster-date-card{ gap:.7rem; }
  .poster-date-card .vsep{ height:1.6em; }
}





.poster-countdown {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--white);
  margin-bottom: 1rem;
}
.poster-quote {
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  font-style: italic;
}



.poster-names span {
  color: var(--terracotta);
}

.poster-hero.full-height,
.poster-container {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ========== NUEVO SISTEMA DE SECCIONES CON CONTENEDOR ========== */

/* Aplica a cada sección visual */
.section {
  width: 100%;
  padding: 4rem 1.25rem;
  background: var(--sand);
  max-width: 100%;
  margin: 0 auto;
}



/* Tipografía responsiva y fluida para títulos y párrafos */
.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}
.section p,
.section li {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}


@media screen and (orientation: landscape) and (max-height: 500px) {
  .poster-names {
    font-size: clamp(1rem, 3.5vw, 3.5rem); /* Más pequeño en horizontal */
    padding-top: 0;
  }

  .poster-countdown {
    font-size: 1rem;
  }
}

/* Ajustes específicos para horizontal */
@media screen and (orientation: landscape) {
  .poster-hero.full-height {
    flex-direction: column;
    justify-content: center;
    padding: 0;
  }

  .poster-container {
    width: auto;
    height: 100vh;
    max-height: 100vh;
    aspect-ratio: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  .poster-image {
    height: 100%;
    width: auto;
    object-fit: contain; /* Para que no se corte la imagen */
    object-position: center;
  }

  .poster-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribuye: frase arriba, nombres y contador abajo */
    align-items: center;
    padding: 1.5rem;
    text-align: center;
    z-index: 2;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  }

  .poster-quote {
    align-self: center;
    margin-top: 0.5rem;
  }

  .poster-names {
    padding-top: 100%;
  }

  .poster-countdown {
    margin-bottom: 1.5rem;
  }
}

/* ========== SECCIÓN DE UBICACIÓN ========== */
.section-location {
  background: var(--sand) url('../assets/images/linen.png') repeat;
  text-align: center;
  padding: 6rem 2rem 4rem; /* ↑ aumenté el padding superior */
  margin-top: 5rem; /* ↑ mayor separación visual */
}

.section-location h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.location-subtitle {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.2rem;
  color: var(--sage);
  margin-bottom: 2rem;
}

.location-box {
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid var(--gold);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  display: inline-block;
  max-width: 460px;
  margin: auto;
  transition: box-shadow 0.3s ease;
}

.location-box:hover {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.15);
}

.location-address {
  font-size: 1.1rem;
  color: var(--black);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.location-box.horizontal {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.location-box.horizontal .location-image {
  width: 250px;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.location-box.horizontal .location-info {
  max-width: 400px;
  text-align: left;
}

.section-stay img {
  width: 100%;
  height: auto;
  max-height: 60vh; /* Limita la altura en pantallas altas */
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* Contenedor principal del carrusel */
.carousel-container {
  position: relative;
  width: 100%;
  height: 100vh;             /* Ocupa el 100% de la altura de la ventana (pantalla completa) */
  overflow: hidden;
  margin: 0;
}

/* Carril que contiene las diapositivas */
.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;  /* Transición suave al cambiar de slide */
}

/* Cada diapositiva ocupa 100% del ancho del carrusel */
.carousel-slide {
  min-width: 100%;
  height: 100%;
  /* opcional: text-align: center; centro de contenido interno si se agrega texto */
}

/* Imágenes dentro de cada diapositiva */
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;    /* La imagen se recorta/escala para cubrir todo el slide sin distorsión :contentReference[oaicite:6]{index=6} */
  object-position: center center;  /* Centrar la imagen dentro del slide */
  display: block;
}

/* Botones de navegación (flechas prev/next) */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);   /* Fondo semi-transparente oscuro para visibilidad sobre la imagen */
  color: #fff;                     /* Flecha blanca */
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.3s;
  z-index: 1;
}
.carousel-control:hover,
.carousel-control:focus {
  opacity: 1;                      /* Opacidad completa al pasar el mouse o enfocar (mejora visibilidad) */
}
.carousel-prev { left: 15px; }     /* Flecha izquierda ubicada al borde izquierdo */
.carousel-next { right: 15px; }    /* Flecha derecha al borde derecho */

/* ===== Puntos del carrusel ===== */
.carousel-dots{
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  flex-wrap: wrap;          /* permite varias filas */
  gap: .4rem .6rem;         /* espacio X / Y */
  max-width: 90%;           /* no rebasa la imagen */
  justify-content: center;  /* centra cada fila */
  pointer-events: auto;     /* sigue clicable */
}

/* Botón-dot */
.carousel-dots button{
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: rgba(255,255,255,.6);
  border: none;
  cursor: pointer;
  transition: background .25s;
}

/* Estado activo */
.carousel-dots button.active{
  background: var(--terracotta);
}
/* (Opcional) Media query para pantallas grandes: aumentar tamaño de controles */
@media (min-width: 768px) {
  .carousel-control {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  .carousel-prev { left: 30px; }
  .carousel-next { right: 30px; }
  .carousel-dots button {
    width: 14px;
    height: 14px;
    margin: 0 6px;
  }
}

/* ========== UBICACIÓN & HOSPEDAJE COMBINADOS ========== */
.location-stay-wrapper {
  text-align: center;
}

/* Grid adaptable: 1-2 columnas según ancho */
.location-stay-grid{
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: flex-start;
  margin-top: 2.5rem;
}

/* Tarjetas idénticas para ambas cajas */
.location-card,
.stay-card{
  background: rgba(255,255,255,.88);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  transition: box-shadow .3s ease;
}
.location-card:hover,
.stay-card:hover{
  box-shadow: 0 6px 22px rgba(0,0,0,.15);
}

/* Imagen encajada y segura */
.card-image{
  width: 100%;
  height: auto;
  max-height: 48vh;          /* nunca desborda en móvil alto */
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* Texto de dirección reutiliza tu clase existente */
.location-address{
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Micro‐ajuste para pantallas muy anchas: 2-columnas fijas */
@media (min-width: 1024px){
  .location-stay-grid{
    grid-template-columns: 1fr 1fr;
  }
}

/* ======= IGUALAR ALTURA TARJETAS Ubicación / Hospedaje ======= */

/* 1. El grid estira sus hijos a toda la fila */
.location-stay-grid{
  align-items: stretch;          /* sobreescribe flex-start */
}

/* 2. Cada tarjeta se comporta como columna-flex de alto completo */
.location-card,
.stay-card{
  display: flex;
  flex-direction: column;
  height: 100%;                  /* llena la celda del grid */
}

/* 3. El botón baja al fondo (espaciado uniforme) */
.location-card .btn-primary,
.stay-card .btn-secondary{
  margin-top: auto;              /* empuja el botón al final de la tarjeta */
}

/* ========== CARRUSEL RESPONSIVO ========== */
/*  Aplícalo a TODAS de base  */
.carousel-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;       /* por defecto, para paisajes */
  object-position: center;
}

/*  Cuando JS añada la clase .portrait cambia a 'contain'  */
.carousel-slide.portrait img{
  object-fit: contain;
  background: var(--sand); /* color de tu invitación para barras laterales */
}

/* 1) contenedor ocupa casi toda la pantalla, pero sin pasar de 90 vh */
.carousel-container{
  position: relative;
  width: 100%;
  height: clamp(320px, 90vh, 720px);
  overflow: hidden;
}

/* 2) en horizontal bajamos un poco la altura para no tapar todo */
@media (orientation: landscape){
  .carousel-container{
    height: clamp(280px, 80vh, 600px);
  }
}

/* 3) cada diapositiva siempre cubre su celda */
.carousel-slide{
  min-width: 100%;
  height: 100%;
}

/* 4) imagen rellena (cover) en todas las orientaciones */
.carousel-slide img,
.carousel-track img{
  width: 100%;
  height: 100%;
  object-fit: cover !important;   /* ¡importante! anula el viejo “contain” */
  object-position: center;
}

.carousel-slide.landscape-wide img{
  object-position: top center;   /* muestra más “vertical” */
}
/* ========== CARRUSEL «SIN RECORTES» ========== */

/* ① Marco que se adapta al viewport pero nunca pasa de 720 px de alto */
.carousel-container{
  position:relative;
  width:100%;
  height:clamp(320px, 88vh, 720px);
  overflow:hidden;
}

/* ② Cada slide es un flex-box que centra su contenido */
.carousel-slide{
  min-width:100%;
  height:100%;
  display:flex;
  justify-content:center;
  align-items:center;
}

/* ③ Imagen ajustable: nunca se deforma y jamás se recorta */
.carousel-slide img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  border-radius:var(--radius);
}


/* ===== DRESS CODE ===== */
.section-dress { padding-top: 3rem; }

/* ❶ Paleta circular */
.dress-palette{
  display:flex;
  justify-content:center;
  gap:1rem;
  margin-bottom:2.5rem;
  list-style:none;
  padding:0;
}
.dress-palette li{
  width:46px;height:46px;
  border-radius:50%;
  background:var(--clr, var(--sand));
  border:2px solid var(--gold);
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}

/* ❷ Grid tarjetas */
.dress-grid{
  display:grid;
  gap:2rem;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  margin-bottom:2.5rem;
}

/* ❸ Card */
.dress-card{
  background:rgba(255,255,255,.9);
  border:2px solid var(--gold);
  border-radius:var(--radius);
  padding:2rem 1.5rem;
  box-shadow:0 4px 16px rgba(0,0,0,.08);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  transition:transform .25s;
}
.dress-card:hover{ transform:translateY(-4px); }

.dress-icon{
  width:120px;height:auto;
  margin-bottom:1rem;
  object-fit:contain;
}
.dress-card h3{
  font-family:'Playfair Display', serif;
  font-size:1.4rem;
  color:var(--terracotta);
  margin-bottom:1rem;
}
.dress-tips{
  list-style:none;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:.4rem;
  font-size:1rem;
}

/* ❹ Botón Pinterest */
.inspo-link{ margin-top:.5rem; }

/* Responsive fine-tuning */
@media (max-width:480px){
  .dress-icon{ width:90px; }
}

/* Nota bajo el título */
.dress-note{
  font-size: 1.05rem;
  margin: 0.5rem auto 1.8rem;
  max-width: 540px;       /* mantiene la línea de lectura cómoda */
  line-height: 1.6;
  color: var(--black);    /* mismo tono del cuerpo de texto */
}

.section-wrapper h2{
  font-family:'Playfair Display',serif;
  font-size:clamp(2rem,3vw + 1rem,2.8rem);
  color:var(--terracotta);
  text-align:center;
  margin-bottom:1.5rem;
}

.gallery-note{
  font-size: 1.05rem;
  margin: 0.5rem auto 2rem;
  max-width: 640px;   /* ancho cómodo de lectura */
  line-height: 1.6;
  color: var(--black);
  text-align: center;
}

/* ——— Alinea las dos tarjetas a la misma altura ——— */
.location-stay-grid{ align-items:stretch; }

.location-card, .stay-card{
  display:flex; flex-direction:column; height:100%;
}

.location-card .card-image,
.stay-card    .card-image{
  width:100%; height:clamp(240px,45vh,420px);
  object-fit:cover; border-radius:var(--radius);
}

/* ——— Botones globales centrados ——— */
.location-actions{
  margin-top:2rem;
  display:flex; gap:1rem; justify-content:center; flex-wrap:wrap;
}
/* Opcional: que ambos botones luzcan “rellenos” */

.location-actions .btn-secondary:hover{
  background: color-mix(in srgb, var(--terracotta) 88%, black);
}

/* ===== MESA DE REGALOS ===== */
.gift-envelope{
  display: flex;            /* era inline-flex */
  justify-content: center;
  align-items: center;
  width: fit-content;       /* encoge al tamaño del ícono + padding */
  margin: 0 auto 2rem;      /* centra horizontalmente */
  padding: 1.2rem;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(255,255,255,.9);
  box-shadow: 0 4px 12px rgba(0,0,0,.07);
  transition: transform .25s;
}
.gift-envelope:hover{
  transform:translateY(-4px);
}

/* Tamaño y color del icono */
.gift-envelope svg{
  width:64px;
  height:64px;
  stroke:var(--terracotta);
  stroke-width:1.8;
}

/* Texto accesible oculto */
.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}

/* —— Texto debajo del título —— */
.gifts-note{
  font-size: 1.05rem;
  margin: 0.5rem auto 1.8rem;
  max-width: 640px;
  line-height: 1.6;
  color: var(--black);
  text-align: center;
}

/* —— Sobre centrado —— */
.gift-envelope{
  display:inline-flex;             /* icono centrado */
  justify-content:center;
  align-items:center;
  margin: 0 auto 2rem;             /* centra el bloque */
  padding:1.2rem;
  border:2px solid var(--gold);
  border-radius:var(--radius);
  background:rgba(255,255,255,.9);
  box-shadow:0 4px 12px rgba(0,0,0,.07);
  transition:transform .25s;
}
.gift-envelope:hover{ transform:translateY(-4px); }

.gift-envelope svg{
  width:64px; height:64px;
  stroke:var(--terracotta);
  stroke-width:1.8;
}

/* Texto accesible oculto */
.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}

/* —— Contenedor que centra el sobre —— */
.gift-envelope-wrapper{
  display: flex;               /* hace de fila flex */
  justify-content: center;     /* centra horizontalmente */
  margin: 1.5rem 0 2rem;       /* separación arriba/abajo */
}

/* El sobre sigue igual; solo asegúrate de que no tenga margen lateral propio */
.gift-envelope{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.2rem;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(255,255,255,.9);
  box-shadow: 0 4px 12px rgba(0,0,0,.07);
  transition: transform .25s;
}

.gift-envelope:hover{
  transform: translateY(-4px);
}

.gift-envelope svg{
  width: 64px;
  height: 64px;
  stroke: var(--terracotta);
  stroke-width: 1.8;
}

/* Contenedor centrado */
.gift-envelope-wrapper{
  display: flex;
  flex-direction: column;      /* ícono arriba, texto debajo */
  align-items: center;
  margin: 1.5rem 0 2rem;
}

/* Sobre (sin cambios) */
.gift-envelope{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.2rem;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(255,255,255,.9);
  box-shadow: 0 4px 12px rgba(0,0,0,.07);
  transition: transform .25s;
}
.gift-envelope:hover{ transform: translateY(-4px); }

.gift-envelope svg{
  width: 64px;
  height: 64px;
  stroke: var(--terracotta);
  stroke-width: 1.8;
}

/* Texto visible bajo el sobre */
.gift-caption{
  font-size: 1rem;
  margin-top: 0.8rem;
  color: var(--black);
  text-align: center;
  max-width: 320px;
}

/* Centrado garantizado */
.gift-envelope-wrapper{
  display: flex;
  flex-direction: column;
  align-items: center;   /* centra el sobre */
  text-align: center;    /* centra el párrafo */
}

/* Texto bajo el título */
.gifts-note{
  font-size: 1.05rem;
  margin: 0 0 1.8rem;    /* sin auto para que no desplace */
  max-width: 640px;
  line-height: 1.6;
  color: var(--black);
}

.carousel-indicator{
  position:absolute;
  bottom:1rem;
  right:1rem;
  background:rgba(0,0,0,.55);
  color:#fff;
  padding:.2rem .6rem;
  border-radius:var(--radius);
  font-size:.9rem;
  font-family:'Libre Baskerville',serif;
}

/* ===== BIENVENIDA ===== */
.welcome-wrapper{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:1.4rem;                /* espacio entre icono, título y texto */
}

.welcome-heart{
  display:flex;
  justify-content:center;
  align-items:center;
}
.welcome-heart svg{
  width:96px;
  height:96px;
  stroke:var(--terracotta);
  stroke-width:2.2;
}

.welcome-text{
  font-size:1.05rem;
  max-width:640px;
  line-height:1.6;
  color:var(--black);
  margin:0 auto;
}


/* ===== TARJETAS FLOTANTES POR SECCIÓN ===== */
.section{
  background: var(--sand) url('../assets/images/linen.png') repeat; /* se mantiene */
  padding: 4rem 1rem;            /* aire alrededor de la tarjeta */
}

.section-wrapper{
  background: #fff;              /* cuerpo blanco */
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;          /* interior de la tarjeta */
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
  max-width: 900px;              /* ancho cómodo */
  margin: 0 auto;                /* centra la tarjeta */
  position: relative;            /* para futuros adornos si quisieras */
}

/* Opcional: reduce padding en móviles pequeños */
@media (max-width: 480px){
  .section-wrapper{ padding: 2.2rem 1.2rem; }
}

/* contenedor de dots + indicador */
.carousel-dots{
  position:absolute;
  bottom:1rem;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;          /* centra verticalmente */
  gap:.5rem;
  pointer-events:auto;
}

/* dot normal */
.carousel-dots button{
  width:.6rem; height:.6rem;
  border-radius:50%;
  background:rgba(255,255,255,.6);
  border:none; cursor:pointer;
  transition:background .25s;
}
.carousel-dots button.active{ background:var(--terracotta); }

/* indicador numérico */
.carousel-counter{
  font:600 .9rem 'Libre Baskerville',serif;
  color:#fff;
  background:rgba(0,0,0,.55);
  padding:.1rem .6rem;
  border-radius:var(--radius);
}

.rsvp-form{
  max-width:420px;margin:0 auto;
  display:flex;flex-direction:column;gap:1.2rem;
}
.rsvp-form label{display:flex;flex-direction:column;gap:.4rem;font-weight:600;}
.rsvp-form input, .rsvp-form textarea{
  padding:.6rem .8rem;border:1px solid var(--gold);
  border-radius:var(--radius);font-size:1rem;
}
.rsvp-thanks{display:none;text-align:center;margin-top:2rem;}
.rsvp-thanks.show{display:block;animation:fade .6s ease;}
@keyframes fade{from{opacity:0}to{opacity:1}}

.hide{ display:none !important; }
#plusone-field {
  transition: all 0.3s ease;
}

.field-group label{ margin-right:1.2rem; display:inline-flex; gap:.4rem; cursor:pointer; }




/* ░░ Ecualizador en miniatura ░░ */
.music-btn{
  position: fixed;
  bottom: 1rem; right: 1rem;
  width: 52px; height: 52px;
  border-radius: 50%; border: none;
  background: var(--terracotta);
  color: #fff; display: flex;
  justify-content: center; align-items: center;
  gap: 3px;                 /* separa barras */
  cursor: pointer; z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  transition: background .3s;
}
.music-btn:hover{ background: var(--sage); }

/* barras */
.music-btn .bar{
  width: 4px; height: 16px;
  background: currentColor;
  border-radius: 2px;
  animation: bounce 0.8s infinite ease-in-out;
  animation-play-state: paused;       /* empieza quieto */
}

/* alturas/retardo distintos para que no vayan iguales */
.music-btn .bar:nth-child(1){ animation-delay: 0s;   }
.music-btn .bar:nth-child(2){ animation-delay: .1s;  }
.music-btn .bar:nth-child(3){ animation-delay: .2s;  }
.music-btn .bar:nth-child(4){ animation-delay: .3s;  }

/* keyframes: escala vertical */
@keyframes bounce{
  0%,100% { transform: scaleY(0.3); }
  50%     { transform: scaleY(1);   }
}

/* cuando suena la música se pone la clase .playing */
.music-btn.playing .bar{
  animation-play-state: running;
}

/* --------------------------------------------------
   TIPOGRAFÍA DINÁMICA Y DESTACADOS
   -------------------------------------------------- */

/* Lead — primer párrafo destacado de cada sección */
.lead{
  font-size: clamp(1.15rem, 2.6vw, 1.35rem);
  line-height: 1.75;
  color: var(--sage);
  font-style: italic;
  max-width: 700px;
  margin: 0.75rem auto 2rem;
}

/* Drop cap (capitular) en la primera letra */
.dropcap:first-letter{
  float: initial;
  font-family: 'Parisienne', cursive;
  font-size: 3.5rem;
  line-height: 1;
  padding: 0 0.4rem 0 0;
  color: var(--terracotta);
}

/* Pequeña línea decorativa bajo cada H2 */
.section h2{
  position: relative;
  display: inline-block;          /* para que el after ajuste el ancho */
}
.section h2::after{
  content: '';
  position: absolute;
  left: 50%; bottom: -0.45rem;
  width: 60%;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
}

/* Subrayado suave al pasar el cursor sobre enlaces tipo botón */
a.btn-primary, a.btn-secondary{
  position: relative;
  overflow: hidden;               /* para recortar la animación */
}


/* Resaltado de palabras clave dentro de un párrafo */
.highlight{
  color: var(--terracotta);
  font-weight: 700;
}

/* Fade-in + slide-up sutil para párrafos dentro de .section */
@keyframes riseFade{
  from{ opacity: 0; transform: translateY(12px); }
  to  { opacity: 1; transform: none; }
}
.section p{
  opacity: 0;
  animation: riseFade .8s ease forwards;
}
.section p:nth-child(1){ animation-delay: .1s; }
.section p:nth-child(2){ animation-delay: .25s; }
.section p:nth-child(3){ animation-delay: .4s; }

/* ————————————————————————————————
   1 · CENTRADO ROBUSTO DE H2
   ———————————————————————————————— */
.section h2,
.section-wrapper > h2{           /* cubre los H2 que pusiste fuera del wrapper */
  text-align:center;
  display:inline-block;          /* permite la línea dorada */
  margin-inline:auto;            /* los centra aunque sean inline-block */
}

/* ————————————————————————————————
   2 · PÁRRAFOS TIPIFICADOS
   ———————————————————————————————— */

/* Texto principal (ya lo tienes) → .lead */

/* Texto de cuerpo normal: sin clase, hereda lo de siempre */

/* Texto informativo / meta  */
.note{
  font-size: 0.95rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--black) 80%, white);  /* un gris tenue */
  max-width: 700px;
  margin: 0.4rem auto 1.4rem;
  font-style: italic;
}

/* Opcional icono al inicio  */
.note::before{
  content: 'ℹ️';
  margin-right: 0.35rem;
}

/* ════════════════════════════════════════════════════════
   TARJETAS «Ubicación»  y  «Hospedaje»
   Se aplican *solo* a .location-card y .stay-card
   ════════════════════════════════════════════════════════ */

/* marco + sombra refinada (ya existe pero lo mejoramos) */
.location-card,
.stay-card{
  background: rgba(255,255,255,.96);          /* un blanco más sólido   */
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem 1.8rem 2.4rem;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);     /* sombra más suave       */
  transition: transform .25s, box-shadow .25s;
}
.location-card:hover,
.stay-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,.12);
}

/* ——— Separador dorado bajo la imagen ——— */
.location-card img,
.stay-card     img{
  border-radius: var(--radius);
  margin-bottom: 1.4rem;
  position: relative;
}
.location-card img::after,
.stay-card     img::after{
  content:"";
  position:absolute;
  left:50%; bottom:-0.8rem;
  width:60%; height:2px;
  background: var(--gold);
  transform: translateX(-50%);
}

/* ——— Tipografía del texto interno ——— */
.location-card p,
.stay-card     p{
  font-size: 1.05rem;
  line-height: 1.55;
  text-align: center;
  margin-bottom: 0.9rem;
}

.location-card strong,
.stay-card     strong{
  color: var(--terracotta);
  font-weight: 700;
}

/* etiqueta “CEREMONIA & BRINDIS / HOTEL” más vistosa */
.location-card .label,
.stay-card     .label{
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  letter-spacing: .02em;
  color: var(--terracotta);
  margin-bottom: .35rem;
  position: relative;
}
.location-card .label::before,
.stay-card     .label::before{
  content: "❧";
  font-size: 1.1rem;
  color: var(--gold);
  margin-right: .35rem;
}

/* ——— Botones bajo las tarjetas siempre centrados ——— */
.location-actions{
  margin-top: 2.2rem;
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ╔════════════════════════════════════════════╗
   ║   CENTRADO EXCLUSIVO PARA LA SECCIÓN FOTO  ║
   ╚════════════════════════════════════════════╝ */

.section-gallery {                                    /* ① el contenedor */
  text-align: center;                                /* centra todo     */
}

/* Encabezado con sub-rayado dorado ya existente → lo centramos mejor */
.section-gallery h2.centered{
  display: inline-block;                             /* ancho - contenido */
  margin-inline: auto 0;                             /* auto → centrado   */
  position: relative;
}
.section-gallery h2.centered::after{
  content:"";
  position:absolute;
  left:50%; bottom:-.65rem;
  width:68%; height:2px;
  background: var(--gold);
  transform: translateX(-50%);
}

/* Nota debajo del título */
.gallery-note.centered{
  max-width: 520px;                                  /* línea cómoda      */
  margin: 1.2rem auto 2.4rem;                        /* centrado vertical */
  font-style: italic;
  line-height: 1.65;
}

/* Drop-cap (si usas <span class="swash">F</span> …) */
.gallery-note.centered .swash{
  font-family: 'Great Vibes', cursive;
  font-size: 2.3rem;
  color: var(--terracotta);
  margin-right: .2rem;
  vertical-align: baseline;
}

/* ╔══════════════════════════════════════════════════╗
   ║      ESTILO «LEAD + DROPCAP» PARA GALLERY NOTE   ║
   ╚══════════════════════════════════════════════════╝ */

/* ——— Cuerpo del párrafo: un poco más grande y aireado ——— */
.gallery-note.lead{
  font-family: 'Libre Baskerville', serif;
  font-size: 1.15rem;               /* ligeramente mayor */
  line-height: 1.7;
  max-width: 560px;                 /* ancho cómodo de lectura */
  margin: 1rem auto 2.4rem;         /* centrado vertical */
  text-align: center;              /* bloque elegante */
  color: var(--sage);
}

/* ——— Letra inicial decorativa ——— */
.gallery-note.dropcap::first-letter{
  font-family: 'Great Vibes', cursive;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--terracotta);
  float: initial;

  margin: .05rem .45rem .05rem 0;
  
}

/* Corrige el interlineado tras el float en móviles muy estrechos */
@media (max-width: 420px){
  .gallery-note.lead{ text-align:center; }
  .gallery-note.dropcap::first-letter{
    font-size: 2.6rem;
    margin-right: .35rem;
  }
}

/* ╔══════════════════════════════════════════════════╗
   ║   ESTILO «LEAD + DROPCAP» PARA GIFTS-NOTE        ║
   ╚══════════════════════════════════════════════════╝ */

/* Cuerpo del texto: mismo tono salvia, centrado y aireado */
.gifts-note.centered-sage{
  font-family: 'Libre Baskerville', serif;
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 1rem auto 2.4rem;
  text-align: center;
  color: var(--sage);
}

/* Letra inicial caligráfica en terracota */
.gifts-note.dropcap::first-letter{
  font-family: 'Great Vibes', cursive;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--terracotta);

  /* Sin float → no desalinear el párrafo */
  float: initial;
  margin: .05rem .45rem .05rem 0;
}

/* Ajuste en móviles muy estrechos */
@media (max-width:420px){
  .gifts-note.centered-sage{ font-size: 1.05rem; }
  .gifts-note.dropcap::first-letter{
    font-size: 2.6rem;
    margin-right: .35rem;
  }
}

/* ╔══════════════════════════════════════════════════╗
   ║           CENTRADO + SUBRAYADO DORADO            ║
   ╚══════════════════════════════════════════════════╝ */

/* Título genérico para secciones ─ centrado */
.section-title{
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw + 1rem, 2.8rem);
  color: var(--terracotta);
  text-align: center;
  display: inline-block;   /* permite pseudo-elemento centrado */
  position: relative;
  margin: 0 auto 1.5rem;   /* centrado en el contenedor */
}

/* Variante con subrayado dorado */
.centered-underline::after{
  content: '';
  width: 140px;            /* largo de la línea */
  height: 2px;
  background: var(--gold);
  display: block;
  margin: .75rem auto 0;   /* centrada bajo el texto */
}
/* ───── Estilo centrado exclusivo para el título de Mesa de Regalos ───── */
.gift-title{
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  color: var(--terracotta);
  text-align: center;        /* fuerza centrado del texto                 */
  display: block;            /* se asegura de ocupar 100 % del ancho       */
  margin: 0 auto 1.5rem;     /* lo mantiene en el centro y añade respiro   */
  position: relative;        /* permite el subrayado dorado                */
}

/* subrayado fino dorado bajo el título */
.gift-title::after{
  content: '';
  width: 140px;
  height: 2px;
  background: var(--gold);
  display: block;
  margin: 0.75rem auto 0;    /* centrado justo debajo                      */
}

/* ════════════════════════════════════════════════════
   ESTILO «RSVP ELEGANTE»
   Se aplica solo dentro de .section-rsvp
   ════════════════════════════════════════════════════ */

/* 1 ▸ Etiquetas (ej. “Nombre completo”) */
.section-rsvp label{
  font-family: 'Libre Baskerville', serif;
  font-size: 1.05rem;
  color: var(--sage);
  font-weight: 600;
  letter-spacing: .02em;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: 1.2rem;                     /* respiro vertical */
}

/* 2 ▸ Campos de texto / textarea */
.section-rsvp input[type="text"],
.section-rsvp textarea{
  padding: .65rem .85rem;
  border: 2px solid color-mix(in srgb, var(--gold) 70%, white);
  border-radius: var(--radius);
  background: #fff;
  font-size: 1rem;
  line-height: 1.45;
  transition: border-color .25s, box-shadow .25s;
}

.section-rsvp input[type="text"]::placeholder,
.section-rsvp textarea::placeholder{
  color: color-mix(in srgb, var(--sage) 60%, white);
  font-style: italic;
}

/* 3 ▸ Estado focus */
.section-rsvp input[type="text"]:focus,
.section-rsvp textarea:focus{
  border-color: var(--sage);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--terracotta) 35%, transparent);
}

/* 4 ▸ Radios “¿Llevarás acompañante?” — con pill-label */
.section-rsvp .field-group{
  margin-bottom: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
  align-items: center;
  font-family: 'Libre Baskerville', serif;
  color: var(--black);
}

.section-rsvp .field-group span{
  font-weight: 600;
  color: var(--sage);
  margin-right: .4rem;
}

.section-rsvp .field-group label{
  flex-direction: row;
  gap: .35rem;
  font-weight: 500;
  margin: 0;
}

.section-rsvp .field-group input[type="radio"]{
  accent-color: var(--terracotta);           /* radio moderno en navegadores nuevos */
  width: 18px; height: 18px;
}



/* 6 ▸ Gracias por confirmar (mensaje de éxito) */
.section-rsvp .rsvp-thanks h3{
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--terracotta);
  margin-bottom: .4rem;
}
.section-rsvp .rsvp-thanks p{
  font-size: 1.05rem;
  color: var(--sage);
}



/* ╔════════════════════════════════════════════╗
   ║        ESTILO PARA TARJETAS DRESS CODE     ║
   ╚════════════════════════════════════════════╝ */

.dress-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.dress-card {
  background-color: var(--sand);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.dress-card:hover {
  transform: translateY(-4px);
}

.dress-icon {
  width: 64px;
  height: auto;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.dress-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--terracotta);
  margin-bottom: 0.8rem;
}

.dress-tips {
  font-family: 'Libre Baskerville', serif;
  color: var(--sage);
  font-size: 0.95rem;
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.6;
}

.dress-tips li::before {
  content: '✧ ';
  color: var(--gold);
  margin-right: 0.3rem;
}

@media (max-width: 420px){
  .dress-card {
    padding: 1.2rem;
  }
  .dress-card h3 {
    font-size: 1.2rem;
  }
}

/* ========== PANTALLA DE ENTRADA ========== */
.entry-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: 'Playfair Display', serif;
  transition: opacity 0.5s ease;
}

.entry-box {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  max-width: 90%;
}

.entry-box h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--gold);
  margin-bottom: 1rem;
}

.entry-box p {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 2rem;
}

.entry-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.note-soft{
  display:block;
  margin-top:.25rem;
  font-size:.95em;
  color: var(--sage);
  opacity:.9;
}

