/* ============================================================
   SoportePress — Landing
   Diseño claro, sobrio y moderno. Colores del sistema.
   ============================================================ */

:root {
    /* Marca */
    --navy: #0A2E52;
    --navy-deep: #072139;
    --blue: #187FD9;
    --blue-600: #1668b8;
    --blue-050: #eef6fe;
    --gold: #EBBF00;
    --gold-600: #cca600;

    /* Neutros */
    --ink: #0f2033;
    --text: #33475b;
    --muted: #64768a;
    --surface: #ffffff;
    --surface-alt: #f4f8fc;
    --surface-alt2: #eaf1f8;
    --border: #e2e9f1;
    --border-strong: #cfdae6;

    /* Aliados */
    --factura: #017DFC;
    --yiska: #7bb026;
    --derecho: #8bc53f;

    --radius: 18px;
    --radius-lg: 24px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(10, 46, 82, .06), 0 1px 3px rgba(10, 46, 82, .05);
    --shadow: 0 10px 30px -12px rgba(10, 46, 82, .18);
    --shadow-lg: 0 30px 60px -20px rgba(10, 46, 82, .28);
    --container: 1160px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--surface);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: var(--blue-600); text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--blue-600); background: var(--blue-050);
    border: 1px solid #d5e8fb; padding: 7px 14px; border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(235, 191, 0, .18); }

.grad { color: var(--blue); }
.gold { color: var(--gold-600); }

/* -------- Buttons -------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: inherit; font-weight: 700; font-size: 15.5px; line-height: 1;
    padding: 14px 24px; border-radius: 12px; border: 1px solid transparent;
    cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 22px -8px rgba(24, 127, 217, .6); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(24, 127, 217, .65); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-600); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-light:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.btn-sm { padding: 11px 18px; font-size: 14.5px; border-radius: 10px; }

/* -------- Header -------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled { border-color: var(--border); box-shadow: 0 6px 24px -18px rgba(10, 46, 82, .5); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-inline: auto; }
.nav-links a { color: var(--text); font-weight: 600; font-size: 15px; position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--blue); transition: width .25s var(--ease); border-radius: 2px; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* -------- Hero -------- */
.hero { position: relative; padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 84px); overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(60% 55% at 82% 0%, rgba(24, 127, 217, .12), transparent 60%),
        radial-gradient(50% 50% at 8% 12%, rgba(235, 191, 0, .10), transparent 55%),
        linear-gradient(180deg, #fbfdff 0%, #ffffff 60%);
}
.hero-ec { position: absolute; right: -70px; top: -30px; width: min(40vw, 480px); opacity: .05; z-index: -1; pointer-events: none; }
.hero-inner { max-width: 820px; }
.hero h1 { font-size: clamp(35px, 6.2vw, 62px); font-weight: 900; margin-top: 20px; }
.hero .lead { font-size: clamp(17px, 2.2vw, 20.5px); color: var(--muted); max-width: 640px; margin-top: 6px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 8px; margin-top: 34px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text);
    background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 15px; box-shadow: var(--shadow-sm);
}
.chip svg { width: 15px; height: 15px; color: var(--blue); }

/* -------- Sections -------- */
section { position: relative; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--surface-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto clamp(38px, 5vw, 56px); text-align: center; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 900; }
.section-head p { font-size: clamp(16px, 2vw, 18.5px); color: var(--muted); margin-top: 4px; }

/* -------- Pilares -------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px;
    box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.pillar .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-050); color: var(--blue); margin-bottom: 16px; }
.pillar .ico svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.pillar p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* -------- SoportePress feature -------- */
.feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.feature h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; }
.feature .lead { color: var(--muted); font-size: 18px; margin-bottom: 22px; }
.feature-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 13px; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; color: var(--text); }
.feature-list .tick { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 7px; background: rgba(24, 127, 217, .12); color: var(--blue); display: grid; place-items: center; margin-top: 2px; }
.feature-list .tick svg { width: 14px; height: 14px; }
.feature-list li b { color: var(--ink); font-weight: 700; }

.feature-card {
    position: relative; border-radius: var(--radius-lg); padding: 34px;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: #fff; box-shadow: var(--shadow-lg); overflow: hidden;
}
.feature-card::after { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -120px; background: radial-gradient(circle, rgba(24, 127, 217, .45), transparent 68%); }
.feature-card .fc-logo { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .96; margin-bottom: 26px; position: relative; }
.feature-card .fc-metric { position: relative; }
.feature-card .fc-metric + .fc-metric { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.feature-card .fc-metric h4 { color: #fff; font-size: 16px; font-weight: 700; margin: 0 0 3px; display: flex; align-items: center; gap: 9px; }
.feature-card .fc-metric h4 svg { width: 18px; height: 18px; color: var(--gold); }
.feature-card .fc-metric p { color: #b9cbdd; font-size: 14px; margin: 0; }

/* -------- Aliados -------- */
.allies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ally {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.ally:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.ally-top { border-top: 4px solid var(--c, var(--blue)); }
.ally-plate { height: 128px; display: grid; place-items: center; padding: 26px 30px; background: var(--plate, var(--surface-alt)); border-bottom: 1px solid var(--border); }
.ally-plate img { max-height: 56px; width: auto; }
.ally-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.ally-tag { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c, var(--blue)); margin-bottom: 8px; }
.ally-body h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.ally-body p { font-size: 15px; color: var(--muted); margin: 0 0 22px; flex: 1; }
.ally-link {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px;
    color: var(--c, var(--blue)); align-self: flex-start; border-radius: 8px; transition: gap .2s var(--ease);
}
.ally-link:hover { gap: 12px; }
.ally-link svg { width: 17px; height: 17px; }

/* -------- CTA band -------- */
.cta-band {
    position: relative; overflow: hidden; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--navy) 0%, #0d3b6b 55%, var(--blue-600) 130%);
    color: #fff; padding: clamp(40px, 6vw, 68px) clamp(28px, 5vw, 64px); text-align: center;
    box-shadow: var(--shadow-lg);
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 100% 0%, rgba(235, 191, 0, .16), transparent 55%); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 4vw, 40px); font-weight: 900; position: relative; }
.cta-band p { color: #cfe0f1; font-size: clamp(16px, 2vw, 19px); max-width: 620px; margin: 10px auto 30px; position: relative; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; position: relative; }

/* -------- Footer -------- */
.site-footer { background: var(--navy-deep); color: #a9c0d6; padding: 60px 0 30px; position: relative; overflow: hidden; }
.footer-ec { position: absolute; left: 50%; bottom: -40px; transform: translateX(-50%); width: 420px; opacity: .04; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; position: relative; }
.footer-brand img { height: 32px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 16px; }
.footer-brand p { font-size: 14.5px; color: #90a9c1; max-width: 340px; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; color: #a9c0d6; font-size: 14.5px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); position: relative; }
.footer-bottom p { margin: 0; font-size: 13.5px; color: #8ba4bc; }
.footer-bottom .flag { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; }

/* -------- Reveal animation --------
   Solo se oculta si hay JS (clase .js en <html>). Sin JS el contenido
   permanece visible: nunca se queda una sección en opacity:0. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* -------- Mobile nav -------- */
.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
    .pillars { grid-template-columns: repeat(2, 1fr); }
    .allies { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
    .feature { grid-template-columns: 1fr; }
    .feature-card { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    body { font-size: 16px; }
    .nav-links { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav.open .nav-links {
        display: flex; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column;
        gap: 4px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 14px 22px 20px; margin: 0;
    }
    .nav.open .nav-links a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--surface-alt); }
    .nav.open .nav-links a::after { display: none; }
    .nav-cta .btn span.hide-sm { display: none; }
    .hero-ec { display: none; }
    .hero-actions .btn { flex: 1 1 auto; }
    .pillars { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal, .reveal { opacity: 1 !important; transform: none !important; transition: none; }
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
