/* =========================================================
   PLANTILLA 2: MODERN MINIMALIST & EDITORIAL (CANVA STYLE)
   Bárbara & Sergio · Wedding Celebration
   ========================================================= */

:root {
  --bg-app: #ffffff;
  --bg-page: #f4f3ee;
  --bg-card: #ffffff;
  --bg-muted: #f8f7f4;
  --border-light: #e8e6e1;
  --border-dark: #111111;

  --text-main: #111111;
  --text-muted: #555555;
  --text-soft: #888888;
  --text-watermark: #e6e2da;

  --heart-red: #d9534f;
  --heart-red-dark: #b53b37;
  --heart-red-glow: rgba(217, 83, 79, 0.28);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-cinzel: 'Cinzel', serif;
  --font-script: 'Alex Brush', cursive;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-env: 0 25px 60px rgba(0, 0, 0, 0.18);
  --radius-card: 22px;
  --radius-pill: 40px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
}

/* =========================================================
   SOBRE MINIMALISTA INTERACTIVO (APERTURA 3D + LACRE ROJO)
   ========================================================= */
.modern-envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: 
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95), rgba(240, 238, 232, 0.98)),
    #f4f3ee;
  backdrop-filter: blur(14px);
  transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.8s;
}

.modern-envelope-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.env-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  perspective: 1400px;
  max-width: 92vw;
}

.env-invitation-badge {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

.modern-envelope-box {
  position: relative;
  width: min(86vw, 360px);
  height: min(60vw, 246px);
  transform-style: preserve-3d;
  cursor: pointer;
  filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.12));
  transition: transform 0.4s ease;
}

.modern-envelope-box:hover {
  transform: translateY(-4px) scale(1.02);
}

.m-env-back {
  position: absolute;
  inset: 0;
  background: #fbfaf7;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.m-env-pattern {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(0,0,0,0.015) 0px, rgba(0,0,0,0.015) 2px, transparent 2px, transparent 12px);
}

/* Carta Interna */
.m-env-letter {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 6%;
  height: 86%;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-light);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transform: translateY(0) translateZ(4px);
  transition: transform 1.0s cubic-bezier(0.16, 1, 0.3, 1) 0.45s, box-shadow 0.6s ease 0.5s;
}

.m-letter-inner {
  border: 1px solid #eee;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.8rem;
}

.m-letter-logo {
  width: 38px;
  height: 38px;
}

.m-letter-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.m-letter-tag {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
}

.m-letter-names {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  color: var(--text-main);
  line-height: 1;
}

.m-letter-date {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--text-muted);
}

/* Solapas */
.m-flap-left, .m-flap-right, .m-flap-bottom {
  position: absolute;
  z-index: 4;
  transform: translateZ(8px);
}

.m-flap-left {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f7f5f0;
  clip-path: polygon(0 0, 0 100%, 50% 50%);
  filter: drop-shadow(1px 0 3px rgba(0, 0, 0, 0.04));
}

.m-flap-right {
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #f5f3ee;
  clip-path: polygon(100% 0, 100% 100%, 50% 50%);
  filter: drop-shadow(-1px 0 3px rgba(0, 0, 0, 0.04));
}

.m-flap-bottom {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #edeae3;
  clip-path: polygon(0 100%, 100% 100%, 50% 48%);
  filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.05));
}

.m-flap-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 62%;
  background: #f2efe8;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transform-style: preserve-3d;
  transform: rotateX(0deg) translateZ(12px);
  z-index: 5;
  transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
}

/* Sello de Lacre Minimalista Rojo */
.modern-wax-seal {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(14px);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #eb6864, #d9534f 65%, #b53b37);
  box-shadow: 
    0 8px 25px rgba(217, 83, 79, 0.4),
    inset 0 2px 3px rgba(255, 255, 255, 0.35),
    inset 0 -2px 5px rgba(0, 0, 0, 0.3);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.seal-heart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.seal-pulse-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed rgba(217, 83, 79, 0.6);
  animation: spinSeal 14s linear infinite;
}

@keyframes spinSeal {
  to { transform: rotate(360deg); }
}

/* Estado de Sobre Abierto */
.modern-envelope-box.is-opened .m-flap-top {
  transform: rotateX(180deg) translateZ(-6px);
  z-index: 1;
  transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1), z-index 0.01s linear 0.4s;
}

.modern-envelope-box.is-opened .modern-wax-seal {
  opacity: 0;
  transform: translate(-50%, -50%) translateZ(14px) scale(0.8);
  pointer-events: none;
}

.modern-envelope-box.is-opened .m-env-letter {
  transform: translateY(-56%) translateZ(25px);
  z-index: 20;
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.18);
}

.env-open-hint {
  margin-top: 2rem;
}

.hint-names {
  font-family: var(--font-script);
  font-size: clamp(2rem, 7vw, 2.7rem);
  color: var(--text-main);
}

.hint-names span {
  font-family: var(--font-serif);
  font-size: 0.8em;
  color: var(--heart-red);
}

.hint-action {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  animation: pulseHint 2.2s infinite ease-in-out;
}

.hint-action svg {
  animation: bounceHint 1.8s infinite ease-in-out;
  color: var(--heart-red);
}

@keyframes pulseHint {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; color: var(--text-main); }
}

@keyframes bounceHint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* =========================================================
   CONTENEDOR SMARTPHONE / APP LAYOUT (440px MÁXIMO)
   ========================================================= */
.app-layout-wrapper {
  width: 100%;
  max-width: 440px;
  background: var(--bg-app);
  min-height: 100vh;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.07);
  padding: 2.2rem 1.4rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  position: relative;
}

/* =========================================================
   BARRA FLOTANTE DE AUDIO MINIMALISTA
   ========================================================= */
.floating-audio-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 6px 16px 6px 8px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.fab-speaker-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text-main);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.fab-speaker-btn:hover {
  transform: scale(1.08);
}

.fab-audio-info {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-main);
}

/* =========================================================
   1. COVER / HEADER CON MINI REPRODUCTOR CÁPSULA
   ========================================================= */
.section-cover {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cover-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.cover-script {
  font-family: var(--font-script);
  font-size: 2.1rem;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 1.6rem;
}

.cover-photo-card {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.6rem;
  transition: transform 0.4s ease;
}

.cover-photo-card:hover {
  transform: scale(1.02);
}

.cover-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* Mini Reproductor Cápsula Glassmorphism */
.capsule-player {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.capsule-scrubber-wrap {
  width: 85%;
  height: 4px;
  background: #e8e8e8;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.capsule-scrubber-fill {
  height: 100%;
  width: 0%;
  background: var(--text-main);
  border-radius: 3px;
}

.capsule-scrubber-dot {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-main);
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.capsule-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
}

.capsule-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.capsule-btn:hover {
  transform: scale(1.15);
}

.capsule-play-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text-main);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.capsule-play-circle:hover {
  transform: scale(1.08);
}

.capsule-song-label {
  text-align: center;
}

.capsule-song-label span {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-main);
}

.capsule-artist {
  font-size: 0.68rem;
  color: var(--text-soft);
  margin-top: 0.1rem;
}

/* =========================================================
   2. NOMBRES & FECHA GIGANTE EDITORIAL CON CONTRASTE
   ========================================================= */
.section-names-date {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.editorial-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  margin-bottom: 1.2rem;
}

.name-serif {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 6.5vw, 2.3rem);
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--text-main);
}

.name-conjunction {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--heart-red);
  line-height: 0.8;
  margin: -0.2rem 0;
}

/* Composición Fecha Gigante con Alto Contraste */
.giant-date-composition {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 1.5rem 0 1rem;
}

.script-month {
  position: absolute;
  top: 14%;
  left: 10%;
  font-family: var(--font-script);
  font-size: clamp(2.8rem, 11vw, 4.2rem);
  color: var(--text-main);
  z-index: 2;
  transform: rotate(-8deg);
  pointer-events: none;
  text-shadow: 0 0 15px #ffffff, 0 0 25px #ffffff;
}

.giant-day-num {
  font-family: var(--font-serif);
  font-size: clamp(6.5rem, 24vw, 9.5rem);
  font-weight: 700;
  line-height: 0.85;
  color: var(--text-watermark);
  letter-spacing: -0.05em;
  position: relative;
  z-index: 1;
}

.event-details-text {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.event-time-line { font-weight: 700; color: var(--text-main); }
.event-venue-line { font-weight: 500; }
.event-year-line { font-family: var(--font-serif); font-size: 1.15rem; color: var(--text-main); margin-top: 0.2rem; font-weight: 600; }

.editorial-second-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.editorial-second-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   3. CUENTA REGRESIVA MINIMALISTA
   ========================================================= */
.section-countdown {
  text-align: center;
}

.countdown-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.minimal-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.minimal-cd-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1rem 0.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: transform 0.3s ease;
}

.minimal-cd-card:hover {
  transform: translateY(-2px);
}

.cd-val {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 5vw, 1.85rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.cd-unit {
  font-size: 0.62rem;
  color: var(--text-soft);
  text-transform: capitalize;
  font-weight: 500;
}

/* =========================================================
   4. THE VENUE / UBICACIÓN CON PIN ❤️
   ========================================================= */
.section-venue {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.script-heading {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.venue-name-bold {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-main);
  margin-bottom: 1.6rem;
}

/* Vista de Mapa Ilustrada con Corazón */
.venue-map-card {
  width: 100%;
  height: 210px;
  background: #f1ede6;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.venue-map-texture {
  position: absolute;
  inset: 0;
  opacity: 0.45;
}

.map-street {
  position: absolute;
  background: #fff;
}

.map-street.line-1 { top: 35%; left: 0; right: 0; height: 18px; transform: rotate(-8deg); }
.map-street.line-2 { top: 0; bottom: 0; left: 42%; width: 22px; transform: rotate(12deg); }
.map-street.line-3 { top: 65%; left: 0; right: 0; height: 14px; transform: rotate(4deg); }

.map-block {
  position: absolute;
  background: #e2ded5;
  border-radius: 6px;
}

.map-block.block-1 { top: 12%; left: 10%; width: 80px; height: 45px; }
.map-block.block-2 { bottom: 15%; right: 12%; width: 100px; height: 50px; }

/* Pin de Corazón */
.heart-location-pin {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-heart-shape {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(217, 83, 79, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heartPulse 1.8s infinite ease-in-out;
}

.pin-pulse {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--heart-red);
  opacity: 0;
  animation: rippleRing 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@keyframes rippleRing {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.map-location-tag {
  position: absolute;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.venue-button-row {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.6rem;
}

.btn-venue-pill {
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--text-main);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-venue-pill:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.btn-venue-pill.btn-outline {
  background: #fff;
  color: var(--text-main);
  border: 1px solid var(--border-dark);
}

/* =========================================================
   5. THE PROGRAM / TIMELINE CON LOGOS ILUSTRADOS
   ========================================================= */
.section-program {
  text-align: center;
}

.heart-timeline-container {
  position: relative;
  max-width: 380px;
  margin: 2rem auto 0;
  padding-left: 54px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: left;
}

.heart-timeline-spine {
  position: absolute;
  top: 15px;
  bottom: 20px;
  left: 21px;
  width: 2px;
  background: var(--heart-red);
}

.ht-item {
  position: relative;
}

.ht-badge {
  position: absolute;
  left: -54px;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--heart-red);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  transition: transform 0.3s ease;
}

.ht-item:hover .ht-badge {
  transform: scale(1.15) rotate(6deg);
  background: #fffafa;
}

.ht-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ht-time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--heart-red);
}

.ht-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main);
}

.ht-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* =========================================================
   6. MESA DE REGALOS (BOTÓN ESTILO AMAZON / TIENDA)
   ========================================================= */
.section-registry {
  text-align: center;
}

.registry-note {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

.registry-button-container {
  width: 100%;
}

.btn-store-card {
  width: 100%;
  padding: 1rem 1.4rem;
  background: var(--text-main);
  color: #fff;
  border: none;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-store-card:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.store-icon {
  display: flex;
  align-items: center;
}

.store-label {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-brand {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.store-sub {
  font-size: 0.7rem;
  color: #ccc;
}

/* =========================================================
   7. ENTOURAGE / CORTEJO NUPCIAL
   ========================================================= */
.section-entourage {
  text-align: center;
}

.entourage-sub {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.entourage-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.ent-role-title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  display: block;
  margin-bottom: 0.4rem;
}

.ent-names {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =========================================================
   8. RSVP EDITORIAL DIFERENCIADO Y LEGIBLE (MÁXIMO CONTRASTE)
   ========================================================= */
.section-rsvp {
  text-align: center;
}

.giant-rsvp-header {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 1.2rem;
}

/* RS / VP como marca de agua arquitectónica */
.rsvp-stacked-letters {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-serif);
  font-size: clamp(5rem, 20vw, 7.2rem);
  font-weight: 800;
  line-height: 0.82;
  color: var(--text-watermark);
  letter-spacing: -0.04em;
  user-select: none;
}

/* "by January 20" en primer plano de altísima legibilidad */
.rsvp-script-overlay {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  width: 100%;
  pointer-events: none;
  z-index: 3;
}

.rsvp-script-badge {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 10vw, 3.8rem);
  color: var(--text-main);
  font-weight: 500;
  white-space: nowrap;
  display: inline-block;
  /* Halo blanco nítido que garantiza 100% de legibilidad sobre el fondo */
  text-shadow: 
    0 0 10px #ffffff,
    0 0 20px #ffffff,
    0 0 30px #ffffff,
    0 2px 4px rgba(255, 255, 255, 0.9);
}

.rsvp-sub-call {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 auto 2.2rem;
}

/* Formulario */
.canva-rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  text-align: left;
}

.c-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.c-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
}

.c-field input[type="text"],
.c-field input[type="tel"] {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
}

.c-field input:focus {
  border-color: var(--border-dark);
  background: #fff;
}

/* Botones Píldora de Asistencia */
.pill-options-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pill-choice-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  transition: all 0.2s ease;
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.pill-choice-btn.is-active {
  background: var(--text-main);
  border-color: var(--text-main);
  color: #fff;
}

.pill-check { color: #fff; font-weight: bold; }
.pill-cross { color: #888; font-weight: bold; }
.pill-choice-btn.is-active .pill-cross { color: #fff; }

/* Botones de Acompañantes */
.guests-pills-row {
  display: flex;
  gap: 0.6rem;
}

.guest-pill-btn {
  flex: 1;
  padding: 0.65rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border-light);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.guest-pill-btn.is-active {
  background: var(--text-main);
  border-color: var(--text-main);
  color: #fff;
}

/* Cuadrícula de Restricciones Alimentarias */
.diet-checkboxes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.diet-check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-main);
  cursor: pointer;
}

.diet-check-item input {
  display: none;
}

.check-box-custom {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.diet-check-item input:checked + .check-box-custom {
  background: var(--text-main);
  border-color: var(--text-main);
}

.diet-check-item input:checked + .check-box-custom::after {
  content: "✔";
  color: #fff;
  font-size: 11px;
}

.form-submit-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.btn-rsvp-submit {
  width: 100%;
  padding: 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--text-main);
  color: #fff;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-rsvp-submit:hover {
  opacity: 0.9;
}

.btn-rsvp-whatsapp-pill {
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-pill);
  background: #25d366;
  color: #fff;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-rsvp-whatsapp-pill:hover {
  opacity: 0.9;
}

.btn-rsvp-submit:disabled,
.btn-rsvp-whatsapp-pill:disabled {
  cursor: wait;
  opacity: 0.58;
}

.rsvp-status {
  min-height: 1.4em;
  margin: 0.85rem auto 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

:where(button, a, input, [tabindex]):focus-visible {
  outline: 3px solid var(--heart-red);
  outline-offset: 3px;
}

.rsvp-thankyou-box {
  padding: 2.5rem 1rem;
  text-align: center;
}

.thankyou-heart {
  color: var(--heart-red);
  font-size: 2.5rem;
  margin-bottom: 0.6rem;
}

.rsvp-thankyou-box h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.rsvp-thankyou-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* =========================================================
   9. SAVE THE DATE & ADD TO CALENDAR
   ========================================================= */
.section-save-the-date {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.save-the-date-stack {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 9.5vw, 3.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--text-main);
  margin-bottom: 1.2rem;
}

.std-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 1.8rem;
}

.std-actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.btn-dark-pill {
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--text-main);
  color: #fff;
  border: 1px solid var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-dark-pill:hover {
  opacity: 0.9;
}

.btn-dark-pill.btn-outline-pill {
  background: #fff;
  color: var(--text-main);
}

.std-final-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

.std-final-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.std-closing-msg {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 300px;
  margin-bottom: 1.5rem;
}

.std-brand-footer {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--text-soft);
  text-transform: uppercase;
}

/* =========================================================
   ANIMACIONES GSAP & TRANSICIONES DE PÁGINA
   ========================================================= */
.gsap-anim {
  opacity: 0;
  transform: translateY(24px);
}

.gsap-reveal-section {
  opacity: 0;
  transform: translateY(30px);
}

.gsap-tl-item {
  opacity: 0;
  transform: translateX(-20px);
}

/* =========================================================
   RESPONSIVE MÓVIL
   ========================================================= */
@media (max-width: 380px) {
  .app-layout-wrapper {
    padding: 1.5rem 1rem 5rem;
  }

  .script-month {
    font-size: 2.4rem;
  }

  .giant-day-num {
    font-size: 5.8rem;
  }

  .rsvp-stacked-letters {
    font-size: 4rem;
  }

  .rsvp-script-badge {
    font-size: 2.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .gsap-anim,
  .gsap-reveal-section,
  .gsap-tl-item {
    opacity: 1 !important;
    transform: none !important;
  }
}
