/* =========================================================
   ESTILOS MEDITERRÁNEOS & EDITORIALES: BODA BÁRBARA & SERGIO
   Inspirado en la invitación Boda Mar & Jaume (Download.mp4)
   ========================================================= */

:root {
  --bg-body: #f5f3ee;
  --bg-app: #fbfaf7;
  --bg-card: #ffffff;
  --bg-card-alt: #f7f5f0;

  --sage-main: #6f9280;
  --sage-dark: #537563;
  --sage-light: #eaf1ed;
  --sage-border: #d4e2da;

  --text-main: #242b26;
  --text-muted: #5b665f;
  --text-soft: #85918a;

  --gold-warm: #c5a878;
  --gold-soft: #f7f1e6;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Alex Brush', cursive;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-card: 0 10px 30px rgba(40, 50, 45, 0.06);
  --shadow-sm: 0 4px 15px rgba(40, 50, 45, 0.04);
  --radius-card: 16px;
  --radius-pill: 30px;
}

/* 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-body);
  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;
}

/* =========================================================
   1. SOBRE 3D INTERACTIVO CON SELLO DE LACRE MARFIL
   ========================================================= */
.envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: 
    radial-gradient(circle at center, rgba(255, 255, 255, 0.96), rgba(240, 237, 230, 0.98)),
    #f5f3ee;
  backdrop-filter: blur(12px);
  transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.8s;
}

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

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

.envelope-box {
  position: relative;
  width: min(86vw, 360px);
  height: min(60vw, 246px);
  transform-style: preserve-3d;
  cursor: pointer;
  filter: drop-shadow(0 20px 40px rgba(50, 60, 55, 0.14));
  transition: transform 0.4s ease;
  margin-bottom: 2rem;
}

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

.env-back {
  position: absolute;
  inset: 0;
  background: #fbf9f5;
  border-radius: 8px;
  border: 1px solid #e8e3d8;
  overflow: hidden;
}

.env-interior-gold {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(197, 168, 120, 0.05) 0px, rgba(197, 168, 120, 0.05) 2px, transparent 2px, transparent 12px);
}

/* Carta Interna */
.env-letter {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 6%;
  height: 86%;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid #ece7dd;
  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;
}

.env-letter-inner {
  border: 1px solid #efeae0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.85);
}

.letter-monogram {
  width: 36px;
  height: 36px;
}

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

.letter-subtitle {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--sage-dark);
  text-transform: uppercase;
}

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

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

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

.env-flap-left {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f7f4ee;
  clip-path: polygon(0 0, 0 100%, 50% 50%);
}

.env-flap-right {
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #f5f2ea;
  clip-path: polygon(100% 0, 100% 100%, 50% 50%);
}

.env-flap-bottom {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ece8df;
  clip-path: polygon(0 100%, 100% 100%, 50% 48%);
}

.env-flap-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 62%;
  background: #f3efe6;
  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.06));
}

/* Sello de Lacre Marfil con Monograma B&S */
.wax-seal {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(14px);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff, #f2eee3 70%, #ded7c8);
  box-shadow: 
    0 8px 25px rgba(50, 60, 55, 0.18),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -3px 5px rgba(0, 0, 0, 0.08);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(197, 168, 120, 0.35);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.seal-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-monogram-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #9c845b;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.seal-rim-bevel {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px dashed rgba(197, 168, 120, 0.55);
  pointer-events: none;
}

.seal-shine-reflection {
  position: absolute;
  top: 10%;
  left: 15%;
  width: 35%;
  height: 25%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.8), transparent 70%);
  border-radius: 50%;
  transform: rotate(-35deg);
  pointer-events: none;
}

/* Estado de Sobre Abierto */
.envelope-box.is-opened .env-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;
}

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

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

/* Texto en cursiva inferior exacto al video */
.envelope-exclusive-text {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 6.5vw, 2.5rem);
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.envelope-touch-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #59635d;
  animation: pulseHint 2s infinite ease-in-out;
}

:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--sage-main);
  outline-offset: 3px;
}

@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;
  }
}

.envelope-touch-indicator svg {
  animation: bounceHint 1.6s infinite ease-in-out;
  color: var(--sage-main);
}

@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); }
}

/* =========================================================
   BOTÓN FLOTANTE DE MÚSICA (ALTAVOZ ESQUINA INFERIOR DERECHA)
   ========================================================= */
.floating-speaker-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.speaker-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage-main);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(111, 146, 128, 0.4);
  transition: transform 0.25s ease, background 0.25s ease;
}

.speaker-btn:hover {
  transform: scale(1.1);
  background: var(--sage-dark);
}

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

/* =========================================================
   2. PORTADA DE ACUARELA MEDITERRÁNEA
   ========================================================= */
.section-watercolor-hero {
  padding-top: 1.25rem;
}

.watercolor-frame {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
  border: 1px solid #ece7dd;
}

.watercolor-frame img,
.watercolor-frame video,
.hero-video-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.watercolor-text-overlay {
  position: absolute;
  top: 38%;
  left: 0;
  right: 0;
  text-align: center;
  padding: 1.5rem 1rem;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.75) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.hero-couple-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.bride-name, .groom-name {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 8.5vw, 3.4rem);
  color: var(--text-main);
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.connector-amp {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--sage-main);
  margin: -0.3rem 0;
  font-style: italic;
}

.hero-date-pill {
  font-family: var(--font-editorial);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
}

/* =========================================================
   3. CUENTA ATRÁS EN TARJETAS SALVIA
   ========================================================= */
.section-countdown-mar {
  text-align: center;
  position: relative;
  margin-top: -1.5rem;
}

.script-section-title {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 9vw, 3.4rem);
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.section-subtext {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

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

.sage-cd-card {
  background: var(--sage-main);
  border-radius: 14px;
  padding: 1.1rem 0.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(111, 146, 128, 0.3);
  transition: transform 0.3s ease;
}

.sage-cd-card:hover {
  transform: translateY(-3px);
}

.sage-num {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  font-weight: 700;
  line-height: 1;
}

.sage-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  opacity: 0.9;
}

/* =========================================================
   4. DETALLES DEL DÍA & LOCALIZACIÓN
   ========================================================= */
.section-details-day {
  text-align: center;
}

.location-main-card {
  background: var(--bg-card);
  border: 1px solid #ece7dd;
  border-radius: 20px;
  padding: 1.8rem 1.4rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.location-icon-pin {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.card-tag-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.location-place-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.location-schedule {
  font-size: 0.85rem;
  color: var(--sage-dark);
  font-weight: 500;
  margin-bottom: 1.4rem;
}

.embedded-map-preview {
  width: 100%;
  height: 190px;
  background: #eae6dd;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid #e2ddd2;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-bg-streets {
  position: absolute;
  inset: 0;
  opacity: 0.5;
}

.street-s1 { position: absolute; top: 40%; left: 0; right: 0; height: 16px; background: #fff; transform: rotate(-5deg); }
.street-s2 { position: absolute; top: 0; bottom: 0; left: 45%; width: 20px; background: #fff; transform: rotate(10deg); }
.street-s3 { position: absolute; top: 70%; left: 0; right: 0; height: 14px; background: #fff; transform: rotate(2deg); }

.map-marker-pin {
  position: relative;
  z-index: 5;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
  animation: mapPinBob 2s infinite ease-in-out;
}

@keyframes mapPinBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

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

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

.btn-sage-pill {
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--sage-main);
  color: #ffffff;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

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

.btn-sage-outline {
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--sage-dark);
  border: 1px solid var(--sage-border);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.btn-sage-outline:hover {
  background: var(--sage-light);
  transform: translateY(-2px);
}

/* =========================================================
   5. PROGRAMA DEL DÍA CON LOGOS (EXACTO AL VIDEO)
   ========================================================= */
.section-program-day {
  text-align: center;
}

.program-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.program-item-card {
  background: var(--bg-card);
  border: 1px solid #ece7dd;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.program-item-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}

.program-time-badge {
  background: var(--sage-light);
  color: var(--sage-dark);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.program-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fbfaf7;
  border: 1px solid var(--sage-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-main);
  flex-shrink: 0;
}

.program-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.prog-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

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

/* =========================================================
   6. ALOJAMIENTO
   ========================================================= */
.section-lodging {
  text-align: center;
}

.lodging-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.hotel-recommend-card {
  background: var(--bg-card);
  border: 1px solid #ece7dd;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
}

.hotel-info-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hotel-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.hotel-proximity {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.btn-hotel-details {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--sage-main);
  color: var(--sage-main);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-hotel-details:hover {
  background: var(--sage-main);
  color: #ffffff;
}

/* =========================================================
   7. MESA DE REGALOS
   ========================================================= */
.section-gifts-p2 {
  text-align: center;
}

.bank-pill-card {
  background: var(--bg-card);
  border: 1px solid #ece7dd;
  border-radius: 16px;
  padding: 1.5rem 1.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.bank-pill-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.bank-title {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--sage-dark);
  text-transform: uppercase;
}

.bank-account-num {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-main);
}

.bank-holder {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-copy-account-mar {
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-pill);
  background: var(--sage-main);
  color: #ffffff;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-copy-account-mar:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
}

/* =========================================================
   8. CONFIRMAR ASISTENCIA (RSVP)
   ========================================================= */
.section-rsvp-p2 {
  text-align: center;
}

.rsvp-mar-form {
  background: var(--bg-card);
  border: 1px solid #ece7dd;
  border-radius: 16px;
  padding: 1.8rem 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: left;
}

.f-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

.f-group input, .f-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-card-alt);
  border: 1px solid #e5dfd2;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
}

.f-group input:focus, .f-group select:focus {
  border-color: var(--sage-main);
  background: #ffffff;
}

.rsvp-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

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

.btn-submit-sage:hover {
  background: var(--sage-dark);
}

.btn-whatsapp-sage {
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-pill);
  background: #25d366;
  color: #ffffff;
  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-whatsapp-sage:hover {
  opacity: 0.9;
}

.rsvp-success-message {
  background: var(--bg-card);
  border: 1px solid #ece7dd;
  border-radius: 16px;
  padding: 2.5rem 1rem;
  text-align: center;
}

.success-check-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.rsvp-success-message h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.rsvp-success-message p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =========================================================
   9. CIERRE
   ========================================================= */
.section-footer-closing {
  text-align: center;
  padding-bottom: 2rem;
}

.closing-photo-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.6rem;
  border: 1px solid #ece7dd;
}

.closing-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing-thanks-text {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 auto 1rem;
}

.closing-script-names {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.closing-signature-date {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--text-soft);
}

/* =========================================================
   RESPONSIVE SMARTPHONES
   ========================================================= */
@media (max-width: 380px) {
  .wedding-app-container {
    padding: 0 0.8rem 5rem;
  }

  .script-section-title {
    font-size: 2.4rem;
  }

  .bride-name, .groom-name {
    font-size: 2.2rem;
  }
}

/* =========================================================
   ANIMACIONES SUAVES DE APARICIÓN AL HACER SCROLL
   ========================================================= */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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