/* ── Variables ── */
:root {
    --verde: #2c4a1e;
    --verde-med: #3d6b2a;
    --dorado: #b8956a;
    --dorado-claro: #d4b48a;
    --crema: #f5ede3;
    --crema-osc: #ede0cf;
    --beige: #e8d9c5;
    --texto: #3a2e24;
    --texto-suave: #7a6a5a;
    --borde: rgba(184, 149, 106, .30);

    --script: 'Great Vibes', cursive;
    --serif: 'Libre Baskerville', serif;
    --cuerpo: 'Lora', serif;
    --sans: 'Jost', sans-serif;
}

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

/* ── Base ── */
html,
body {
    height: 100%;
}

body {
    font-family: var(--cuerpo);
    background: var(--crema);
    color: var(--texto);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--crema);
}

::-webkit-scrollbar-thumb {
    background: var(--dorado-claro);
    border-radius: 10px;
}

/* ── Fondo con textura sutil ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(212, 180, 138, .13) 0%, transparent 65%),
        radial-gradient(ellipse 60% 50% at 80% 85%, rgba(44, 74, 30, .07) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ── Layout centrado ── */
.nf-wrapper {
    position: relative;
    z-index: 1;
    width: min(92vw, 500px);
    padding: clamp(36px, 8vw, 64px) clamp(24px, 6vw, 52px) clamp(40px, 9vw, 72px);
    text-align: center;
    animation: nfFadeUp .9s cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes nfFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Marco decorativo de esquinas ── */
.nf-corner {
    position: absolute;
    width: clamp(38px, 10vw, 58px);
    height: clamp(38px, 10vw, 58px);
    pointer-events: none;
}

.nf-corner--tl {
    top: 0;
    left: 0;
}

.nf-corner--tr {
    top: 0;
    right: 0;
    transform: scaleX(-1);
}

.nf-corner--bl {
    bottom: 0;
    left: 0;
    transform: scaleY(-1);
}

.nf-corner--br {
    bottom: 0;
    right: 0;
    transform: scale(-1);
}

/* ── Anillos decorativos (SVG inline) ── */
.nf-rings-wrap {
    margin: 0 auto 20px;
    width: clamp(64px, 18vw, 86px);
    opacity: 0;
    animation: nfFadeUp .9s cubic-bezier(.4, 0, .2, 1) .15s both;
}

.nf-rings-wrap svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Nombres de los novios ── */
.nf-nombres {
    font-family: var(--script);
    font-size: clamp(2.2rem, 9vw, 3.2rem);
    color: var(--dorado);
    line-height: 1.1;
    letter-spacing: .01em;
    text-shadow: 0 2px 14px rgba(184, 149, 106, .22);
    opacity: 0;
    animation: nfFadeUp .9s cubic-bezier(.4, 0, .2, 1) .25s both;
}

/* ── Separador dorado ── */
.divider-oro {
    width: 48px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--dorado), transparent);
    margin: 14px auto;
    opacity: 0;
    animation: nfFadeUp .9s cubic-bezier(.4, 0, .2, 1) .35s both;
}

/* ── Fecha ── */
.nf-fecha {
    font-family: var(--sans);
    font-size: clamp(.58rem, 2.5vw, .68rem);
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--texto-suave);
    opacity: 0;
    animation: nfFadeUp .9s cubic-bezier(.4, 0, .2, 1) .40s both;
}

/* ── Línea divisora central ── */
.nf-rule {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--borde) 30%, var(--borde) 70%, transparent);
    margin: 26px auto;
    opacity: 0;
    animation: nfFadeUp .9s cubic-bezier(.4, 0, .2, 1) .48s both;
}

/* ── Icono de aviso (SVG carta cerrada) ── */
.nf-icon-wrap {
    margin: 0 auto 18px;
    width: clamp(52px, 14vw, 68px);
    opacity: 0;
    animation: nfFadeUp .9s cubic-bezier(.4, 0, .2, 1) .55s both;
}

.nf-icon-wrap svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Mensaje principal ── */
.nf-titulo {
    font-family: var(--serif);
    font-size: clamp(1.15rem, 4.5vw, 1.45rem);
    font-weight: 400;
    color: var(--verde);
    line-height: 1.5;
    margin-bottom: 14px;
    opacity: 0;
    animation: nfFadeUp .9s cubic-bezier(.4, 0, .2, 1) .62s both;
}

/* ── Mensaje secundario ── */
.nf-subtitulo {
    font-family: var(--cuerpo);
    font-size: clamp(.9rem, 3.5vw, 1.05rem);
    font-style: italic;
    color: var(--texto-suave);
    line-height: 1.75;
    opacity: 0;
    animation: nfFadeUp .9s cubic-bezier(.4, 0, .2, 1) .72s both;
}

/* ── Botón WhatsApp ── */
.nf-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid rgba(184, 149, 106, .5);
    border-radius: 50px;
    color: var(--dorado);
    font-family: var(--sans);
    font-size: clamp(.68rem, 2.6vw, .78rem);
    font-weight: 400;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
    opacity: 0;
    animation: nfFadeUp .9s cubic-bezier(.4, 0, .2, 1) .80s both;
}

.nf-whatsapp-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    transition: fill .25s ease;
}

.nf-whatsapp-btn:hover {
    background: var(--dorado);
    border-color: var(--dorado);
    color: var(--crema);
}

.nf-whatsapp-btn:hover svg path {
    fill: var(--crema);
}

/* ── Pie decorativo ── */
.nf-pie {
    margin-top: 32px;
    opacity: 0;
    animation: nfFadeUp .9s cubic-bezier(.4, 0, .2, 1) .85s both;
}

.nf-pie-sep {
    width: 30px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--dorado-claro), transparent);
    margin: 0 auto 14px;
}

.nf-pie-txt {
    font-family: var(--sans);
    font-size: clamp(.56rem, 2.2vw, .64rem);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--dorado);
    opacity: .75;
}

/* ── Flores decorativas de esquina ── */
.nf-flor {
    position: fixed;
    pointer-events: none;
    user-select: none;
    opacity: .18;
    animation: nfFadeUp 1.2s cubic-bezier(.4, 0, .2, 1) .3s both;
}

.nf-flor--tl {
    top: -10px;
    left: -10px;
    width: clamp(120px, 28vw, 220px);
}

.nf-flor--br {
    bottom: -10px;
    right: -10px;
    width: clamp(100px, 22vw, 180px);
    transform: rotate(180deg);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .nf-wrapper,
    .nf-rings-wrap,
    .nf-nombres,
    .divider-oro,
    .nf-fecha,
    .nf-rule,
    .nf-icon-wrap,
    .nf-titulo,
    .nf-subtitulo,
    .nf-whatsapp-btn,
    .nf-pie,
    .nf-flor {
        animation: none !important;
        opacity: 1 !important;
    }
}

/* ── Desktop ── */
@media (min-width: 640px) {
    .nf-flor--tl {
        opacity: .14;
    }

    .nf-flor--br {
        opacity: .14;
    }
}