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

        :root {
            --ink:       #1a1612;
            --ink-soft:  #5c5045;
            --ink-faint: #9b8e83;
            --parchment: #faf7f2;
            --warm-line: #e8dfd4;
            --gold:      #c4903a;
            --gold-deep: #9c6e25;
            --gold-light:#f5e4c0;
            --green:     #2d5a3d;
            --green-soft:#dfeee4;
            --red-soft:  #fde8e8;
            --red:       #c0392b;
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: 'DM Sans', sans-serif;
            background: var(--parchment);
            color: var(--ink);
            min-height: 100vh;
        }

        /* ─── GRAIN OVERLAY ─── */
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 0;
            opacity: 0.025;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
        }

        /* ─── HEADER ─── */
        header {
            position: relative;
            overflow: hidden;
            background: var(--ink);
            color: white;
            text-align: center;
            padding: 2rem 1.5rem 1.5rem;
        }

        header::after {
            content: '';
            position: absolute;
            inset: 0;
            background: 
                radial-gradient(ellipse 80% 60% at 50% 120%, rgba(196,144,58,0.18) 0%, transparent 70%),
                radial-gradient(ellipse 50% 40% at 80% -10%, rgba(196,144,58,0.08) 0%, transparent 60%);
            pointer-events: none;
        }

        .cross-watermark {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 18rem;
            opacity: 0.03;
            pointer-events: none;
            line-height: 1;
            user-select: none;
        }

        .church-eyebrow {
            font-family: 'DM Sans', sans-serif;
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.3em;
            text-transform: uppercase;
            color: var(--gold);
            margin-bottom: 0.5rem;
            position: relative;
            z-index: 1;
        }

        .church-name {
            font-family: 'Cormorant Garamond', serif;
            font-size: clamp(2.8rem, 8vw, 5rem);
            font-weight: 700;
            line-height: 0.95;
            color: #fff;
            position: relative;
            z-index: 1;
            letter-spacing: -0.01em;
        }

        .church-name em {
            font-style: italic;
            color: var(--gold);
        }

        .church-tagline {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.15rem;
            font-style: italic;
            color: rgba(255,255,255,0.55);
            margin-top: 0.5rem;
            position: relative;
            z-index: 1;
            font-weight: 400;
        }

        .header-divider {
            width: 48px;
            height: 1px;
            background: var(--gold);
            margin: 0.75rem auto;
            position: relative;
            z-index: 1;
        }

        .header-logo {
            width: 64px;
            height: 64px;
            margin: 0 auto 0.75rem;
            position: relative;
            z-index: 2;
            display: block;
            filter: drop-shadow(0 2px 12px rgba(196,144,58,0.35));
        }

        /* ─── SCHEDULE RIBBON ─── */
        .ribbon {
            background: var(--gold);
            color: var(--ink);
            text-align: center;
            padding: 0.55rem 1rem;
            font-size: 0.78rem;
            font-weight: 600;
            letter-spacing: 0.04em;
        }

        /* ─── MAIN LAYOUT ─── */
        .page-wrap {
            max-width: 680px;
            margin: 0 auto;
            padding: 3rem 1.5rem 5rem;
        }

        /* ─── QUICK ACTIONS ─── */
        .quick-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.75rem;
            margin-bottom: 3rem;
        }

        .btn-quick {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.85rem 1rem;
            border-radius: 14px;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.92rem;
            font-weight: 600;
            text-decoration: none;
            border: none;
            cursor: pointer;
            transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
        }

        .btn-quick:hover {
            transform: translateY(-2px);
            filter: brightness(1.06);
            box-shadow: 0 8px 20px rgba(0,0,0,0.12);
        }

        .btn-quick svg { flex-shrink: 0; }

        .btn-wa {
            background: #1fba57;
            color: white;
            box-shadow: 0 2px 8px rgba(31,186,87,0.2);
        }

        .btn-map {
            background: white;
            color: var(--ink);
            border: 1.5px solid var(--warm-line);
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        /* ─── SECTION HEADING ─── */
        .section-heading {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.6rem;
            font-weight: 600;
            color: var(--ink);
            margin-bottom: 0.3rem;
        }

        .section-sub {
            font-size: 0.85rem;
            color: var(--ink-faint);
            margin-bottom: 1.5rem;
        }

        /* ─── FORM CARD ─── */
        .form-card {
            background: white;
            border: 1px solid var(--warm-line);
            border-radius: 24px;
            padding: 2rem;
            box-shadow: 0 4px 32px rgba(26,22,18,0.06), 0 1px 4px rgba(26,22,18,0.04);
        }

        .field-group { margin-bottom: 1.4rem; }

        label {
            display: block;
            font-size: 0.8rem;
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: var(--ink-soft);
            margin-bottom: 0.45rem;
        }

        label .optional {
            font-weight: 400;
            text-transform: none;
            letter-spacing: 0;
            color: var(--ink-faint);
            font-size: 0.75rem;
        }

        input[type="text"],
        input[type="tel"],
        textarea,
        select {
            width: 100%;
            background: var(--parchment);
            border: 1.5px solid var(--warm-line);
            border-radius: 12px;
            padding: 0.8rem 1rem;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.95rem;
            color: var(--ink);
            outline: none;
            transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
            resize: vertical;
            appearance: none;
        }

        input::placeholder, textarea::placeholder { color: var(--ink-faint); }

        input:focus, textarea:focus, select:focus {
            border-color: var(--gold);
            background: white;
            box-shadow: 0 0 0 3px rgba(196,144,58,0.12);
        }

        input.invalid, textarea.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,57,43,0.1); }

        .field-error {
            font-size: 0.78rem;
            color: var(--red);
            margin-top: 0.35rem;
            min-height: 1em;
            display: none;
        }
        .field-error.visible { display: block; }

        /* ─── VISITA TOGGLE ─── */
        .visita-toggle {
            display: flex;
            align-items: flex-start;
            gap: 0.85rem;
            background: var(--gold-light);
            border: 1.5px solid #e8cc8a;
            border-radius: 16px;
            padding: 1rem 1.1rem;
            cursor: pointer;
            transition: background 0.2s, border-color 0.2s;
            margin-bottom: 1.4rem;
        }

        .visita-toggle:hover { background: #f0d9a0; border-color: var(--gold); }

        .visita-toggle input[type="checkbox"] {
            width: 18px;
            height: 18px;
            border-radius: 5px;
            border: 1.5px solid var(--gold);
            background: white;
            cursor: pointer;
            accent-color: var(--gold-deep);
            margin-top: 1px;
            flex-shrink: 0;
        }

        .visita-toggle-text strong {
            display: block;
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--ink);
            margin-bottom: 0.15rem;
        }

        .visita-toggle-text span {
            font-size: 0.8rem;
            color: var(--ink-soft);
        }

        /* ─── CONDITIONAL FIELDS ─── */
        .visita-fields {
            overflow: hidden;
            max-height: 0;
            opacity: 0;
            transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s;
        }

        .visita-fields.open {
            max-height: 300px;
            opacity: 1;
        }

        /* ─── DIVIDER ─── */
        .field-divider {
            border: none;
            border-top: 1px solid var(--warm-line);
            margin: 1.6rem 0;
        }

        /* ─── SUBMIT BUTTON ─── */
        .btn-submit {
            width: 100%;
            padding: 1rem;
            background: var(--ink);
            color: white;
            border: none;
            border-radius: 14px;
            font-family: 'DM Sans', sans-serif;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.6rem;
            transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
            letter-spacing: 0.01em;
        }

        .btn-submit:hover {
            background: #2d2218;
            transform: translateY(-1px);
            box-shadow: 0 8px 20px rgba(26,22,18,0.2);
        }

        .btn-submit:active { transform: translateY(0); }

        .btn-submit.loading { opacity: 0.7; pointer-events: none; }

        .spinner {
            width: 18px; height: 18px;
            border: 2px solid rgba(255,255,255,0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
            display: none;
        }
        .btn-submit.loading .spinner { display: block; }
        .btn-submit.loading .btn-label { display: none; }

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

        /* ─── TRUST STRIP ─── */
        .trust-strip {
            display: flex;
            justify-content: center;
            gap: 2rem;
            flex-wrap: wrap;
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--warm-line);
        }

        .trust-item {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.78rem;
            color: var(--ink-faint);
        }

        .trust-item svg { flex-shrink: 0; }

        /* ─── VERSE BLOCK ─── */
        .verse-block {
            margin: 2.5rem 0;
            padding: 1.4rem 1.6rem;
            border-left: 3px solid var(--gold);
            background: white;
            border-radius: 0 14px 14px 0;
        }

        .verse-text {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.2rem;
            font-style: italic;
            color: var(--ink);
            line-height: 1.55;
            margin-bottom: 0.4rem;
        }

        .verse-ref {
            font-size: 0.78rem;
            font-weight: 600;
            color: var(--gold-deep);
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        /* ─── FOOTER ─── */
        footer {
            background: var(--ink);
            color: rgba(255,255,255,0.45);
            text-align: center;
            padding: 2.5rem 1.5rem;
        }

        .footer-name {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.3rem;
            color: rgba(255,255,255,0.85);
            margin-bottom: 0.4rem;
            font-style: italic;
        }

        .footer-schedule {
            font-size: 0.8rem;
            margin-bottom: 1rem;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
        }

        .footer-links a {
            font-size: 0.75rem;
            color: rgba(255,255,255,0.3);
            text-decoration: none;
            transition: color 0.2s;
        }

        .footer-links a:hover { color: var(--gold); }

        /* ─── SUCCESS STATE ─── */
        .success-state {
            display: none;
            text-align: center;
            padding: 2rem 1rem;
        }

        .success-icon {
            width: 64px; height: 64px;
            background: var(--green-soft);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            margin: 0 auto 1.2rem;
        }

        .success-title {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.7rem;
            font-weight: 700;
            color: var(--ink);
            margin-bottom: 0.4rem;
        }

        .success-sub {
            font-size: 0.88rem;
            color: var(--ink-faint);
            max-width: 340px;
            margin: 0 auto;
        }

        /* ─── RESPONSIVE ─── */
        @media (max-width: 480px) {
            header { padding: 1.25rem 1rem 1rem; }
            .header-logo { width: 48px; height: 48px; margin-bottom: 0.5rem; }
            .church-eyebrow { font-size: 0.65rem; margin-bottom: 0.35rem; }
            .church-name { font-size: 2.2rem; }
            .church-tagline { font-size: 0.95rem; margin-top: 0.35rem; }
            .header-divider { margin: 0.5rem auto; }
            .page-wrap { padding: 1.5rem 1rem 4rem; }
            .form-card { padding: 1.5rem 1.25rem; }
            .quick-actions { grid-template-columns: 1fr; }
            .trust-strip { gap: 1rem; }
        }
/* ─── PÁGINAS LEGALES ─── */
.legal-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.legal-card {
    background: white;
    border: 1px solid var(--warm-line);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 32px rgba(26,22,18,0.06);
}

.legal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.legal-updated {
    font-size: 0.8rem;
    color: var(--ink-faint);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--warm-line);
}

.legal-card h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
    margin: 2rem 0 0.6rem;
}

.legal-card p {
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.75;
    margin-bottom: 0.5rem;
}

.legal-card ul {
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
}

.legal-card li {
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.75;
}

.highlight-box {
    background: var(--gold-light);
    border: 1px solid #e8cc8a;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    margin: 1.5rem 0;
}

.highlight-box p {
    margin: 0;
    color: var(--ink);
    font-weight: 500;
}

.btn-volver {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 0.85rem 2rem;
    background: var(--ink);
    color: white;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.15s;
}

.btn-volver:hover {
    background: #2d2218;
    transform: translateY(-1px);
    color: white;
}

/* Gracias page */
.gracias-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.gracias-card {
    background: white;
    border: 1px solid var(--warm-line);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 4px 32px rgba(26,22,18,0.06);
}

.gracias-icon {
    width: 72px;
    height: 72px;
    background: var(--green-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.gracias-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.gracias-text {
    font-size: 0.95rem;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.verse-mini {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--ink-faint);
    border-top: 1px solid var(--warm-line);
    padding-top: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 480px) {
    .legal-wrap { padding: 2rem 1rem 4rem; }
    .legal-card { padding: 1.5rem 1.25rem; }
    .gracias-card { padding: 2rem 1.25rem; }
}

/* ─── REDES SOCIALES ─── */
.social-header {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.social-header a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.social-header a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: white;
    transform: translateY(-2px);
}

.social-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.social-footer a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: white;
    transform: translateY(-2px);
}

/* ─── NAVEGACIÓN ─── */
.navbar {
    background: white;
    border-bottom: 1px solid var(--warm-line);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(26,22,18,0.06);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 800px;
    justify-content: center;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.7rem 0.9rem;
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.nav-links a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.nav-links a svg {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .navbar { padding: 0 0.5rem; }
    .nav-links a { padding: 0.65rem 0.6rem; font-size: 0.65rem; }
}
