/*
  ===================================================================
  ESTILOS HOJA DE DISEÑO (ESTILOS.CSS)
  ===================================================================
*/

:root {
  --bg: #ECE6DF;
  --paper: rgba(255, 252, 247, 0.9);
  --paper-strong: #fffaf4;
  --ink: #27211b;
  --muted: #6e6155;
  --gold: #7F8667;
  --gold-soft: #c8cdc0;
  --sand: #e9dcc8;
  --line: rgba(39, 33, 27, 0.12);
  --shadow: 0 18px 45px rgba(68, 49, 28, 0.12);
  --radius: 24px;
  --max: 1120px;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 20%, rgba(127, 134, 103, 0.08), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(200, 205, 192, 0.25), transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(213, 216, 207, 0.15), transparent 50%),
    linear-gradient(180deg, #f7f6f3 0%, #eff2ec 40%, #e9ece3 75%, #e1e6da 100%);
  background-attachment: fixed;
}

body.intro-locked { overflow: hidden; }

body::before {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  height: 22vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 246, 226, 0.6), transparent 28%),
    linear-gradient(180deg, rgba(120, 173, 184, 0), rgba(120, 173, 184, 0.12)),
    linear-gradient(180deg, rgba(236, 221, 195, 0.15), rgba(224, 204, 170, 0.3));
  pointer-events: none;
  z-index: -1;
}

a { color: inherit; text-decoration: none; }

/* ===================================================================
   PANTALLA DE BIENVENIDA / ENVELOPE INTRO
   =================================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at top, rgba(255, 249, 241, 0.84), transparent 40%),
    linear-gradient(180deg, rgba(93, 68, 41, 0.18), rgba(33, 22, 12, 0.45)),
    linear-gradient(135deg, #f4e6d3, #ead7bc);
  transition: opacity 800ms ease, visibility 800ms ease;
}

.intro.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.intro__glow {
  position: absolute;
  width: min(78vw, 760px);
  height: min(78vw, 760px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.42), transparent 62%);
  filter: blur(14px);
  opacity: 0.65;
}

.intro__sea {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  overflow: hidden;
  pointer-events: none;
}

.intro__wave {
  position: absolute;
  left: -10%;
  width: 120%;
  border-radius: 50%;
  opacity: 0.8;
  animation: waveDrift 9s ease-in-out infinite;
}

.intro__wave--one {
  bottom: 13%;
  height: 130px;
  background: radial-gradient(ellipse at center, rgba(149, 201, 212, 0.42) 0%, rgba(149, 201, 212, 0.18) 58%, transparent 72%);
}

.intro__wave--two {
  bottom: 4%;
  height: 110px;
  background: radial-gradient(ellipse at center, rgba(94, 155, 176, 0.34) 0%, rgba(94, 155, 176, 0.12) 60%, transparent 75%);
  animation-duration: 12s;
  animation-direction: reverse;
}

.intro__foam {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 14%;
  height: 40px;
  background:
    radial-gradient(circle at 10% 60%, rgba(255,255,255,0.85) 0 8px, transparent 9px),
    radial-gradient(circle at 26% 50%, rgba(255,255,255,0.8) 0 7px, transparent 8px),
    radial-gradient(circle at 47% 62%, rgba(255,255,255,0.8) 0 9px, transparent 10px),
    radial-gradient(circle at 68% 56%, rgba(255,255,255,0.75) 0 8px, transparent 9px),
    radial-gradient(circle at 86% 58%, rgba(255,255,255,0.8) 0 7px, transparent 8px);
  filter: blur(2px);
  opacity: 0.72;
  animation: foamPulse 7s ease-in-out infinite;
}

.intro__sand, .intro__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ===================================================================
   ELEMENTOS DE MAR REALISTAS (Imágenes PNG)
   =================================================================== */
.sea-element {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 15px 15px rgba(60, 40, 20, 0.35)); 
  opacity: 0.95;
  animation: starfishSway 8s ease-in-out infinite;
}

.sea-element--starfish {
  width: 90px;
  height: 90px;
  background-image: url('assets/estrella.png');
  left: 6%;
  bottom: 12%;
  transform: rotate(-15deg);
  animation-delay: -2s;
}

.sea-element--starfish-two {
  width: 70px;
  height: 70px;
  background-image: url('assets/estrella.png');
  right: 17%;
  bottom: 7%;
  transform: rotate(25deg) scale(0.85);
  animation-delay: -3s;
}

.sea-element--shell {
  width: 75px;
  height: 75px;
  background-image: url('assets/caracola.png');
  right: 10%;
  bottom: 16%;
  transform: rotate(20deg);
  animation-delay: -4.5s;
}

.sea-element--shell-two {
  width: 60px;
  height: 60px;
  background-image: url('assets/caracola.png');
  left: 18%;
  bottom: 8%;
  transform: rotate(-30deg) scale(0.9);
  animation-delay: -1.5s;
}

.grain {
  position: absolute;
  bottom: 8%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(242, 220, 184, 0.9);
  box-shadow: 0 0 10px rgba(255, 243, 217, 0.45);
  animation: sandFloat linear infinite;
}
.grain:nth-child(1){ left: 8%; animation-duration: 9s; animation-delay: -1.2s; }
.grain:nth-child(2){ left: 18%; width: 5px; height: 5px; animation-duration: 11s; animation-delay: -4s; }
.grain:nth-child(3){ left: 28%; width: 6px; height: 6px; animation-duration: 8s; animation-delay: -2.5s; }
.grain:nth-child(4){ left: 40%; width: 4px; height: 4px; animation-duration: 10s; animation-delay: -6.4s; }
.grain:nth-child(5){ left: 53%; width: 7px; height: 7px; animation-duration: 12s; animation-delay: -3.3s; }
.grain:nth-child(6){ left: 66%; width: 5px; height: 5px; animation-duration: 9.5s; animation-delay: -5.8s; }
.grain:nth-child(7){ left: 78%; width: 6px; height: 6px; animation-duration: 10.5s; animation-delay: -2s; }
.grain:nth-child(8){ left: 89%; width: 4px; height: 4px; animation-duration: 8.8s; animation-delay: -7s; }

.intro__stage {
  position: relative;
  width: min(92vw, 520px);
  text-align: center;
  z-index: 1;
}

.intro__copy {
  margin-bottom: 22px;
  color: #fff8f0;
  text-shadow: 0 8px 24px rgba(43, 27, 12, 0.22);
}

.intro__copy p { margin: 0; color: rgba(255, 248, 240, 0.86); }
.intro__copy h1 { margin: 8px 0 10px; font-size: clamp(36px, 9vw, 58px); font-family: var(--serif); }

.envelope {
  position: relative;
  width: min(92vw, 450px);
  aspect-ratio: 3 / 2;
  margin: 0 auto 20px;
  perspective: 1000px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  transform-style: preserve-3d;
  transition: transform 600ms ease;
}

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

.envelope__back, .envelope__front, .envelope__flap, .envelope__letter {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.envelope__back {
  background: linear-gradient(180deg, #d2d8c9, #b9c0ae);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.06), 0 25px 50px rgba(69, 45, 21, 0.18);
  transform: translateZ(0px);
}

/* El bolsillo delantero */
.envelope__front {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
  transform: translateZ(3px);
}

.envelope__front::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(28deg, rgba(0, 0, 0, 0.04) 45%, transparent 50%),
    linear-gradient(-28deg, rgba(0, 0, 0, 0.04) 45%, transparent 50%),
    linear-gradient(180deg, #ebe7df, #d2d8c9);
  clip-path: polygon(0 0, 50% 60%, 100% 0, 100% 100%, 0 100%);
}

.envelope__front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 40%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.25) 60%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 1000ms ease;
  pointer-events: none;
}

.envelope:hover .envelope__front::after {
  transform: translateX(100%);
}

/* La solapa triangular */
.envelope__flap {
  position: absolute;
  inset: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  transform-origin: top center;
  transform: translateZ(4px) rotateX(0deg);
  transition: transform 1000ms cubic-bezier(0.4, 0, 0.2, 1), z-index 1000ms;
}

.envelope__flap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ebe7df, #d2d8c9);
  clip-path: polygon(0 0, 100% 0, 50% 65%);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

/* La carta interna */
.envelope__letter {
  position: absolute;
  inset: 12px 12px 10px 12px;
  padding: 24px 20px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(250, 243, 234, 0.98));
  transform: translateZ(2px) translateY(4%) scale(0.97);
  transition: transform 1200ms cubic-bezier(0.25, 1, 0.5, 1), box-shadow 1200ms ease;
  box-shadow: 0 4px 10px rgba(78, 52, 26, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(127, 134, 103, 0.15);
}

.envelope__letter::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(127, 134, 103, 0.25);
  border-radius: 12px;
  pointer-events: none;
}

/* Sello de lacre */
.envelope__seal {
  position: absolute;
  left: 50%;
  top: 65%;
  transform: translate(-50%, -50%) translateZ(5px);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #9ba382, #5f654b);
  color: #fff7ef;
  display: grid;
  place-items: center;
  z-index: 5;
  font-family: var(--serif);
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(85, 56, 25, 0.22);
  transition: opacity 400ms ease, transform 400ms ease, box-shadow 400ms ease;
}

.envelope:hover .envelope__seal {
  animation: sealPulse 1.5s infinite ease-in-out;
}

@keyframes sealPulse {
  0%, 100% { transform: translate(-50%, -50%) translateZ(5px) scale(1); box-shadow: 0 8px 20px rgba(85, 56, 25, 0.22); }
  50% { transform: translate(-50%, -50%) translateZ(5px) scale(1.08); box-shadow: 0 14px 32px rgba(127, 134, 103, 0.45); }
}

/* Estados cuando el sobre se está abriendo */
.envelope.is-opening .envelope__flap {
  transform: translateZ(1px) rotateX(180deg);
}

.envelope.is-opening .envelope__letter {
  transform: translateZ(2px) translateY(-48%) scale(1.03); 
  box-shadow: 0 25px 45px rgba(78, 52, 26, 0.16);
  transition-delay: 1000ms;
}

.envelope.is-opening .envelope__seal {
  opacity: 0;
  transform: translate(-50%, -50%) translateZ(5px) scale(0.7);
  pointer-events: none;
}

.letter__kicker { text-transform: uppercase; letter-spacing: 0.22em; font-size: 11px; color: var(--gold); font-weight: 700; }
.letter__names { font-family: var(--serif); font-size: clamp(28px, 6vw, 42px); margin: 0; }
.letter__note { max-width: 280px; margin: 0; color: var(--muted); }
.intro__hint { color: rgba(255, 248, 240, 0.9); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 10px; }

.coast-glow {
  position: fixed;
  right: 4vw;
  bottom: 6vh;
  width: min(36vw, 340px);
  height: min(36vw, 340px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 185, 198, 0.16), transparent 65%);
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
  animation: coastBreath 8s ease-in-out infinite;
}

@keyframes waveDrift { 0%, 100% { transform: translateX(0) translateY(0); } 50% { transform: translateX(3%) translateY(-8px); } }
@keyframes foamPulse { 0%, 100% { transform: translateX(0); opacity: 0.68; } 50% { transform: translateX(2.5%); opacity: 0.9; } }
@keyframes sandFloat { 0% { transform: translate3d(0, 0, 0) scale(0.95); opacity: 0; } 12% { opacity: 0.9; } 100% { transform: translate3d(24px, -300px, 0) scale(1.12); opacity: 0; } }
@keyframes coastBreath { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes starfishSway { 0%, 100% { transform: translateY(0) rotate(-12deg); } 50% { transform: translateY(-4px) rotate(-6deg); } }


/* ===================================================================
   BARRA DE NAVEGACIÓN STICKY
   =================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(248, 241, 231, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.brand span { margin-top: 5px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.nav__toggle {
  display: none;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.85);
  font-size: 13px;
  cursor: pointer;
}

.nav__links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.nav__links a { padding: 9px 12px; border-radius: 999px; font-size: 13px; border: 1px solid transparent; color: rgba(39, 33, 27, 0.9); }
.nav__links a:hover { background: rgba(255, 250, 244, 0.85); border-color: var(--line); }

/* ===================================================================
   ESTILOS DE BLOQUES GENÉRICOS
   =================================================================== */
.container { max-width: var(--max); margin: 0 auto; padding: 0 18px; }
.section { padding: 62px 0; }
.section--tight { padding: 40px 0; }

.card {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card__pad { padding: 24px; }
.center { text-align: center; }

.kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 700;
}

h1, h2, h3 { font-family: var(--serif); margin: 10px 0 8px; font-weight: 600; }
h1 { font-size: clamp(42px, 7vw, 74px); line-height: 0.95; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 20px; }
p { margin: 10px 0; line-height: 1.6; }
.muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

/* ===================================================================
   PORTADA PRINCIPAL Y SLIDER DINÁMICO
   =================================================================== */
.hero { padding: 26px 0 10px; }
.hero__intro { max-width: 760px; margin: 0 auto 20px; text-align: center; }
.hero__intro p { font-size: 17px; color: var(--muted); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 18px;
  align-items: stretch;
}

.hero__slider {
  position: relative;
  min-height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(201, 174, 140, 0.35), rgba(105, 79, 47, 0.4));
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 1400ms ease;
  background-size: cover;
  background-position: center;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 26, 10, 0.12), rgba(42, 26, 10, 0.42));
}

.slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #fffaf4;
  background: linear-gradient(180deg, rgba(24, 15, 7, 0.04), rgba(24, 15, 7, 0.65));
  z-index: 5;
}

.hero__overlay .eyebrow { letter-spacing: 0.26em; text-transform: uppercase; font-size: 12px; opacity: 0.92; margin-bottom: 10px; }
.hero__overlay .names { margin: 0; font-size: clamp(42px, 6vw, 64px); line-height: 0.95; }
.hero__overlay .date { margin: 10px 0 0; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; }
.hero__overlay .welcome { max-width: 420px; margin: 14px 0 0; color: rgba(255, 250, 244, 0.92); }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; max-width: 520px; }
.pill {
  padding: 14px 10px;
  border-radius: 18px;
  background: rgba(255, 249, 241, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #2d241b;
  text-align: center;
}
.pill strong { display: block; font-size: 24px; font-weight: 800; }
.pill span { display: block; margin-top: 4px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(45, 36, 27, 0.72); }

.hero__side { display: flex; flex-direction: column; gap: 16px; }
.detail-list { display: grid; gap: 12px; margin-top: 16px; }
.detail-item { padding: 14px 16px; border-radius: 18px; background: rgba(255, 250, 244, 0.86); border: 1px solid var(--line); }
.detail-item strong { display: block; margin-bottom: 5px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); }
.detail-item span { display: block; font-size: 15px; line-height: 1.5; }

.ctaRow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.88);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.18s ease;
}
.btn:hover { background: #fffdf9; }
.btn:active { transform: translateY(1px); }
.btn--gold {
  border-color: rgba(181, 139, 82, 0.28);
  background: linear-gradient(180deg, rgba(181, 139, 82, 0.18), rgba(234, 215, 188, 0.25));
}

/* ===================================================================
   TARJETAS DE TARIFAS / LUGARES / CHIPS
   =================================================================== */
.grid2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.place { padding: 24px; background: linear-gradient(180deg, rgba(255, 250, 244, 0.95), rgba(245, 236, 223, 0.88)); }
.tag { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--gold); font-weight: 800; margin-bottom: 10px; }
.time { font-weight: 700; color: rgba(39, 33, 27, 0.94); }

.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.chip { padding: 11px 14px; border-radius: 999px; background: rgba(255, 250, 244, 0.9); border: 1px solid var(--line); font-size: 14px; }


/* ===================================================================
   GALERÍA GRID / COLLAGE
   =================================================================== */
.photo-collage {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 32px;
}

.photo-collage__item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  aspect-ratio: 3 / 4; 
  background: #fdfaf6;
}

.photo-collage__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-collage__item:hover img {
  transform: scale(1.05); 
}

/* ===================================================================
   ITINERARIO / TIMELINE 
   =================================================================== */
.timeline {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.titem {
  display: grid;
  grid-template-columns: 100px 50px 1fr; 
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.84);
}

.t { font-weight: 900; letter-spacing: 0.04em; color: var(--ink); }

.t-icon {
  font-size: 24px;
  color: var(--gold);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.what { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.sub { margin-top: 4px; color: var(--muted); font-size: 14px; }

/* ===================================================================
   REGALOS Y COMPLEMENTOS
   =================================================================== */
.gift-note {
  max-width: 700px;
  margin: 18px auto 0;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.95), rgba(245, 236, 223, 0.88));
  text-align: center;
}

/* ===================================================================
   FORMULARIO DE ASISTENCIA
   =================================================================== */
.form { display: grid; gap: 12px; max-width: 620px; margin: 18px auto 0; }
.field { display: grid; gap: 6px; }
label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(39, 33, 27, 0.72); font-weight: 800; }

input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  outline: none;
  color: var(--ink);
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(127, 134, 103, 0.42);
  box-shadow: 0 0 0 4px rgba(127, 134, 103, 0.12);
}

.helper { font-size: 13px; color: var(--muted); }

.toast {
  display: none;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid rgba(127, 134, 103, 0.32);
  background: rgba(200, 205, 192, 0.26);
  color: var(--ink);
  font-size: 14px;
  text-align: center;
}
.toast.show { display: block; }

/* ===================================================================
   PIE DE PÁGINA (FOOTER)
   =================================================================== */
footer {
  padding: 30px 0 48px;
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.5);
}

/* ===================================================================
   RESPONSIVE DESIGN (DISEÑO ADAPTATIVO)
   =================================================================== */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__slider { min-height: 480px; }
  .grid2 { grid-template-columns: 1fr; } 
}

@media (max-width: 720px) {
  .intro__copy { margin-bottom: 16px; }
  .envelope__seal { width: 60px; height: 60px; font-size: 20px; }
  .envelope__letter { padding: 24px 18px; }
  
  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none;
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 8px;
  }
  .nav__links.show { display: flex; }
  .nav__inner { flex-wrap: wrap; }
  
  .hero__overlay {
    padding: 16px;
  }
  .hero__overlay .names {
    font-size: clamp(26px, 5vw, 36px);
  }
  .hero__overlay .date {
    font-size: 11px;
    margin-top: 6px;
    letter-spacing: 0.1em;
  }
  .hero__overlay .welcome {
    display: none; /* Ocultado para liberar espacio en móvil */
  }
  .countdown {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 12px;
  }
  .pill {
    padding: 8px 4px;
    border-radius: 12px;
  }
  .pill strong {
    font-size: 18px;
  }
  .pill span {
    font-size: 9px;
    margin-top: 2px;
  }
  .titem { grid-template-columns: 80px 40px 1fr; padding: 12px; }
}



/* ===================================================================
   SLIDER INFERIOR (SECCIÓN DE ASISTENCIA / CIERRE)
   =================================================================== */
.slider-contenedor {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 32px;
  background-color: #f3eee8;
}

.slide-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1000ms ease-in-out;
  z-index: 1;
}

.slide-item.activo {
  opacity: 1;
  z-index: 2;
}

@media (max-width: 720px) {
  .slider-contenedor {
    height: 320px;
  }
}

/* ===================================================================
   NUEVOS SLIDERS Y DISEÑOS DE TARJETAS (DUO, VESTIMENTA, CONFIRMA, BAILEMOS)
   =================================================================== */

/* 1. SLIDER DUO (Galería Intermedia) */
.duo-slider-container {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 20px;
  background-color: #ead7bc;
}

.duo-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  opacity: 0;
  transition: opacity 1000ms ease-in-out;
}

.duo-slide.is-active {
  opacity: 1;
}

.duo-slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(39, 33, 27, 0.45));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 30px;
}

.duo-slider-title {
  color: #fffaf4;
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 36px);
  margin: 0;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* 2. SLIDER BAILEMOS (Reproductor de Música) */
.music-card {
  display: flex;
  flex-direction: column;
}

.music-slider-container {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #eddcc5;
}

.bailemos-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  opacity: 0;
  transition: opacity 1000ms ease-in-out;
}

.bailemos-slide.is-active {
  opacity: 1;
}

.music-slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.05));
}

/* 3. SLIDER VESTIMENTA (Código de Vestimenta - Separado) */
.vestimenta-slider-card {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: #ead7bc;
}

.vestimenta-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  opacity: 0;
  transition: opacity 1000ms ease-in-out;
}

.vestimenta-slide.is-active {
  opacity: 1;
}

.vestimenta-slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(39, 33, 27, 0.35));
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px;
}

.vestimenta-tag {
  background: rgba(255, 252, 247, 0.9);
  color: var(--gold);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

/* 4. SLIDER CONFIRMA (Asistencia) */
.card--asistencia {
  background: var(--paper);
}

.asistencia-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
}

.card__pad--asistencia-form {
  padding: 36px;
}

.asistencia-slider-container {
  position: relative;
  overflow: hidden;
  background-color: #eddcc5;
}

.confirma-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1000ms ease-in-out;
}

.confirma-slide.is-active {
  opacity: 1;
}

.asistencia-slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(39, 33, 27, 0.35));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 30px;
}

.asistencia-tag {
  color: #fffaf4;
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Botón de Música Flotante Minimalista */
.music-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 252, 247, 0.96);
  border: 1px solid rgba(127, 134, 103, 0.3);
  color: var(--gold);
  box-shadow: 0 4px 14px rgba(78, 52, 26, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.music-toggle.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.music-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(127, 134, 103, 0.22);
}

.music-toggle.is-playing i {
  animation: rotateMusic 3s infinite linear;
}

@keyframes rotateMusic {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===================================================================
   RESPONSIVE PARA LOS NUEVOS ELEMENTOS
   =================================================================== */
@media (max-width: 920px) {
  .asistencia-grid {
    grid-template-columns: 1fr;
  }
  .asistencia-slider-container {
    height: 360px;
  }
}

@media (max-width: 720px) {
  .duo-slider-container {
    height: 350px; /* Incrementado a 350px para lucir las fotos de estudio verticales */
  }
  .vestimenta-slider-card {
    height: 280px;
  }
  .card__pad--asistencia-form {
    padding: 24px;
  }
}
