/*
 * Católicamente — estilos del sitio (landing, páginas legales y eliminar
 * cuenta). Mismos colores que la app (AppColors): azules claros, naranja
 * de acento y tinta; el azul profundo es el fondo del ícono.
 */

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../fonts/Montserrat-latin.woff2") format("woff2");
}

:root {
    --navy: #04345B;
    --navy-deep: #021E36;
    --orange: #D97809;
    --orange-hover: #B86206;
    --bg: #F9FAFC;
    --surface: #FFFFFF;
    --tile: #E8ECF4;
    --line: #D7DEEB;
    --ink: #292929;
    --muted: #6B6B6B;
    --on-navy: #FFFFFF;
    --on-navy-muted: #C6D0E3;
    --icon: #8A9ECB;
    --error: #C62828;
    --error-bg: #FDECEC;
    --ok-bg: #E8F5E9;
    --radius: 20px;
    --shadow: 0 12px 40px rgba(4, 52, 91, .10);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #11151C;
        --surface: #1A202B;
        --tile: #262E3C;
        --line: #3A4559;
        --ink: #E8ECF4;
        --muted: #9DABC6;
        --icon: #8295BC;
        --error: #FF8A80;
        --error-bg: #3A1F22;
        --ok-bg: #1E3324;
        --shadow: 0 12px 40px rgba(0, 0, 0, .35);
        color-scheme: dark;
    }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Botones: compactos y del ancho del texto, como en la app. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    background: var(--orange);
    color: #FFFFFF;
    transition: background .15s;
}
.btn:hover { background: var(--orange-hover); }
.btn:focus-visible { outline: 3px solid var(--on-navy-muted); outline-offset: 2px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--tile); }
.btn-danger { background: var(--error); }
.btn-danger:hover { background: #A31F1F; }

/* Cabecera */
.site-header { background: var(--navy); color: var(--on-navy); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img.emblem { width: 40px; height: 37px; }
.brand img.wordmark { width: 128px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; }
.site-nav a { text-decoration: none; color: var(--on-navy-muted); }
.site-nav a:hover { color: var(--on-navy); }
.site-nav .btn { color: #FFFFFF; min-height: 38px; padding: 0 18px; font-size: 14px; }
@media (max-width: 720px) {
    .site-nav a:not(.btn) { display: none; }
}

/* Portada */
.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 75% 40%, #0B4A7E 0, var(--navy) 38%, var(--navy-deep) 100%);
    color: var(--on-navy);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.08; font-weight: 900; margin: 0 0 20px; letter-spacing: -.01em; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--on-navy-muted); margin: 0 0 30px; max-width: 34em; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-muted); margin-bottom: 18px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 20px 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 0 0 1px rgba(198, 208, 227, .45);
    color: var(--on-navy);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.1;
    text-align: left;
    white-space: nowrap;
    transition: background .15s;
}
.store-link:hover { background: rgba(255, 255, 255, .16); }
.store-link:focus-visible { outline: 3px solid var(--on-navy-muted); outline-offset: 2px; }
.store-link svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.store-link small { display: block; font-size: 11px; font-weight: 500; color: var(--on-navy-muted); }
.cta-band .cta-row { justify-content: center; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .glow { position: absolute; top: -40px; left: 50%; width: 220px; transform: translateX(-50%); opacity: .95; filter: drop-shadow(0 0 40px rgba(255, 196, 92, .35)); }
.hero-visual .phone { position: relative; margin-top: 120px; }
@media (max-width: 860px) {
    .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
    .hero p.lead { margin-left: auto; margin-right: auto; }
    .cta-row { justify-content: center; }
    .hero-visual .phone { margin-top: 110px; }
}

/* Teléfono con una captura de la app */
.phone {
    width: min(280px, 72vw);
    aspect-ratio: 780 / 1688;
    padding: 9px;
    border-radius: 38px;
    background: #0E1116;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35), inset 0 0 0 2px #2A2F38;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }

/* Secciones */
section.block { padding: 80px 0; }
section.block.alt { background: var(--surface); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; font-weight: 900; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--tile); border-radius: var(--radius); padding: 26px 24px; }
section.block.alt .feature { background: var(--bg); }
.feature h3 { font-size: 18px; margin: 14px 0 6px; font-weight: 700; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.ico {
    display: inline-block;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--tile);
    position: relative;
}
.ico::after {
    content: "";
    position: absolute;
    inset: 11px;
    background: var(--orange);
    -webkit-mask: var(--src) center / contain no-repeat;
    mask: var(--src) center / contain no-repeat;
}

/* Galería de capturas */
.gallery { display: flex; gap: 28px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; justify-content: safe center; }
.gallery figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.gallery .phone { width: 220px; box-shadow: var(--shadow), inset 0 0 0 2px #2A2F38; }
.gallery figcaption { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* Rosario */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; font-weight: 900; margin: 0 0 14px; }
.split p { color: var(--muted); font-size: 17px; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: ""; flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.mysteries { background: var(--surface); border: 1px solid var(--tile); border-radius: var(--radius); padding: 10px 24px; box-shadow: var(--shadow); }
section.block.alt .mysteries { background: var(--bg); }
.mystery { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--tile); }
.mystery:last-child { border-bottom: 0; }
.mystery strong { font-weight: 700; }
.mystery span { color: var(--muted); text-align: right; }

/* Próximamente */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip { padding: 10px 18px; border-radius: 999px; background: var(--tile); font-weight: 600; font-size: 15px; }

/* Llamada final */
.cta-band { background: var(--navy); color: var(--on-navy); text-align: center; padding: 72px 0; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; margin: 0 0 10px; }
.cta-band p { color: var(--on-navy-muted); margin: 0 0 26px; font-size: 17px; }

/* Pie */
.site-footer { padding: 44px 0 36px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--tile); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-end; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 10px; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.made { text-align: right; }
.made .heart { color: #E53935; }
.made img { height: 26px; width: auto; margin: 8px 0 0 auto; }
.made .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
    .made .logo-light { display: none; }
    .made .logo-dark { display: block; }
}
@media (max-width: 640px) {
    .site-footer .wrap { flex-direction: column; align-items: flex-start; }
    .made { text-align: left; }
    .made img { margin-left: 0; }
}

/* Páginas de texto (términos, privacidad) */
.page-title { background: var(--navy); color: var(--on-navy); padding: 44px 0 48px; }
.page-title h1 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 900; line-height: 1.15; margin: 0 0 8px; }
.page-title p { margin: 0; color: var(--on-navy-muted); }
.prose { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.prose h2 { font-size: 21px; font-weight: 800; margin: 40px 0 10px; line-height: 1.3; }
.prose h3 { font-size: 17px; font-weight: 700; margin: 24px 0 6px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .muted { color: var(--muted); }
.prose a { font-weight: 700; }
.toc { background: var(--surface); border: 1px solid var(--tile); border-radius: 16px; padding: 18px 22px; margin-bottom: 8px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; font-size: 15px; }
.toc a { font-weight: 600; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* Formularios (eliminar cuenta) */
.card { background: var(--surface); border: 1px solid var(--tile); border-radius: var(--radius); padding: 28px 24px; margin: 24px 0; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input[type=email], .field input[type=text], .field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font: inherit;
    color: var(--ink);
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: 14px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--icon); }
.field input.code { font-size: 26px; letter-spacing: .4em; text-align: center; font-weight: 700; max-width: 260px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.field.has-error input { border-color: var(--error); }
.field .error { color: var(--error); font-size: 13px; margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 22px; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--error); }
.notice { padding: 14px 18px; border-radius: 14px; margin: 0 0 20px; font-size: 15px; }
.notice.error { background: var(--error-bg); color: var(--error); }
.notice.ok { background: var(--ok-bg); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.card h2 { margin-top: 0; }
.card .resend { margin-top: 18px; }
.btn { white-space: nowrap; }
@media (max-width: 420px) {
    .brand img.emblem { width: 34px; height: 31px; }
    .brand img.wordmark { width: 104px; }
    .site-nav .btn { padding: 0 14px; }
}
