/* ══════════════════════════════════════════
   BASE RESPONSIVE — TODOS LOS DISPOSITIVOS
══════════════════════════════════════════ */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
body {
  min-width: 320px;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── RESET ── */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family:'Inter',sans-serif;
  background:#f5ecfa;
  color:#745c72;
  overflow-x:hidden;
}

/* TEXTURA FONDO */
body::before {
  content:'';
  position:fixed;
  inset:0;
  background:url('https://i.ibb.co/LGwTCCm/Lila-fondo.jpg');
  opacity:.04;
  pointer-events:none;
  z-index:-1;
}

/* TIPOGRAFÍAS */
h1,h2,h3 { font-family:'Cormorant Garamond',serif; font-weight: 600; }
.title-xl {
  font-family: 'Alex Brush', cursive;
  font-size: clamp(3.2rem, 13vw, 6.5rem);
  line-height: .95;
  font-weight: 400;
  color: #4a0763;
  margin: 0 auto;
  max-width: 100%;
  overflow-wrap: normal;
  text-wrap: balance;
  text-shadow:
    0 2px 10px rgba(255,255,255,.9),
    0 4px 30px rgba(170,130,190,.18);
}
.title-xl span { font-size:.7em; color:#a34fce; font-family:'Alex Brush',cursive; }

.eyebrow_overlay {
  letter-spacing:.25em;
  font-size:1.5rem;
  margin-bottom:18px;
}
.purple { color:#a583c2; }

/* SECCIONES */
section {
  position:relative;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

/* ══════════════════════════════════════════
   LOADER
══════════════════════════════════════════ */
.loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #c04fe0 0%, #a20ad4 50%, #5a0877 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .8s ease, visibility .8s ease;
  overflow: hidden;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}
.loader-corazon {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  background-image: url('Corazon_anillos.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  animation:
    corazonEntrada 1.2s cubic-bezier(.22,1,.36,1) .2s forwards,
    corazonPulso   1.4s ease-in-out 1.6s infinite;
}
@keyframes corazonEntrada {
  0%   { opacity: 0; transform: scale(.4) translateY(10px); }
  60%  { opacity: 1; transform: scale(1.15) translateY(-4px); }
  80%  { transform: scale(.95) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes corazonPulso {
  0%,100% { transform: scale(1);    filter: drop-shadow(0 0 0px rgba(203,183,216,0)); }
  50%     { transform: scale(1.12); filter: drop-shadow(0 0 10px rgba(203,183,216,.6)); }
}
.loader-eyebrow {
  letter-spacing: .35em;
  font-size: .75rem;
  color: rgba(203,183,216,.6);
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}
.loader-title {
  font-family: 'Alex Brush', cursive;
  font-size: clamp(3.5rem, 10vw, 7rem);
  color: #fff;
  font-weight: 400;
  line-height: 1.2;
  text-shadow:
    0 0 40px rgba(203,183,216,.5),
    0 0 80px rgba(170,130,190,.3);
  margin-bottom: 40px;
  opacity: 0;
  animation: loaderTitleIn 1.2s ease .3s forwards;
}
.loader-title span {
  font-size: .7em;
  color: #cdaee6;
}
.loader-bar-wrap {
  width: min(280px, 70vw);
  height: 2px;
  background: rgba(255,255,255,.12);
  border-radius: 10px;
  margin: 0 auto 16px;
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #cdaee6, #fff, #cdaee6);
  border-radius: 10px;
  transition: width .05s linear;
  box-shadow: 0 0 12px rgba(203,183,216,.8);
}
.loader-hint {
  font-size: .78rem;
  color: rgba(203,183,216,.45);
  letter-spacing: .15em;
  font-family: 'Inter', sans-serif;
}

/* DESTELLOS LOADER */
.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.sparkle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: sparklePop var(--dur) ease forwards;
  background: radial-gradient(circle, #fff 0%, rgba(203,183,216,.6) 50%, transparent 70%);
}
@keyframes sparklePop {
  0%   { opacity: 0; transform: scale(0) rotate(0deg); }
  30%  { opacity: 1; transform: scale(1) rotate(180deg); }
  70%  { opacity: .8; }
  100% { opacity: 0; transform: scale(.3) rotate(360deg) translateY(-20px); }
}
@keyframes loaderTitleIn {
  0%   { opacity: 0; transform: translateY(30px); filter: blur(10px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* ══════════════════════════════════════════
   DESTELLOS DORADOS GLOBALES
══════════════════════════════════════════ */
.sparkles-global {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}
.sparkle-gold {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  animation: sparkleGoldPop var(--dur) ease forwards;
}
.sparkle-gold.star {
  border-radius: 0;
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%,
    68% 57%, 79% 91%, 50% 70%,
    21% 91%, 32% 57%, 2% 35%,
    39% 35%
  );
}
.sparkle-gold.diamond {
  border-radius: 0;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.sparkle-gold.dot { border-radius: 50%; }
@keyframes sparkleGoldPop {
  0%   { opacity: 0; transform: scale(0) rotate(0deg) translateY(0); }
  20%  { opacity: 1; transform: scale(1) rotate(90deg) translateY(-8px); }
  60%  { opacity: .85; transform: scale(.9) rotate(200deg) translateY(-18px); }
  100% { opacity: 0; transform: scale(.2) rotate(360deg) translateY(-35px); }
}
/* ══════════════════════════════════════════
   ACCESO / VALIDACIÓN DE INVITADO
══════════════════════════════════════════ */
.access-gate {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(
      135deg,
      rgba(213, 149, 229, 0.98),
      rgba(181, 118, 223, 0.98)
    );
  opacity: 0;
  visibility: hidden;
  transition:
    opacity .7s ease,
    visibility .7s ease;
}
.access-gate.visible {
  opacity: 1;
  visibility: visible;
}
.access-gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.access-card {
  width: min(440px, 100%);
  padding: clamp(32px, 7vw, 52px)
           clamp(24px, 7vw, 46px);
  text-align: center;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(162,10,212,.14);
  border-radius: 24px;
  box-shadow:
    0 20px 60px rgba(74,7,99,.14),
    0 4px 20px rgba(162,10,212,.08);
  position: relative;
  overflow: hidden;
}

.access-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(162,10,212,.10);
  border-radius: 18px;
  pointer-events: none;
}

.access-ornament {
  position: relative;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.3rem;
  color: #a20ad4;
  margin-bottom: 8px;
}
.access-eyebrow {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #a583c2;
  margin-bottom: 12px;
}

.access-title {
  position: relative;
  font-family: 'Alex Brush', cursive;
  font-size: clamp(2.7rem, 10vw, 4rem);
  font-weight: 400;
  line-height: 1;
  color: #4a0763;
  margin-bottom: 22px;
}

.access-text {
  position: relative;
  max-width: 340px;
  margin: 0 auto 28px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  line-height: 1.45;
  color: #745c72;
}

.access-field {
  position: relative;
  text-align: left;
  margin-bottom: 20px;
}

.access-field label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  color: #745c72;
  margin-bottom: 8px;
}

.phone-input {
  display: flex;
  width: 100%;
  border: 1px solid #d8c3e2;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition:
    border-color .25s ease,
    box-shadow .25s ease;
}

/* ══════════════════════════════════════════
   SELECTOR CÓDIGO INTERNACIONAL
══════════════════════════════════════════ */

.country-select {
  flex: 0 0 105px;
  width: 105px;

  border: 0;
  border-right: 1px solid #e3d4e9;
  outline: none;

  padding: 0 30px 0 14px;

  background-color: #f5ecfa;

  color: #4a0763;

  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  font-weight: 600;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a583c2' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: right 10px center;

  transition:
    background-color .25s ease,
    color .25s ease;
}

.country-select:hover {
  background-color: #efe2f7;
}

.country-select:focus {
  background-color: #f5ecfa;
  color: #5a0877;
}

/* Safari / iPhone */
.country-select option {
  background: #fff;
  color: #4a0763;
  font-family: 'Inter', sans-serif;
}

@media (max-width: 480px) {

  .country-select {
    flex: 0 0 98px;
    width: 98px;
    padding-left: 10px;
    padding-right: 25px;
    font-size: 16px;
  }

}

.phone-input:focus-within {
  border-color: #a20ad4;
  box-shadow:
    0 0 0 3px rgba(162,10,212,.10);
}

.phone-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: #f5ecfa;
  color: #745c72;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  border-right: 1px solid #e3d4e9;
}

.phone-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #4a0763;
  background: transparent;
  letter-spacing: .08em;
}
.phone-input input::placeholder {
  color: #b9a7be;
  letter-spacing: .04em;
}
.access-field small {
  display: block;
  margin-top: 7px;
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  color: #a583c2;
  text-align: center;
}
.access-btn {
  position: relative;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background:
    linear-gradient(
      135deg,
      #c04fe0,
      #a20ad4,
      #5a0877
    );
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .08em;
  cursor: pointer;
  box-shadow:
    0 8px 22px rgba(162,10,212,.22);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    opacity .25s ease;
}
.access-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 28px rgba(162,10,212,.30);
}
.access-btn:active {
  transform: translateY(0);
}
.access-btn:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}
.access-message {
  min-height: 24px;
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  line-height: 1.4;
}
.access-message.error {
  color: #a94442;
}
.access-message.success {
  color: #7d6090;
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .access-gate {padding: 16px;}
  .access-card {padding:30px 22px 28px;  border-radius: 20px; }
  .access-title {  font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .access-text {    font-size: 1.05rem;  }
  .phone-input input {    font-size: 16px;  }
  .access-btn {    padding: 13px 18px;  }
}

@media (max-height: 650px) and (orientation: landscape) {
  .access-gate {
    align-items: flex-start;
    overflow-y: auto;
    padding: 18px;
  }
  .access-card {
    margin: auto;
    padding: 24px;
  }

  .access-ornament {
    font-size: 1.8rem;
  }
  .access-title {
    margin-bottom: 12px;
  }
  .access-text {
    margin-bottom: 18px;
  }
  .access-help {
    margin-top: 15px;
  }
}

/* ══════════════════════════════════════════
   HERO PRINCIPAL
   — Flores superpuestas en esquinas (sin ::before/::after genérico)
══════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  min-height: calc(min(68svh, 720px) - 68px);
  padding:
    clamp(45px, 7vw, 90px)
    clamp(16px, 5vw, 60px);
  background:
    linear-gradient(
      rgba(255,255,255,.78),
      rgba(255,255,255,.68)
    ),
    url('Principal.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  transition: opacity 2.8s ease, transform 3.2s ease, filter 2.5s ease;
}

/* Flower_left.png — esquina inferior izquierda del hero */
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70vw;
  height: 70vw;
  background-image: url('Flower_left.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom left;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}

/* Flower_Rigth.png — esquina superior derecha del hero */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 70vw;
  height: 70vw;
  background-image: url('Flower_Rigth.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top right;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
 }


.hero-main {
  width: min(100%, 900px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.eyebrow{
  margin-bottom: clamp(24px, 3.5vw, 42px);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 1px;
  font-weight: 600;
}
.hero .title-xl {
  margin: 0;
  line-height: 0.95;
}

.hero .lead {
  width: min(100%, 560px);
  margin: clamp(30px, 4vw, 48px) auto 0;
  padding-inline: 8px;
  font-size: clamp(.88rem, 2.2vw, 1.08rem);
  line-height: 1.65;
  text-wrap: pretty;
}
body.preload .hero {
  opacity: 0;
  transform: scale(1.08);
  filter: blur(8px);
}
.hero.hero-visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}
.hero .inner {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.8s ease, transform 1.8s ease;
  transition-delay: .8s;
}
.hero.hero-visible .inner {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════
   FLORES GENÉRICAS PARA SECCIONES
   (se aplica a todas excepto hero, itinerario,
    hero-countdown y dresscode que tienen reglas propias)
══════════════════════════════════════════ */

/* Por defecto: todas las secciones que no sean hero ni itinerario
   usan Flor left / Flor Rigth con opacidad reducida */
section:not(.hero):not(.section-itinerario):not(.hero-countdown):not(.section-dresscode)::before,
section:not(.hero):not(.section-itinerario):not(.hero-countdown):not(.section-dresscode)::after {
  content: '';
  position: absolute;
  top: 0;
  width: 50vw;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: .10;
}
section:not(.hero):not(.section-itinerario):not(.hero-countdown):not(.section-dresscode)::before {
  left: 0;
  background-image: url('Flor\ Left.png');
  background-position: left top;
  animation: floatLeft 8s ease-in-out infinite;
}
section:not(.hero):not(.section-itinerario):not(.hero-countdown):not(.section-dresscode)::after {
  right: 0;
  background-image: url('Flor\ Rigth.png');
  background-position: right bottom;
  animation: floatRight 8s ease-in-out infinite;
}

/* ══════════════════════════════════════════
   HERO-COUNTDOWN — Flor left / Flor Rigth SIN transparencia
══════════════════════════════════════════ */
.hero-countdown {
  position: relative;
  overflow: hidden;
}
.hero-countdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50vw;
  height: 75%;
  background-image: url('Flor\ Left.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left top;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}
.hero-countdown::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50vw;
  height: 75%;
  background-image: url('Flor\ Rigth.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right bottom;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}

/* ══════════════════════════════════════════
   DRESS CODE — Flor left / Flor Rigth SIN transparencia
══════════════════════════════════════════ */
.section-dresscode {
  position: relative;
  overflow: hidden;
}
.section-dresscode::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50vw;
  height: 100%;
  background-image: url('Flor\ Left.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left top;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}
.section-dresscode::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50vw;
  height: 100%;
  background-image: url('Flor\ Rigth.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right bottom;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}

/* ══════════════════════════════════════════
   ITINERARIO — Flower_left esquina inf-izq /
                Flower_Rigth esquina sup-der (superpuestos)
══════════════════════════════════════════ */
/* Flower_left.png — esquina inferior izquierda del itinerario */
.section-itinerario::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50vw;
  height: 50vw;
  background-image: url('Flower_left.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom left;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}

/* Flower_Rigth.png — esquina superior derecha del itinerario */
.section-itinerario::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50vw;
  height: 50vw;
  background-image: url('Flower_Rigth.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top right;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}

/* ══════════════════════════════════════════
   HISTORIA 
   ══════════════════════════════════════════ */
.section-historia {
  background: #f8effd;
  padding: 70px 24px 80px;
}

.inner {
  position: relative;
  z-index: 2;
  width: min(100%, 900px);
  margin-inline: auto;
  padding-inline: clamp(8px, 3vw, 30px);
}

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  to { opacity:1; transform:translateY(0); }
}
@keyframes titleReveal {
  0%   { opacity:0; transform:translateY(60px) scale(.92); letter-spacing:8px; filter:blur(8px); }
  100% { opacity:1; transform:translateY(0) scale(1); letter-spacing:0; filter:blur(0); }
}
@keyframes floatLeft {
  0%,100% { transform:translateY(0) scale(1.05); }
  50%     { transform:translateY(-10px) scale(1.05); }
}
@keyframes floatRight {
  0%,100% { transform:translateY(0) scale(1.05); }
  50%     { transform:translateY(10px) scale(1.05); }
}
@keyframes flowerLeftEntrance {
  0%   { opacity:0; transform:translateX(-120px) scale(.8); }
  100% { opacity:.30; transform:translateX(0) scale(1.05); }
}
@keyframes flowerRightEntrance {
  0%   { opacity:0; transform:translateX(120px) scale(.8); }
  100% { opacity:.30; transform:translateX(0) scale(1.05); }
}
@keyframes backdropIn {
  to { opacity:1; }
}
@keyframes panelInDesktop {
  from { opacity:0; transform:translateX(60px); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes panelInMobile {
  from { opacity:0; transform:translateY(40px) scale(.97); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}
@keyframes heartbeat {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.15); }
}
@keyframes palpitar {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ── TEXTOS ── */
.lead { max-width:650px; margin:25px auto; line-height:1.8; color: #0f0114; }

/* ── BOTONES ── */
.buttons { margin-top:30px; }
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  background: linear-gradient(135deg, #a20ad4, #c04fe0);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(162,10,212,.40);
  animation: palpitar 1.4s ease-in-out infinite;
  transition: background .3s ease, box-shadow .3s ease, transform .2s ease;
  clip-path: none;
  width: auto;
  height: auto;
}
.btn:hover {
  animation-play-state: paused;
  background: linear-gradient(135deg, #8a0ab3, #a20ad4);
  box-shadow: 0 12px 32px rgba(150,100,200,.55);
  transform: translateY(-2px) scale(1.03);
}
.btn:active { transform: translateY(0px) scale(.98); }

.btn-dark {
  width: 100%;
  border: none;
  background: #a20ad4;
  color: #fff;
  padding: 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: .3s;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}
.btn-dark:hover { opacity: .9; }

/* ══════════════════════════════════════════
   OVERLAY
══════════════════════════════════════════ */
.overlay {
  position: fixed;
  inset: 0;
  background-image: url('Overlay-vertical.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: opacity 3s ease, visibility 3s ease;
  overflow: hidden;
  text-align: center;
}

@media (min-width: 768px) {
  .overlay {
    background-image: url('Overlay-horizontal.png');
    background-size: cover;
    background-position: center center;
  }
}

.overlay.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
}

.overlay-card {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}
.overlay-card .eyebrow {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s ease forwards;
  margin-bottom: 0;
}
.overlay-card .title-xl {
  opacity: 0;
  transform: translateY(50px) scale(.96);
  animation: titleReveal 1.6s ease forwards;
  animation-delay: .4s;
  margin-bottom: 0;
}
.overlay-card .lead {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s ease forwards;
  animation-delay: 1s;
}
.overlay-card .buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 300px;
  margin: clamp(30px, 5vw, 42px) auto 0;
}
.overlay-card .buttons .btn {
  min-height: 48px;
  width: min(290px, 75vw);
  text-align: center;
}

/* ══════════════════════════════════════════
   FECHA + COUNTDOWN
══════════════════════════════════════════ */
.hero-countdown {
  width: 100%;
  min-height: 0 !important;
  height: auto !important;
  padding:
    clamp(40px, 6vw, 70px)
    clamp(15px, 4vw, 30px)
    clamp(50px, 7vw, 80px);
  background: #f4ecfb;
  text-align: center;
  display: block;
  box-sizing: border-box;
}
.hero-countdown-inner {
  width: min(100%, 850px);
  margin-inline: auto;
  min-height: 0;
  height: auto;
}
.hero-countdown .hero-esperamos {
  margin: 0 0 clamp(20px, 4vw, 32px);
  font-family: 'Alex Brush', cursive;
  font-size: clamp(2.3rem, 7vw, 3.6rem);
  line-height: 1.1;
  color: #8a0ab3;
}

.fecha-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 4vw, 34px);
  margin: 0 auto clamp(38px, 7vw, 56px);
}
.fecha-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1.5vw, 10px);
}
.fecha-line {
  width: clamp(40px, 7vw, 68px);
  height: 1px;
  background: #cdaee6;
}
.fecha-label {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(.85rem, 2vw, 1.05rem);
  letter-spacing: .16em;
  color: #8a0ab3;
}
.fecha-day {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(3.4rem, 11vw, 5.2rem);
  line-height: 1;
  color: #4a0763;
}

.hero-frase-title {
  width: 100%;
  max-width: 900px;
  margin: 0 auto clamp(10px, 2vw, 16px);
  text-align: center;
  font-family: 'Alex Brush', cursive;
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 1px;
  color: #8a0ab3;
}
.hero-countdown .hero-frase {
  width: min(100%, 650px);
  margin: 0 auto clamp(30px, 6vw, 46px);
  font-size: clamp(.85rem, 2.1vw, 1.02rem);
  line-height: 1.55;
  color: #5d4960;
  text-wrap: pretty;
}

.countdown {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: clamp(8px, 3vw, 24px);
  margin-top: 0;
}
.countdown div {
  flex: 0 1 clamp(72px, 19vw, 116px);
  aspect-ratio: 5 / 7;
  min-height: 0;
  min-width: 0;
  border: 1.5px solid #4a0763;
  border-radius: 999px 999px 6px 6px;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.4vw, 9px);
  padding: 10% 8%;
  box-sizing: border-box;
  text-align: center;
}
.countdown span {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 7vw, 2.7rem);
  line-height: 1;
  color: #b877cf;
  font-variant-numeric: tabular-nums;
}
.countdown small {
  display: block;
  margin-top: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(.72rem, 2vw, .92rem);
  line-height: 1.1;
  letter-spacing: .03em;
  text-transform: none;
  color: #4a0763;
}

/* ── FONDOS ── */
.soft { background: transparent; }

/* ── CARD ── */
.card {
  max-width: 1000px;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  border: none;
  padding: 60px;
  border-radius: 0;
  position: relative;
  z-index: 2;
}
.card, .inner { position: relative; z-index: 2; }
.center { text-align: center; }
.story { max-width: 720px; margin: auto; line-height: 2; }

/* ══════════════════════════════════════════
   NUESTRA HISTORIA 
   ══════════════════════════════════════════ */
.historia-tagline {
  max-width: 640px;
  margin: 0 auto clamp(28px, 5vw, 46px);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  line-height: 1.6;
  color: #a583c2;
  text-align: center;
  position: relative;
  z-index: 2;
}
.historia-columns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  position: relative;
  z-index: 2;
}
.historia-text { text-align: center; width: 100%; }
.arch-photo-wrap {
  display: flex;
  justify-content: center;
}
.arch-photo {
  width: 220px;
  height: 300px;
  background: url('I&K (9).jpg') center/cover no-repeat;
  border-radius: 110px 110px 0 0;
  box-shadow: 0 12px 50px rgba(100,60,140,0.2);
  border: 3px solid #4a0763;
  position: relative;
}
.arch-photo::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 116px 116px 0 0;
  border: 1px solid rgba(201,168,224,0.4);
}

@media (min-width: 820px) {
  .historia-columns {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }
  .arch-photo-wrap { flex: 0 0 300px; }
  .historia-text { flex: 1; text-align: left; }
  .historia-text .section-title { text-align: left; margin-left: 0; }
  .historia-text .story-text { text-align: left; margin-left: 0; }
}

/* ══════════════════════════════════════════
   DETALLES: EVENTOS GRID
══════════════════════════════════════════ */
#detalles {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
}
.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
  text-align: left;
}
.event-block {
  background: linear-gradient(135deg, #4a0763 0%, #8a0ab3 100%);
  border: 1px solid rgba(170,140,190,.20);
  border-radius: 24px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 6px 24px rgba(154,132,168,.08);
  transition: .3s;
  text-align: center;
  align-items: center;
}
.event-block:hover {
  box-shadow: 0 10px 32px rgba(154,132,168,.16);
  transform: translateY(-3px);
}
.event-icon {
  width: clamp(70px, 12vw, 100px);
  height: clamp(70px, 12vw, 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.event-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.event-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: #e6d8ef;
  margin-bottom: 4px;
}
.event-detail {
  display: flex;
  flex-direction: column;
  font-family: 'Dancing Script', cursive;
  gap: 2px;
  font-size: 1.2rem;
  color: #fefefe;
  line-height: 1.5;
  align-items: center;
  text-align: center;
  width: 100%;
}
.event-label {
  font-size: 1.2rem;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: .14em;
  color: #efe4f8;
  text-transform: uppercase;
  font-weight: 500;
}
.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  justify-content: center;
}

.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg,#fcfbfc,#ded0f2);
  color: #5a0877;
  border-radius: 30px;
  border: 1px solid #cdaee6;
  text-decoration: none;
  font-size: .82rem;
  font-family: 'Inter', sans-serif;
  transition: .3s;
  box-shadow: 0 4px 14px rgba(149, 9, 236, 0.22);
  white-space: nowrap;
}
.btn-map:hover {
  transform: translateY(-2px);
  background: #6b0a8c;
  color: #f9f8f9;
  box-shadow: 0 8px 20px rgba(189, 154, 211, 0.32);
}

.btn-agenda {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg,#fcfbfc,#ded0f2);
  color: #5a0877;
  border: 1px solid #cdaee6;
  border-radius: 30px;
  text-decoration: none;
  font-size: .82rem;
  font-family: 'Inter', sans-serif;
  transition: .3s;
  white-space: nowrap;
}
.btn-agenda:hover {
  transform: translateY(-2px);
  background: #6b0a8c;
  color: #f9f8f9;
  border-color: #a37fc0;
}

.btn-confirm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg,#fcfbfc,#ded0f2);
  color: #5a0877;
  border: 1px solid #cdaee6;
  border-radius: 30px;
  font-size: .82rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: .3s;
  white-space: nowrap;
}
.btn-confirm:hover {
  transform: translateY(-2px);
  background: #6b0a8c;
  color: #f9f8f9;
  border-color: #a37fc0;
}

/* ══════════════════════════════════════════
   ITINERARIO
══════════════════════════════════════════ */
.section-itinerario {
  position: relative;
  overflow: hidden;
  background: #f8effd;
  padding: 95px 24px;
}
/* Foto de fondo muy transparente */
.section-itinerario > .inner-bg {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bg-itinerario);
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}
.section-itinerario > .container {
  position: relative;
  z-index: 1;
}
.itinerario-intro {
  font-size: 0.95rem;
  color: #a583c2;
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
  font-style: italic;
}

.timeline {
  display: grid;
  grid-template-columns: 1fr 28px 66px;
  row-gap: 0;
  max-width: 480px;
  margin: 0 auto;
}
.timeline-item { display: contents; }

.timeline-content {
  grid-column: 1;
  align-self: center;
  padding: 22px 10px 22px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}
.timeline-marker {
  grid-column: 2;
  align-self: stretch;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-marker::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, #cdaee6, #a20ad4, #cdaee6);
}
.timeline-heart {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 2px rgba(90,20,120,.35));
}
.timeline-icon {
  grid-column: 3;
  align-self: center;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}
.timeline-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(90,20,120,.18));
}
.timeline-item:hover .timeline-icon { transform: scale(1.08); }

.timeline-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: #5a0877;
  font-weight: 700;
}
.timeline-label {
  font-size: 1rem;
  color: #4a0763;
  font-weight: 500;
}
.timeline-desc {
  font-size: 0.82rem;
  color: #a583c2;
  font-style: italic;
}

@media (min-width: 820px) {
  .timeline {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    max-width: 1000px;
    gap: 0;
  }
  .timeline-item {
    display: grid;
    grid-template-areas: "icon" "marker" "content";
    justify-items: center;
    flex: 1;
    padding: 0 8px;
  }
  .timeline-icon  { grid-area: icon;  width: 64px; height: 64px; }
  .timeline-marker{ grid-area: marker; width: 100%; height: 26px; }
  .timeline-content{ grid-area: content; text-align: center; padding: 0; margin-top: 4px; }

  .timeline-marker::before {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(to right, #cdaee6, #a20ad4, #cdaee6);
  }
}

/* ══════════════════════════════════════════
   GALERÍA — CARRUSEL
══════════════════════════════════════════ */
.section-galeria {
  width: 100%;
  overflow: hidden;
  padding: clamp(55px, 7vw, 90px) 0;
  background: #f4ecfb;
}
.section-galeria .container {
  width: min(94%, 1200px);
  margin: 0 auto;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  margin: clamp(35px, 5vw, 55px) auto 0;
  overflow: hidden;
  border-radius: 12px;
  height: clamp(320px, 38vw, 480px);
}

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

.carousel-slide {
  flex: 0 0 33.333333%;
  width: 33.333333%;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0 4px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 8px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: clamp(38px, 5vw, 50px);
  height: clamp(38px, 5vw, 50px);
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.90);
  color: #9470ac;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-family: 'Cormorant Garamond', serif;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(80,50,90,0.18);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
  line-height: 1;
}
.carousel-btn:hover {
  background: rgba(255,255,255,1);
  transform: translateY(-50%) scale(1.07);
  box-shadow: 0 8px 25px rgba(80,50,90,0.25);
}
.carousel-btn.prev { left: clamp(10px, 2vw, 18px); }
.carousel-btn.next { right: clamp(10px, 2vw, 18px); }

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.60);
  backdrop-filter: blur(5px);
}
.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(130,100,145,0.35);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}
.carousel-dot.active {
  background: #a83fd6;
  transform: scale(1.3);
}

/* ══════════════════════════════════════════
   DRESS CODE
══════════════════════════════════════════ */
.section-dresscode {
  background: #f8effd;
  padding: 40px 24px;;
}
.dresscode-icon {
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
}
.dresscode-icon img {
  width: 80px;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(155,111,196,0.35));
  animation: floatDress 3s ease-in-out infinite;
}
.dresscode-svg {
  filter: drop-shadow(0 4px 16px rgba(155,111,196,0.3));
  animation: floatDress 3s ease-in-out infinite;
}
@keyframes floatDress {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.dresscode-poem {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #1a011d;
  line-height: 2.2;
  margin-bottom: 36px;
  font-style: italic;
  position: relative;
}
.dresscode-poem strong { color: #5a0877; font-style: normal; }

.btn-dresscode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: transparent;
  color: #6b0a8c;
  border: 1.5px solid #a20ad4;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .3s, color .3s, box-shadow .3s, transform .2s;
}
.btn-dresscode:hover {
  background: #a20ad4;
  color: #fff;
  box-shadow: 0 8px 24px rgba(162,10,212,.28);
  transform: translateY(-2px);
}
.dresscode-warning {
  max-width:250px;
  margin: 0 auto 24px;
  padding: 14px 18px;
  font-family: 'Dancing Script';
  font-size: .92rem;
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
  color: #5f4068;
  background: rgba(162, 10, 212, 0.08);
  border: 1px solid rgba(162, 10, 212, 0.18);
  border-radius: 16px;
}
.dresscode-colors {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 96px;
}
.color-swatch {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.color-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: #4a0763;
  text-align: center;
}
.color-sub {
  font-size: 0.72rem;
  color: #a583c2;
  text-align: center;
}

.dresscode-divider {
  width: 70px;
  height: 1.5px;
  background: linear-gradient(to right, transparent, #cdaee6, transparent);
  margin: 30px auto 22px;
}
.dresscode-avoid-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8a0ab3;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
}
.dresscode-colors--avoid { margin-bottom: 22px; }

.color-item.avoid .color-swatch {
  position: relative;
  opacity: .9;
}
.color-item.avoid .color-swatch::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 46.5%, #c0392b 48%, #c0392b 52%, transparent 53.5%);
}
.color-item.avoid .color-label { color: #8a7690; }

.dresscode-note {
  font-size: 0.85rem;
  color: #6b0a8c;
  background: #f0ddf7;
  padding: 14px 20px;
  border-radius: 16px;
  display: block;
  text-align: center;
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   REGALO
══════════════════════════════════════════ */
.section-regalo {
  background: linear-gradient(135deg, #4a0763 0%, #8a0ab3 100%);
  padding: 80px 24px;
}
.section-regalo .eyebrow.purple { color: #c89bea; }
.section-regalo .section-title  { color: white; }
.section-regalo .story-text     { color: rgba(255,255,255,0.75); }
.regalo-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.gift-svg {
  filter: drop-shadow(0 4px 20px rgba(201,168,224,0.4));
  animation: giftBounce 2s ease-in-out infinite;
}
@keyframes giftBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%       { transform: translateY(-6px) rotate(-3deg); }
  75%       { transform: translateY(-3px) rotate(3deg); }
}
.btn-banco {
  padding: 16px 40px;
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  letter-spacing: 1px;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.btn-banco:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   MÁS INFO / WHATSAPP
══════════════════════════════════════════ */
.section-info {
  background: #fff;
  padding: 80px 24px;
}

/* ══════════════════════════════════════════
   DIVISORES DECORATIVOS
══════════════════════════════════════════ */
section {
  position: relative;
  overflow: visible !important;
}
.section-divider {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(50%);
  z-index: 999;
  pointer-events: none;
}
.section-divider img {
  display: block;
  width: min(190px, 20vw);
  max-width: none;
  height: auto;
  opacity: .94;
  filter: drop-shadow(0 2px 8px rgba(90,10,120,.12));
}
.section-divider--flower img {
  filter: drop-shadow(0 2px 10px rgba(90,10,120,.14))
          saturate(1.45) hue-rotate(-6deg) brightness(.97);
}
.section-regalo .section-divider img {
  opacity: 1;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,.35))
          brightness(1.6) saturate(1.2);
}
section:has(.section-divider) {
  z-index: 2;
}

.whatsapp-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.btn-whatsapp {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #25d366;
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transition: all 0.2s;
}
.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.4);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: linear-gradient(135deg, #2e0440, #4a0763);
  padding: 60px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-heart { animation: heartbeat 1.5s ease-in-out infinite; }
.footer-text {
  font-family: 'Alex Brush', cursive;
  font-size: 1.8rem;
  color: #c89bea;
}
.footer-names {
  font-family: 'Alex Brush', cursive;
  font-size: 3rem;
  color: #d4b896;
  text-shadow: 0 0 30px rgba(212,175,122,0.4);
}
.footer-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════
   POPUP BANCO
══════════════════════════════════════════ */
.popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 7000;
  background: rgba(30,10,50,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 20px;
}
.popup-backdrop.open { opacity: 1; visibility: visible; }
.popup-panel {
  background: white;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 80px rgba(60,20,100,0.3);
  transform: translateY(20px);
  transition: transform 0.3s;
}
.popup-backdrop.open .popup-panel { transform: translateY(0); }
.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f0ddf7;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  color: #5a0877;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.popup-close:hover { background: #c89bea; }
.popup-inner { padding: 40px 32px; }
.popup-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: #4a0763;
  margin-bottom: 24px;
  text-align: center;
}
.bank-card {
  background: #f8effd;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0ddf7;
}
.bank-row:last-child { border-bottom: none; }
.bank-label {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #a583c2;
}
.bank-value {
  font-size: 0.9rem;
  color: #4a0763;
  font-weight: 500;
}
.btn-copy-all {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #a83fd6, #5a0877);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.btn-copy-all:hover { transform: translateY(-2px); }
.copy-toast {
  margin-top: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: #a83fd6;
  opacity: 0;
  transition: opacity 0.3s;
}
.copy-toast.show { opacity: 1; }

/* ── Selector de regalos ── */
.gift-step[hidden],
.gift-selection-summary[hidden],
.gift-reserve-btn[hidden],
.gift-custom-box[hidden] { display: none !important; }
.gift-popup-intro {
  margin: -12px auto 20px;
  color: #80658f;
  font-size: .9rem;
  line-height: 1.55;
  text-align: center;
}

.gift-custom-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: #a583c2;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.gift-custom-divider::before,
.gift-custom-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #eadcf2;
}
.gift-custom-toggle {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #c89bea;
  border-radius: 50px;
  background: #fcf8ff;
  color: #6b0a8c;
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.gift-custom-toggle:hover {
  transform: translateY(-1px);
  background: #f5eafa;
}
.gift-custom-box {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #eadcf2;
  border-radius: 14px;
  background: #fff;
  text-align: left;
}
.gift-custom-help {
  margin: 0 0 14px;
  color: #80658f;
  font-size: .84rem;
  line-height: 1.5;
}
.gift-custom-label {
  display: block;
  margin: 12px 0 6px;
  color: #5a0877;
  font-size: .78rem;
  font-weight: 600;
}
.gift-custom-input {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #dfcfe8;
  border-radius: 10px;
  outline: none;
  color: #4a0763;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
}
.gift-custom-input:focus {
  border-color: #9b6fc4;
  box-shadow: 0 0 0 3px rgba(155,111,196,.10);
}
.gift-custom-identity {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8effd;
  color: #80658f;
  font-size: .8rem;
  line-height: 1.45;
}
.gift-status {
  margin: 12px 0;
  color: #80658f;
  font-size: .88rem;
  line-height: 1.5;
  text-align: center;
}
.gift-status.hidden { display: none; }
.gift-status.error {
  padding: 12px 14px;
  color: #9b2f45;
  background: #fff0f3;
  border-radius: 10px;
}
.gift-status.empty {
  padding: 22px 16px;
  color: #5a0877;
  background: #f8effd;
  border-radius: 12px;
}
.gift-retry {
  padding: 0;
  color: #7b159b;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.gift-list {
  display: grid;
  gap: 10px;
  max-height: min(45vh, 410px);
  overflow-y: auto;
  padding: 2px 4px 2px 2px;
  scrollbar-color: #c89bea #f8effd;
}
.gift-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  background: #fff;
  border: 1px solid #eadcf2;
  border-radius: 13px;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.gift-option:hover {
  border-color: #c89bea;
  background: #fcf8ff;
  transform: translateY(-1px);
}
.gift-option:has(input:checked) {
  border-color: #9b6fc4;
  background: #f8effd;
  box-shadow: 0 0 0 2px rgba(155,111,196,.10);
}
.gift-option input {
  width: 19px;
  height: 19px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #8a0ab3;
}
.gift-option-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  width: 100%;
}
.gift-description {
  color: #4a0763;
  font-size: .94rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.gift-amount {
  flex: 0 0 auto;
  color: #7b159b;
  font-size: .94rem;
  white-space: nowrap;
}
.gift-selection-summary,
.gift-confirmed-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 16px;
  color: #5a0877;
  background: #f8effd;
  border-radius: 12px;
}
.gift-selection-summary strong,
.gift-confirmed-total strong {
  font-size: 1.1rem;
  white-space: nowrap;
}
.gift-reserve-btn { margin-top: 14px; }
.gift-reserve-btn:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}
.gift-confirmed-card {
  margin-bottom: 18px;
  padding: 14px 16px;
  background: #fffaf0;
  border: 1px solid #ead9b7;
  border-radius: 12px;
}
.gift-confirmed-list {
  display: grid;
  gap: 8px;
}
.gift-confirmed-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  color: #5a0877;
  font-size: .9rem;
}
.gift-confirmed-row strong { white-space: nowrap; }
.gift-confirmed-total {
  margin-top: 12px;
  padding: 12px 0 0;
  background: transparent;
  border-top: 1px solid #ead9b7;
  border-radius: 0;
}

@media (max-width: 600px) {
  .popup-backdrop { padding: 12px; }
  .popup-panel { max-height: 92svh; border-radius: 18px; }
  .gift-list { max-height: 43svh; }
  .gift-option { padding: 13px 12px; }
}

@media (max-width: 400px) {
  .gift-option-text { gap: 8px; }
  .gift-description, .gift-amount { font-size: .86rem; }
  .gift-selection-summary, .gift-confirmed-total { font-size: .88rem; }
}

/* ══════════════════════════════════════════
   POPUP RSVP
══════════════════════════════════════════ */
.rsvp-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(93,73,96,.35);
  backdrop-filter: blur(4px);
  z-index: 900;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.rsvp-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.rsvp-panel {
  width: min(480px, 100%);
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 40px rgba(93,73,96,.18);
  overflow-y: auto;
  position: relative;
  transform: translateX(60px);
  opacity: 0;
  transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .4s ease;
  border-left: 1px solid rgba(170,140,190,.15);
}
.rsvp-backdrop.open .rsvp-panel {
  transform: translateX(0);
  opacity: 1;
}
.rsvp-inner { padding: 52px 40px 48px; }
.rsvp-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  background: rgba(245,235,255,.8);
  border: 1px solid #d8c2ee;
  color: #a37fc0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.rsvp-close:hover { background: #a37fc0; color: #fff; }
.rsvp-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: #87699c;
  margin: 12px 0 10px;
  line-height: 1.2;
}
.rsvp-subtitle {
  font-size: .9rem;
  color: #a583c2;
  line-height: 1.7;
  margin-bottom: 28px;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.field-group label {
  font-size: .82rem;
  letter-spacing: .08em;
  color: #a583c2;
  font-weight: 500;
  text-transform: uppercase;
}
.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid #dcc8f0;
  background: #faf7fd;
  font: inherit;
  font-size: .95rem;
  color: #5f4a72;
  transition: .25s;
  outline: none;
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: #c09bdc;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(184,156,200,.15);
}
.field-group input::placeholder,
.field-group textarea::placeholder { color: #c6a6e8; }
.field-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239b87ab' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field-group textarea { resize: none; }
.form-msg {
  font-size: .88rem;
  margin-top: 8px;
  min-height: 22px;
  color: #a37fc0;
  text-align: center;
}

/* ══════════════════════════════════════════
   MENÚ DE NAVEGACIÓN
══════════════════════════════════════════ */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 68px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity .5s ease, transform .5s ease, visibility .5s ease;
  box-shadow: 0 4px 20px rgba(80,50,90,0.08);
}
.top-nav.menu-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-logo {
  font-family: 'Alex Brush', cursive;
  font-size: 2.7rem;
  line-height: 1;
  color: #9c1fc0;
  letter-spacing: 2px;
}
.nav-logo span { font-size: 1.2rem; margin: 0 2px; }
.menu-toggle {
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 29px;
  height: 4px;
  border-radius: 4px;
  background: #9c1fc0;
  transition: transform .3s ease, opacity .3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(390px, 88vw);
  height: 100vh;
  background: linear-gradient(145deg, #fffdfb 0%, #f6ecf9 55%, #ecdcf5 100%);
  z-index: 9995;
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .55s cubic-bezier(.77,0,.18,1);
  box-shadow: -15px 0 50px rgba(80,50,90,.15);
  overflow-y: auto;
}
.menu-panel.open { transform: translateX(0); }
.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(155,111,196,.2);
}
.menu-brand {
  font-family: 'Alex Brush', cursive;
  font-size: 2.1rem;
  color: #9c1fc0;
}
.menu-brand span {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  margin: 0 4px;
}
.menu-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(155,111,196,.25);
  background: rgba(255,255,255,.7);
  color: #9c1fc0;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all .25s ease;
}
.menu-close:hover {
  background: #a83fd6;
  color: white;
  transform: rotate(90deg);
}
.menu-links {
  display: flex;
  flex-direction: column;
  margin-top: 35px;
  font-family: 'Cormorant Garamond', serif;
}
.menu-links a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 17px 4px;
  text-decoration: none;
  color: #51425e;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  border-bottom: 1px solid rgba(155,111,196,.12);
  transition: color .25s ease, padding-left .25s ease;
}
.menu-links a span {
  font-size: .68rem;
  letter-spacing: 2px;
  color: #b98fd6;
  min-width: 25px;
}
.menu-links a:hover {
  color: #9c1fc0;
  padding-left: 10px;
}
.menu-footer {
  margin-top: auto;
  padding-top: 35px;
  text-align: center;
  font-family: 'Alex Brush', cursive;
  font-size: 1.8rem;
  color: #9c1fc0;
}
.menu-footer small {
  display: block;
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  letter-spacing: 3px;
  color: #b98fd6;
}
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(50,35,55,.28);
  backdrop-filter: blur(2px);
  z-index: 9994;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease;
}
.menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* ══════════════════════════════════════════
   CONTENEDORES GENERALES
══════════════════════════════════════════ */
.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}
.container.center { text-align: center; }
section > .container,
section > .card {
  width: 100%;
  max-width: 1100px;
}
.section-title {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  overflow-wrap: break-word;
  font-family: 'Alex Brush', cursive;
  font-weight: 400;
  font-size: 70px;
  line-height: 0.9;
  letter-spacing: 1px;
  color: #4a0763
}
.story-text {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ══════════════════════════════════════════
   MEDIA QUERIES
══════════════════════════════════════════ */

/* ── 1. DESKTOP GRANDE ── */
@media (min-width: 1025px) {
  .hero { min-height: min(72svh, 800px); }
  .hero .title-xl { font-size: clamp(5rem, 8vw, 7rem); }
  .hero-countdown-inner { max-width: 900px; }
  .container {
    max-width: 1100px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .carousel-slide {
    flex: 0 0 33.333333% !important;
    width: 33.333333% !important;
  }
  .overlay-card {
    transform: translateY(-2vh);
    padding: 15px;
  }
  .overlay-card .eyebrow {
    font-size: 1.1rem;
    margin-bottom: 5px;
  }
  .overlay-card .title-xl {
    font-size: clamp(3.8rem, 5vw, 5.2rem);
    line-height: .9;
  }
  .overlay-card .lead {
    font-size: .9rem;
    line-height: 1.4;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
  .overlay-card .buttons {
    max-width: 240px;
    gap: 10px;
    margin-top: 25px;
  }
  .overlay-card .buttons .btn {
    width: 230px;
    min-height: 42px;
    padding: 11px 24px;
    font-size: .82rem;
  }
  
}

/* ── 2. TABLET ── */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero { min-height: min(72svh, 760px); }
  .hero .title-xl { font-size: clamp(4.5rem, 10vw, 6.5rem); }
  .hero-countdown { padding-top: 40px; padding-bottom: 45px; }
  .container {
    max-width: 1100px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .carousel-wrapper { height: clamp(280px, 45vw, 420px); }
  .carousel-slide {
    flex: 0 0 33.333333% !important;
    width: 33.333333% !important;
  }
}

/* ── 3. TABLET PEQUEÑA ── */
@media (max-width: 992px) {
  .card { padding: 40px 30px; }
  .eyebrow_overlay { font-size: 1.3rem; letter-spacing: .18em; }
  .events-grid { grid-template-columns: 1fr; }
  .rsvp-backdrop { align-items: center; justify-content: center; }
  .rsvp-panel {
    width: min(520px,92vw);
    height: auto;
    max-height: 90vh;
    border-radius: 28px;
    border-left: none;
    box-shadow: 0 20px 60px rgba(93,73,96,.22);
    transform: translateY(40px) scale(.97);
  }
  .rsvp-backdrop.open .rsvp-panel { transform: translateY(0) scale(1); }

}

/* ── 4. MÓVIL (max 768px) ── */
@media (max-width: 768px) {
  .top-nav { height: 88px; padding: 0 20px; }
  .nav-logo { font-size: 2.35rem; }
  .menu-panel { width: 88vw; padding: 26px 24px; }
  .menu-links { margin-top: 25px; }
  .menu-links a { padding: 15px 2px; font-size: .95rem; }
  .eyebrow_overlay { font-size: 1.1rem; letter-spacing: .18em; }
  .lead { font-size: 1.02rem; line-height: 1.7; }
  .card { padding: 32px 22px; border-radius: 24px; }
  .events-grid { grid-template-columns: 1fr; gap: 20px; }
  .countdown { gap: 10px; }
  .countdown span { font-size: 1.6rem; }
  .btn-dark { width: 100%; }
  section .btn,
  .rsvp-panel .btn,
  .card .btn { width: 100%; }
  input,select,textarea { font-size: 16px; }
  .overlay-card { padding: 16px 24px 36px; width: 100%; }
  .overlay-card .buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 28px;
    width: 100%;
    max-width: 100%;
  }
  .overlay-card .buttons .btn {
    width: min(290px, 75vw);
    text-align: center;
  }
  .rsvp-backdrop { align-items: flex-end; justify-content: center; }
  .rsvp-panel {
    width: 100%;
    height: auto;
    max-height: 92vh;
    border-radius: 28px 28px 0 0;
    border-left: none;
    box-shadow: 0 -8px 40px rgba(93,73,96,.18);
    transform: translateY(60px);
  }
  .rsvp-backdrop.open .rsvp-panel { transform: translateY(0); }
  .rsvp-inner { padding: 36px 24px 40px; }

  /* Flores hero e itinerario en móvil */
  .hero::before,
  .hero::after,
  .section-itinerario::before,
  .section-itinerario::after {
    width: 120vw;
    height: 120vw;
  }
  /* Flores countdown y dresscode en móvil */
  .hero-countdown::after,
  .section-dresscode::before,
  .section-dresscode::after {
    width: 100px;
  }

  .carousel-wrapper {
    height: clamp(420px, 75vw, 580px) !important;
    border-radius: 12px;
    margin-top: 28px;
  }
  .carousel-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    padding: 0 !important;
  }
  .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 8px;
    background-color: #f0e6fa;
  }
  .carousel-btn { width: 44px; height: 44px; font-size: 1.5rem; }
  .carousel-btn.prev { left: 10px; }
  .carousel-btn.next { right: 10px; }
  .carousel-dots { bottom: 12px; gap: 6px; padding: 6px 10px; }
  .carousel-dot { width: 7px; height: 7px; }
}

/* ── 5. MÓVIL PEQUEÑO (max 600px) ── */
@media (max-width: 600px) {
  .hero { min-height: 62vh; padding: 55px 18px 40px; }
  .hero .title-xl { font-size: clamp(4.5rem, 17vw, 5.5rem); margin-top: 15px; }
  .hero .lead { max-width: 330px; font-size: .9rem; line-height: 1.6; }
  .hero-countdown { padding: 35px 15px 45px; }
  .hero-countdown .hero-frase { max-width: 330px; font-size: .82rem; }
  .countdown { gap: 7px; margin-top: 4px; }
  .countdown div { min-width: 0; }
  .countdown span { font-size: 1.5rem; }
  .countdown small { font-size: .68rem; }
  .events-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 0; }
  .timeline::before { left: 27px; }
  .dresscode-colors { gap: 16px; }
  .popup-inner, .rsvp-inner { padding: 28px 20px; }
  .whatsapp-btns { flex-direction: column; align-items: center; }
  section { padding-left: 16px; padding-right: 16px; }
  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 4px;
    padding-right: 4px;
  }
  .section-galeria { padding: clamp(45px, 10vw, 65px) 0; }
  .section-galeria .container { width: 94%; }

  /* Flores hero e itinerario en móvil */
  .hero::before,
  .hero::after,
  .section-itinerario::before,
  .section-itinerario::after {
    width: 90vw;
    height: 90vw;
  }

  .carousel-wrapper {
    height: clamp(400px, 80vw, 560px) !important;
  }
  .carousel-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    padding: 0 !important;
  }
  .carousel-slide img {
    object-fit: contain !important;
    object-position: center center !important;
    background-color: #f0e6fa;
  }
}

/* ── 6. MÓVIL MUY PEQUEÑO (max 480px) ── */
@media (max-width: 480px) {
  .eyebrow_overlay { font-size: 1rem; letter-spacing: .18em; }
  h2 { font-size: 2.2rem !important; }
  .card { padding: 26px 18px; }
  .countdown span { font-size: 1.3rem; }
  .bank-card { padding: 20px 16px; }
  .bank-label { min-width: 75px; font-size: .70rem; }
  .bank-value { font-size: .92rem; }
  .btn-copy-all { width: 100%; text-align: center; padding: 15px 20px; }
  .event-actions { flex-direction: column; }
  .btn-map,.btn-agenda,.btn-confirm { width: 100%; justify-content: center; }
  .overlay-card { padding: 16px 20px 32px; }
  .overlay-card .lead { font-size: .9rem; margin: 12px auto; }
  .overlay-card .buttons { gap: 14px; margin-top: 22px; }
  .overlay-card .buttons .btn {
    width: min(280px, 82vw);
    padding: 13px 20px;
    font-size: .88rem;
    justify-content: center;
  }

  /* Flores hero e itinerario en móvil */
  .hero::before,
  .hero::after,
  .section-itinerario::before,
  .section-itinerario::after {
    width: 70vw;
    height: 70vw;
  }

  .carousel-wrapper {
    height: clamp(360px, 85vw, 520px) !important;
  }
  .carousel-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    padding: 0 !important;
  }
  .carousel-slide img {
    object-fit: contain !important;
    object-position: center center !important;
    background-color: #f0e6fa;
  }
}

/* ── 7. CELULARES MÍNIMOS ── */
@media (max-width: 400px) {
  .top-nav { height: 78px; }
  .menu-panel { width: 92vw; }
  .menu-brand { font-size: 1.8rem; }
  .carousel-wrapper {
    height: clamp(320px, 90vw, 480px) !important;
  }
  .carousel-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    padding: 0 !important;
  }
 
  .hero::before,
  .hero::after,
  .section-itinerario::before,
  .section-itinerario::after {
    width: 80vw;
    height: 80vw;
  }
}

@media (max-width: 380px) {
  .carousel-wrapper {
    height: clamp(300px, 90vw, 460px) !important;
  }
  .carousel-btn { width: 38px; height: 38px; font-size: 1.3rem; }
  .carousel-btn.prev { left: 7px; }
  .carousel-btn.next { right: 7px; }
  .hero::before,
  .hero::after,
  .section-itinerario::before,
  .section-itinerario::after {
    width: 50vw;
    height: 50vw;
  }
}

/* =========================================================
   UX / CAPAS / DIVISORES
   ========================================================= */
section {
  overflow: visible;
}

.section-divider {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  margin: 0;
  transform: translate(-50%, 50%);
  z-index: 20;
  pointer-events: none;
}

.section-divider img {
  position: relative;
  z-index: 21;
}

section + section {
  position: relative;
  z-index: 1 !important;
}

.section-divider {
  isolation: isolate;
}

.hero {
  margin-top: 68px;
  min-height: calc(min(68svh, 720px) - 68px);
}

.rsvp-backdrop { z-index: 10010; }
.rsvp-panel    { z-index: 10011; }
.top-nav       { z-index: 9990; }
.menu-backdrop { z-index: 9994; }
.menu-panel    { z-index: 9995; }

@media (max-width: 767px) {
  .section-divider img { width: 175px; }
  .hero {
    margin-top: 68px;
    min-height: calc(72svh - 68px);
    padding-top: clamp(35px, 8vw, 60px);
  }
}

@media (min-width: 1025px) {
  .hero {
    min-height: calc(min(74svh, 760px) - 68px);
  }
}
body.guest-view [data-solo-invitado] {
  display: none !important;
}
/* FLORES */
.hero-countdown::before,
.hero-countdown::after,
.section-dresscode::before,
.section-dresscode::after {
  z-index: 1 !important;
  pointer-events: none;
}

/* No subir todo el contenedor */
.hero-countdown .hero-countdown-inner,
.section-dresscode .container {
  position: relative;
  z-index: auto !important;
}

/* SOLO CONTENIDO / TEXTO POR ENCIMA DE LAS FLORES */
.hero-countdown .hero-esperamos,
.hero-countdown .fecha-box,
.hero-countdown .hero-frase-title,
.hero-countdown .hero-frase,
.hero-countdown .countdown,

.section-dresscode .dresscode-icon,
.section-dresscode .section-title,
.section-dresscode .dresscode-poem,
.section-dresscode .dresscode-warning,
.section-dresscode .btn-dresscode {
  position: relative;
  z-index: 2 !important;
}

#detalles::before,
#detalles::after {
  opacity: 0.22 !important; 
  background-size: cover !important;
}

@media (max-width: 768px) {
  #detalles::before,
  #detalles::after {
    opacity: 0.16 !important;
  }
}
@media (min-width: 769px) {

  body.guest-view #detalles .events-grid {
    display: grid;
    grid-template-columns: minmax(320px, 520px);
    justify-content: center;
  }

  body.guest-view #detalles .ceremony-block {
    width: 100%;
    margin: 0 auto;
  }

}
@media (max-width: 768px) {

  .section-dresscode::before,
  .section-dresscode::after {
    width: 115px !important;
    height: 100% !important;

   
    background-repeat: no-repeat !important;
    opacity: 1 !important;

    pointer-events: none;
  }

  /* FLOR IZQUIERDA */
  .hero-countdown::before {
    left: -2px !important;
    right: auto !important;
    background-position: left center !important;
  }
  .section-dresscode::before {
    left: -40px !important;
    right: auto !important;
    background-position: left center !important;
  }
  /* FLOR DERECHA */
  .hero-countdown::after {
    right: -2px !important;
    left: auto !important;
    background-position: right center !important;
  }
  .section-dresscode::after {
    right: -40px !important;
    left: auto !important;
    background-position: right center !important;
  }

}
/* =========================================================
   POPUP DE REGALOS POR ENCIMA DEL MENÚ
   ========================================================= */

.popup-backdrop {
  z-index: 30000 !important;
}

.popup-panel {
  z-index: 30001 !important;
  position: relative;
}

/* Mantiene visible la X aunque se desplace el popup */
.popup-close {
  position: sticky !important;
  top: 12px !important;
  right: auto !important;

  display: flex !important;
  margin: 12px 12px -44px auto !important;

  z-index: 30002 !important;
  pointer-events: auto !important;

  box-shadow: 0 3px 12px rgba(74, 7, 99, 0.25);
}

/* Ajuste para celulares */
@media (max-width: 600px) {
  .popup-backdrop {
    padding: 10px !important;
    align-items: center !important;
  }

  .popup-panel {
    width: 100% !important;
    max-height: 92svh !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }

  .popup-close {
    top: 10px !important;
    margin-right: 10px !important;
  }
}