/* premium.css — Capa de pulido para la invitación principal (aditiva, ver premium.js) */

/* ── Scroll suave (Lenis) ───────────────────────────────────── */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ── Aparición escalonada del contenido de cada tarjeta ─────── */
.rev { opacity: 0; transform: translateY(22px); }
.rev-in .rev {
  opacity: 1;
  transform: none;
  transition:
    opacity 800ms var(--ease-out) calc(var(--i, 0) * 80ms + 140ms),
    transform 900ms var(--ease-out) calc(var(--i, 0) * 80ms + 140ms);
}

/* ── Las tarjetas se "alejan" suavemente al salir por arriba (Chrome/Edge; el resto ignora esto) ── */
@supports (animation-timeline: view()) {
  .animate-section:not(#portada) {
    transform-origin: 50% 100%;
    animation: tarjetaSale linear forwards;
    animation-timeline: view();
    animation-range: exit 5% exit 100%;
  }
  @keyframes tarjetaSale {
    to { scale: 0.955; }
  }
}

/* ── Detalles de pulido ─────────────────────────────────────── */
a, button { touch-action: manipulation; }

.section-title, .frase-portada { text-wrap: balance; }
.section-inner p { text-wrap: pretty; }

/* Respuesta al tocar los botones */
button:active, .btn-whatsapp:active, [class*="btn"]:active { scale: 0.97; }

:focus-visible { outline: 2px solid #D4AF37; outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  .rev, .rev-in .rev { opacity: 1; transform: none; transition: none; }
  .animate-section:not(#portada) { animation: none; }
}

/* ════════ Pulido 2: contraste, tipografía editorial, materiales y tarjeta bancaria ════════ */
:root { --font-serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif; }

/* Portada: más contraste detrás de los nombres cuando caen sobre el vestido blanco */
.portada-overlay {
  background: linear-gradient(
    180deg,
    rgba(31, 38, 20, 0.5) 0%,
    rgba(71, 82, 47, 0.1) 26%,
    rgba(36, 43, 23, 0.26) 46%,
    rgba(26, 32, 16, 0.64) 68%,
    rgba(24, 30, 15, 0.9) 100%
  );
}

/* Tipografía editorial: un serif elegante para números y fechas (los títulos siguen en caligrafía) */
.countdown-unit .valor { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2.3rem, 9vw, 3.5rem); letter-spacing: 0.01em; }
.inv-texto strong { font-family: var(--font-serif); font-weight: 600; font-size: 1.3em; letter-spacing: 0.01em; line-height: 1.25; }
.evento-hora { font-family: var(--font-serif); font-weight: 600; font-size: 1.6rem; letter-spacing: 0.01em; }

/* Tarjetas: textura de papel suave y más profundidad */
.animate-section:not(#portada) {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 2px 6px rgba(0, 0, 0, 0.1),
    0 22px 52px -14px rgba(0, 0, 0, 0.42);
}
.animate-section:not(#portada)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .28 0 0 0 0 .33 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Mesa de regalos: tarjeta bancaria */
.regalos-opciones { max-width: 520px; gap: 1.15rem; }
.regalo-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 1.3rem 1.45rem 1.1rem; border: 0; border-radius: 18px; color: #EEF2E8; text-align: left;
  background:
    radial-gradient(120% 90% at 100% -10%, rgba(238, 242, 232, 0.16), transparent 55%),
    linear-gradient(150deg, #6B784C 0%, #54603A 48%, #424C2B 100%);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.42), 0 22px 44px -22px rgba(0, 0, 0, 0.55);
}
.regalo-card::before { content: ""; position: absolute; inset: 7px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.2); pointer-events: none; z-index: -1; }
.regalo-card::after { content: ""; position: absolute; right: -16px; bottom: -26px; width: 150px; height: 190px; z-index: -1; pointer-events: none; opacity: 0.5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130' preserveAspectRatio='none'%3E%3Cpath d='M2 130V58C2 34 28 14 50 2c22 12 48 32 48 56v72' fill='none' stroke='%23D4AF37' stroke-opacity='.5' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M16 130V62C16 44 34 28 50 18c16 10 34 26 34 44v68' fill='none' stroke='%23D4AF37' stroke-opacity='.28' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.regalo-card h4 { color: #DCE3CF; margin-bottom: 0.2rem; }
.regalo-card h4 svg { color: #E6C65A; }
.regalo-card .regalo-row { display: block; padding: 0; border: 0; }
.regalo-card .regalo-row .label { display: none; }
.regalo-card .regalo-row .value { display: block; font-family: inherit; text-align: left; color: #EEF2E8; font-weight: 600; font-size: 0.98rem; }
.regalo-card .regalo-row:nth-child(3) { order: -1; margin: 0.35rem 0 0.7rem; }
.regalo-card .regalo-row:nth-child(3) .value { font-family: var(--font-serif); font-size: clamp(1.9rem, 8.4vw, 2.5rem); font-weight: 600; letter-spacing: 0.07em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.regalo-card h4 { order: -2; }
.regalo-card .regalo-row:nth-child(4) .value { font-weight: 400; font-size: 0.82rem; color: #DCE3CF; }
.regalo-pie { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; margin-top: 0.2rem; }
.regalo-copiar {
  display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px;
  font: 600 0.85rem var(--font-ui, sans-serif); color: #F1DB8A; cursor: pointer;
  background: rgba(36, 43, 23, 0.28); border: 0; box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.55);
  transition: background-color 200ms ease, color 200ms ease, scale 160ms var(--ease-out);
}
.regalo-copiar.copiado { background: #D4AF37; color: #2C2C2C; box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .regalo-copiar:hover { background: #D4AF37; color: #2C2C2C; } }

/* Botón para guardar en el calendario */
.premium-calendario { display: flex; justify-content: center; margin-top: 1.6rem; }
.premium-calendario button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; cursor: pointer;
  font: 600 0.82rem var(--font-ui, sans-serif); letter-spacing: 0.08em; text-transform: uppercase; color: #47522F;
  background: transparent; border: 0; box-shadow: inset 0 0 0 1px rgba(71, 82, 47, 0.45);
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.premium-calendario button svg { color: #B8962E; }
@media (hover: hover) and (pointer: fine) { .premium-calendario button:hover { background: #47522F; color: #EEF2E8; box-shadow: none; } .premium-calendario button:hover svg { color: #E6C65A; } }

/* Lista de regalos (Casa Cuesta) */
.regalo-lista {
  max-width: 520px; margin: 1.15rem auto 0; padding: 1.7rem 1.4rem 1.6rem; text-align: center; border-radius: 18px; color: #EEF2E8;
  background: linear-gradient(150deg, #6B784C 0%, #54603A 48%, #424C2B 100%);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.42), 0 22px 44px -22px rgba(0, 0, 0, 0.55);
}
.regalo-lista-tienda { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: #E6C65A; margin: 0; }
.regalo-lista-texto { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.3rem, 5vw, 1.6rem); line-height: 1.25; max-width: 28ch; margin: 0.6rem auto 0; text-wrap: balance; }
.regalo-lista-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; margin-top: 1.25rem; min-height: 48px; padding: 0 1.7rem; border-radius: 999px; background: #D4AF37; color: #2C2C2C; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: transform 160ms ease, background-color 200ms; }
.regalo-lista-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .regalo-lista-btn:hover { background: #E6C65A; } }
