/* ============================================================
   Paula's Birthday Picnic Party — 15 Años
   Digital Invitation Card Stylesheet
============================================================ */

:root {
  --cream: #FFFBF0;
  --cream-warm: #FDF5E2;
  --paper-shadow: rgba(93, 62, 41, 0.14);
  --ink: #3E3630;
  --ink-soft: #6B5F55;

  --red-gingham: #D94F4F;
  --red-gingham-soft: rgba(217, 79, 79, 0.45);
  --coral-accent: #E26D63;

  --olive: #687A24;
  --olive-dark: #4E5D1A;
  --olive-gingham: #9DA921;
  --olive-gingham-soft: rgba(157, 169, 33, 0.45);

  --blush: #FDEAE6;
  --blush-deep: #F3B3B3;
  --butter: #F8E5A5;

  --font-script: 'Sacramento', cursive;
  --font-hand: 'Caveat', cursive;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-card: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: #FAF1E6;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(247, 198, 199, 0.45), transparent 45%),
    radial-gradient(circle at 85% 35%, rgba(248, 229, 165, 0.4), transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(169, 186, 87, 0.25), transparent 50%);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Confetti overlay */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 150;
}

/* ============================================================
   PANTALLA DE INICIO: SOBRE ANIMADO CON FOTO #11
============================================================ */
body.envelope-locked {
  overflow: hidden;
}

.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.envelope-screen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1000px;
}

.envelope {
  position: relative;
  width: min(330px, 84vw);
  aspect-ratio: 330 / 220;
  cursor: pointer;
  animation: envFloat 3s ease-in-out infinite;
  outline: none;
}

.envelope:focus-visible {
  box-shadow: 0 0 0 4px rgba(255, 251, 240, 0.9);
  border-radius: 12px;
}

.envelope.open {
  animation: none;
  transform: translateY(42px);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}

@keyframes envFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

.env-body {
  position: absolute;
  inset: 0;
  background: var(--cream);
  border-radius: 12px;
  box-shadow: 0 26px 52px rgba(62, 34, 24, 0.32);
}

/* Postal Polaroid con la foto #11 de Paula (oculta mientras el sobre está cerrado) */
.env-letter {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84%;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 10px 10px 12px;
  z-index: 2;
  box-shadow: 0 10px 26px rgba(62, 34, 24, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -42%) scale(0.82);
  transition:
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.42s,
    opacity 0.25s ease 0.42s,
    visibility 0s 0.42s,
    box-shadow 0.8s ease 0.42s;
}

.env-photo-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 220px;
  border-radius: 6px;
  overflow: hidden;
  background: #F5ECE0;
}

.env-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.env-letter-caption {
  font-family: var(--font-script);
  font-size: 1.95rem;
  line-height: 1;
  color: var(--ink);
}

.envelope.open .env-letter {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -66%) scale(1.06);
  box-shadow: 0 22px 44px rgba(62, 34, 24, 0.3);
  z-index: 4;
}

/* Pliegues frontales del sobre */
.env-front {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(to top right, #F2E4C8 50%, transparent 50.5%) left / 50% 100% no-repeat,
    linear-gradient(to top left, #ECDCBA 50%, transparent 50.5%) right / 50% 100% no-repeat;
}

/* Solapa superior triangular */
.env-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  z-index: 5;
  transform-origin: top center;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1), z-index 0s 0.38s;
  background: #E5D1A8;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.envelope.open .env-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

/* Sello rojo de fresa */
.env-seal {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--red-gingham);
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: 0 6px 14px rgba(62, 34, 24, 0.3);
  border: 3px dashed rgba(255, 255, 255, 0.65);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.envelope.open .env-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.75);
}

.env-tap-hint {
  margin-top: 38px;
  background: var(--cream);
  color: var(--ink);
  padding: 10px 24px;
  border-radius: 999px;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(62, 34, 24, 0.18);
  cursor: pointer;
  animation: envPulse 2s ease-in-out infinite;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.envelope-screen.opening .env-tap-hint {
  animation: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.92);
  pointer-events: none;
}

@keyframes envPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ============================================================
   Contenedor principal (Tarjeta vertical elegante)
============================================================ */
.invitation-shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 14px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 600px) {
  .invitation-shell {
    padding: 36px 20px 56px;
    gap: 30px;
  }
}

.card-section {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 18px 42px var(--paper-shadow), 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Patrones Vichy (Gingham) en CSS puro
============================================================ */
.gingham-red {
  padding: 24px 18px;
  background-color: #FFFFFF;
  background-image:
    repeating-linear-gradient(
      45deg,
      var(--red-gingham-soft) 0,
      var(--red-gingham-soft) 24px,
      transparent 24px,
      transparent 48px
    ),
    repeating-linear-gradient(
      -45deg,
      var(--red-gingham-soft) 0,
      var(--red-gingham-soft) 24px,
      transparent 24px,
      transparent 48px
    );
}

.gingham-olive {
  padding: 24px 18px;
  background-color: #FFFFFF;
  background-image:
    repeating-linear-gradient(
      0deg,
      var(--olive-gingham-soft) 0,
      var(--olive-gingham-soft) 26px,
      transparent 26px,
      transparent 52px
    ),
    repeating-linear-gradient(
      90deg,
      var(--olive-gingham-soft) 0,
      var(--olive-gingham-soft) 26px,
      transparent 26px,
      transparent 52px
    );
}

/* Hoja de papel crema interior */
.paper-card {
  background: var(--cream);
  border-radius: var(--radius-card);
  padding: 32px 22px 30px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 10px 28px rgba(74, 48, 30, 0.14),
    inset 0 0 0 1px rgba(212, 189, 152, 0.45);
}

@media (min-width: 480px) {
  .gingham-red,
  .gingham-olive {
    padding: 30px 26px;
  }
  .paper-card {
    padding: 38px 32px 34px;
  }
}

/* ============================================================
   SECCIÓN 1: HERO PICNIC CARD
============================================================ */
.hero-card {
  text-align: center;
}

.daisy-cluster {
  position: absolute;
  width: 112px;
  height: 112px;
  pointer-events: none;
  opacity: 0.95;
}

.daisy-cluster.top-right {
  top: -8px;
  right: -10px;
}

.daisy-cluster.bottom-left {
  bottom: -14px;
  left: -14px;
}

.arched-eyebrow {
  max-width: 250px;
  margin: 0 auto -6px;
}

.arched-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   ESCENA 3D ESTILO UNIVERSAL (Paula + Texto 3D girando)
============================================================ */
.universal-stage {
  --orbit-r: 138px;
  position: relative;
  width: 100%;
  height: 295px;
  margin: -12px auto 8px;
  perspective: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: visible;
  z-index: 2;
}

@media (min-width: 460px) {
  .universal-stage {
    --orbit-r: 168px;
    height: 325px;
  }
}

.universal-scene {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.universal-halo {
  position: absolute;
  width: 235px;
  height: 235px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(248, 229, 165, 0.72) 0%,
    rgba(247, 198, 199, 0.42) 52%,
    transparent 74%
  );
  transform: translateZ(-40px);
  pointer-events: none;
}

.universal-paula {
  position: relative;
  height: 270px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  transform: translateZ(0px);
  filter: drop-shadow(0 14px 20px rgba(74, 48, 30, 0.24));
  user-select: none;
  pointer-events: none;
  transition: transform 0.35s ease;
}

@media (min-width: 460px) {
  .universal-paula {
    height: 300px;
  }
}

.universal-stage:hover .universal-paula {
  transform: translateZ(0px) scale(1.03);
}

/* Plano inclinado estilo Universal Studios */
.universal-orbit-tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateY(16px) rotateX(-13deg) rotateZ(-8deg);
  pointer-events: none;
}

/* Anillo giratorio 3D */
.universal-orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  animation: universalOrbit 11s linear infinite;
}

@keyframes universalOrbit {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(-360deg);
  }
}

/* Cada letra extruida en 3D */
.orbit-char {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.22rem, 4.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #FFFDF5;
  text-transform: uppercase;
  white-space: pre;
  backface-visibility: visible;
  transform-style: preserve-3d;
  /* Efecto 3D metálico/dorado-coral tipo Universal */
  text-shadow:
    0 1px 0 #E7B85D,
    0 2px 0 #D49A3A,
    0 3px 0 #BA7D24,
    0 4px 0 #9D5E18,
    0 5px 0 #824412,
    0 7px 14px rgba(62, 34, 24, 0.42),
    0 0 12px rgba(255, 232, 163, 0.55);
}

.orbit-char.is-star {
  color: #FFE082;
  text-shadow:
    0 1px 0 #D94F4F,
    0 2px 0 #B63A3A,
    0 3px 0 #8E2828,
    0 5px 10px rgba(62, 34, 24, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .universal-orbit-ring {
    animation-duration: 30s;
  }
}

.hero-title-group {
  position: relative;
  z-index: 2;
}

.xv-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive-dark);
  background: rgba(157, 169, 33, 0.18);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.script-name {
  font-family: var(--font-script);
  font-size: clamp(4.4rem, 16vw, 5.6rem);
  font-weight: 400;
  line-height: 0.94;
  color: var(--ink);
  margin: 4px 0 8px;
}

.party-subtitle {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 18px;
}

.dotted-divider {
  height: 4px;
  width: 100%;
  background-image: radial-gradient(circle, var(--coral-accent) 1.8px, transparent 2px);
  background-size: 11px 4px;
  background-repeat: repeat-x;
  margin: 14px 0;
}

.date-time-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.dt-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dt-big {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}

.dt-label {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink);
  margin-top: 4px;
}

.dt-sub {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

.dt-vline {
  width: 4px;
  height: 70px;
  background-image: radial-gradient(circle, var(--coral-accent) 1.8px, transparent 2px);
  background-size: 4px 10px;
  background-repeat: repeat-y;
}

.location-line {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
  background: rgba(217, 79, 79, 0.06);
  transition: background 0.2s ease, transform 0.2s ease;
  position: relative;
  z-index: 2;
}

.location-line:hover {
  background: rgba(217, 79, 79, 0.12);
  transform: translateY(-1px);
}

.hero-scroll-cue,
.hero-scroll-cue:link,
.hero-scroll-cue:visited {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  z-index: 2;
  transition: color 0.2s ease, transform 0.2s ease;
}

.hero-scroll-cue:hover {
  color: var(--red-gingham);
}

.scroll-cue-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-cue-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blush);
  border: 1.5px solid rgba(217, 79, 79, 0.32);
  color: var(--red-gingham);
  box-shadow: 0 6px 14px rgba(217, 79, 79, 0.14);
  animation: scrollCueBounce 1.8s ease-in-out infinite;
}

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

/* ============================================================
   BOTONES REUTILIZABLES
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--red-gingham);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(217, 79, 79, 0.28);
}

.btn-primary:hover {
  background: #C44141;
  transform: translateY(-2px);
}

.btn-outline {
  background: #FFFFFF;
  color: var(--ink);
  border-color: rgba(217, 79, 79, 0.35);
}

.btn-outline:hover {
  background: #FFF2F2;
  transform: translateY(-2px);
}

.btn-soft {
  background: #FFFBF0;
  color: var(--ink);
  border-color: rgba(122, 139, 46, 0.35);
  font-size: 0.84rem;
  padding: 9px 15px;
}

.btn-soft:hover {
  background: #F4F7E4;
  transform: translateY(-1px);
}

.map-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.map-actions .btn {
  width: min(280px, 100%);
}

.btn-olive-map {
  background: var(--olive);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(104, 122, 36, 0.28);
}

.btn-olive-map:hover {
  background: var(--olive-dark);
  transform: translateY(-2px);
}

.btn-waze {
  background: #0099D6;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(0, 153, 214, 0.26);
}

.btn-waze:hover {
  background: #007EB0;
  transform: translateY(-2px);
}

.waze-icon {
  flex-shrink: 0;
}

.btn-whatsapp {
  background: #25A75A;
  color: #FFFFFF;
  width: 100%;
  box-shadow: 0 6px 16px rgba(37, 167, 90, 0.24);
}

.btn-whatsapp:hover {
  background: #1F914D;
  transform: translateY(-2px);
}

/* ============================================================
   SECCIÓN 2: CUENTA REGRESIVA
============================================================ */
.countdown-section {
  background: linear-gradient(145deg, #FFFDF7 0%, #FDF3E2 100%);
  border: 1.5px solid rgba(226, 109, 99, 0.22);
}

.countdown-card {
  padding: 30px 22px;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--red-gingham);
  background: rgba(217, 79, 79, 0.1);
  padding: 5px 14px;
  border-radius: 999px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 10px;
}

.countdown-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0 20px;
}

.time-box {
  background: #FFFFFF;
  border: 1.5px solid rgba(226, 109, 99, 0.25);
  border-radius: 18px;
  padding: 14px 6px 12px;
  box-shadow: 0 6px 14px rgba(133, 86, 38, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.time-box::before {
  content: "";
  position: absolute;
  top: 6px;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: rgba(217, 79, 79, 0.22);
}

.time-value {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 6vw, 2.2rem);
  font-weight: 700;
  color: var(--red-gingham);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.time-unit {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-top: 4px;
}

.countdown-live-msg {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--olive-dark);
  background: rgba(157, 169, 33, 0.16);
  padding: 14px 18px;
  border-radius: 18px;
  margin: 18px 0;
}

.hidden {
  display: none !important;
}

.calendar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ============================================================
   SECCIÓN 3: ACUARELA, INVITACIÓN Y CARRUSEL DE FOTOS (Página 1)
============================================================ */
.watercolor-section {
  background:
    radial-gradient(circle at 12% 14%, rgba(247, 198, 199, 0.55), transparent 46%),
    radial-gradient(circle at 88% 82%, rgba(246, 206, 192, 0.45), transparent 45%),
    linear-gradient(180deg, #FFF9F5 0%, #FFFBF4 100%);
  padding: 28px 20px 34px;
  border: 1.5px solid rgba(243, 179, 179, 0.45);
}

.bunting-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
}

.bunting-row {
  display: flex;
  gap: 6px;
}

.bunting-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 32px;
  background: linear-gradient(180deg, #F3AE99 0%, #EBA08C 100%);
  color: #FFFDF8;
  font-size: 0.78rem;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
  box-shadow: 0 3px 6px rgba(173, 94, 77, 0.18);
}

.bunting-row span:nth-child(even) {
  background: linear-gradient(180deg, #F6C3AE 0%, #EEAE9B 100%);
  transform: translateY(2px);
}

.balloons-svg {
  position: absolute;
  top: 24px;
  left: -12px;
  width: 84px;
  height: auto;
  pointer-events: none;
  opacity: 0.85;
}

.intro-message-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
}

.intro-portrait-frame {
  width: 164px;
  height: 164px;
  border-radius: 50%;
  padding: 7px;
  background: #FFFFFF;
  box-shadow:
    0 12px 26px rgba(168, 92, 92, 0.18),
    0 0 0 3px rgba(243, 179, 179, 0.55);
  overflow: hidden;
}

.intro-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  display: block;
}

.handwritten-invite {
  font-family: var(--font-hand);
  font-size: clamp(1.55rem, 5.4vw, 1.9rem);
  line-height: 1.32;
  color: var(--ink);
  max-width: 390px;
}

.handwritten-invite strong {
  color: var(--red-gingham);
  font-weight: 700;
}

/* Carrusel */
.carousel-block {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  padding: 16px 14px 16px;
  border: 1.5px solid rgba(243, 179, 179, 0.45);
  box-shadow: 0 10px 24px rgba(145, 92, 82, 0.1);
}

.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.carousel-pill {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red-gingham);
}

.carousel-counter {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: #FFF4F1;
  padding: 3px 10px;
  border-radius: 999px;
}

.carousel-stage {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #231E1B;
  aspect-ratio: 4 / 3;
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.48s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Fondo difuminado sutil para que fotos verticales luzcan perfectas */
.carousel-slide-bg {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  object-fit: cover;
  filter: blur(18px) brightness(0.55);
  transform: scale(1.06);
}

.carousel-slide-img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 251, 240, 0.88);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-nav:hover {
  background: #FFFFFF;
  transform: translateY(-50%) scale(1.06);
}

.carousel-nav.prev {
  left: 10px;
}

.carousel-nav.next {
  right: 10px;
}

.carousel-zoom-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: rgba(35, 30, 27, 0.65);
  color: #FFFFFF;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}

.carousel-zoom-btn:hover {
  background: rgba(35, 30, 27, 0.88);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(217, 79, 79, 0.25);
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}

.carousel-dot.active {
  width: 22px;
  background: var(--red-gingham);
}

.autoplay-toggle {
  border: 1px solid rgba(217, 79, 79, 0.3);
  background: #FFF7F5;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
}

.autoplay-toggle:hover {
  background: #FDEAE6;
}

.cupcake-deco {
  width: 72px;
  margin: 14px auto -16px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cupcake-deco:hover {
  transform: scale(1.1) rotate(4deg);
}

/* ============================================================
   SECCIÓN 4: SOBRE LA FIESTA (Verde Oliva — Página 3)
============================================================ */
.details-card {
  text-align: center;
}

.olive-title {
  font-family: var(--font-hand);
  font-size: clamp(2.1rem, 7vw, 2.65rem);
  font-weight: 700;
  color: var(--olive-dark);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.detail-block {
  padding: 8px 0;
}

.detail-kicker {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--olive-dark);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.detail-address {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.detail-pluscode {
  font-size: 0.82rem;
  color: var(--olive-dark);
  margin-bottom: 12px;
}

.map-embed-wrap {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(104, 122, 36, 0.28);
  box-shadow: 0 8px 18px rgba(78, 93, 26, 0.1);
  margin-bottom: 10px;
  background: #EFF3DF;
}

.map-embed-wrap iframe {
  width: 100%;
  height: 210px;
  border: 0;
  display: block;
}

.detail-handwritten {
  font-family: var(--font-hand);
  font-size: 1.52rem;
  line-height: 1.32;
  color: #46531B;
  max-width: 380px;
  margin: 0 auto;
}

.detail-emphasis {
  font-family: var(--font-hand);
  font-size: 1.68rem;
  font-weight: 700;
  color: var(--olive-dark);
  margin-top: 6px;
}

.olive-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(104, 122, 36, 0.32), transparent);
  margin: 18px 0;
}

/* Paleta de colores pastel */
.swatch-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 12px;
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid #FFFFFF;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.reserved-callout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #F4F9DF 0%, #E3F0B5 100%);
  border: 2px solid #687A24;
  color: #36450F;
  padding: 14px 20px;
  border-radius: 18px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.38;
  margin-top: 10px;
  max-width: 100%;
  box-shadow:
    0 0 18px rgba(138, 173, 40, 0.48),
    0 0 34px rgba(157, 169, 33, 0.25),
    0 6px 14px rgba(78, 93, 26, 0.16);
  animation: reservedGlow 2.4s ease-in-out infinite;
}

.reserved-callout .reserved-dot {
  font-size: 1.45rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(242, 184, 75, 0.7));
}

.reserved-callout strong {
  color: #2E5A14;
  text-decoration: underline;
  text-decoration-color: rgba(104, 122, 36, 0.55);
  text-underline-offset: 3px;
  text-shadow: 0 0 10px rgba(157, 196, 54, 0.55);
}

@keyframes reservedGlow {
  0%, 100% {
    box-shadow:
      0 0 14px rgba(138, 173, 40, 0.42),
      0 0 28px rgba(157, 169, 33, 0.22),
      0 6px 14px rgba(78, 93, 26, 0.14);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 24px rgba(138, 173, 40, 0.78),
      0 0 46px rgba(157, 169, 33, 0.42),
      0 8px 18px rgba(78, 93, 26, 0.2);
    transform: scale(1.018);
  }
}

.envelope-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 6px 10px;
  font-size: 3.4rem;
  line-height: 1;
  margin: 4px 0 8px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 6px 12px rgba(93, 62, 41, 0.18));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.envelope-icon:hover {
  transform: scale(1.14) rotate(-6deg);
}

.envelope-icon:active {
  transform: scale(0.92) rotate(4deg);
}

/* Formulario RSVP */
.rsvp-form {
  text-align: left;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 420px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--olive-dark);
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1.5px solid rgba(104, 122, 36, 0.28);
  background: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(104, 122, 36, 0.14);
}

.form-field input.input-error {
  border-color: var(--red-gingham);
  box-shadow: 0 0 0 3px rgba(217, 79, 79, 0.16);
}

.rsvp-helper {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 4px;
}

.whatsapp-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-fallback {
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

.phone-fallback a {
  color: var(--olive-dark);
  font-weight: 700;
  text-decoration: none;
}

.phone-fallback a:hover {
  text-decoration: underline;
}

.bottom-picnic-art {
  margin: 22px auto -12px;
  max-width: 300px;
}

.bottom-picnic-art svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Footer */
.invitation-footer {
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-soft);
  padding-top: 4px;
}

/* ============================================================
   LIGHTBOX (Visor pantalla completa)
============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(24, 19, 16, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-figure {
  max-width: 92vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.lightbox-figure figcaption {
  color: #FFFBF0;
  font-size: 0.9rem;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

/* ============================================================
   BOTÓN FLOTANTE DE MÚSICA
============================================================ */
.music-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 140;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2.5px solid #FFFBF0;
  background: var(--red-gingham);
  color: #FFFFFF;
  font-size: 1.35rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(62, 34, 24, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}

.music-fab:hover {
  transform: scale(1.08);
  background: #C44141;
}

.music-fab.is-playing {
  animation: musicSpin 5s linear infinite;
}

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