/* =========================================================
   1. VARIABLES DE MARCA
   ========================================================= */
:root {
    --blue:#003cb5;
    --blue-2:#004aad;
    --blue-3:#0b58d8;
    --orange:#f47400;
    --orange-2:#ff6600;
    --ink:#10213c;
    --muted:#60708a;
    --line:#e8edf4;
    --soft:#f6f9fe;
    --white:#fff;
    --shadow:0 24px 70px rgba(25,55,110,.12);
    --radius:22px;
    --container:1180px
}

/* =========================================================
   2. RESET Y BASE GLOBAL
   ========================================================= */
* {
    box-sizing:border-box
}

html {
    scroll-behavior:smooth
}

body {
    margin:0;
    font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    color:var(--ink);
    background:#fff;
    line-height:1.6
}

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

a {
    color:inherit;
    text-decoration:none
}

.container {
    width:min(var(--container),calc(100% - 40px));
    margin:auto
}

.skip-link {
    position:fixed;
    left:-999px;
    top:12px;
    z-index:9999;
    background:#fff;
    padding:10px 14px;
    border-radius:8px
}

.skip-link:focus {
    left:12px
}

/* =========================================================
   3. ENCABEZADO Y NAVEGACIÓN
   ========================================================= */
.site-header {
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(16px);
    border-bottom:1px solid rgba(232,237,244,.75)
}


.nav-wrap {
    height: 118px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    width: 230px;
    height: 118px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
}

.brand img {
    width: 150px;
    height: auto;
    display: block;
    object-fit: contain;
    transform: none;
}

.main-nav {
    display:flex;
    align-items:center;
    gap:28px;
    font-weight:600;
    font-size:14px
}

.main-nav>a:not(.btn) {
    color:#42506a;
    transition:.2s
}

.main-nav>a:not(.btn):hover {
    color:var(--blue)
}

.nav-toggle {
    display:none;
    border:0;
    background:none;
    padding:8px
}

.nav-toggle span {
    display:block;
    width:25px;
    height:2px;
    background:#1b2c48;
    margin:5px
}

.btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:50px;
    padding:0 22px;
    border-radius:13px;
    font-weight:700;
    border:1px solid transparent;
    transition:.2s;
    cursor:pointer
}

.btn:hover {
    transform:translateY(-2px)
}

.btn-sm {
    min-height:42px;
    padding:0 17px
}

.btn-primary {
    background:linear-gradient(135deg,var(--blue),var(--blue-3));
    color:#fff;
    box-shadow:0 12px 30px rgba(0,60,181,.22)
}

.btn-secondary {
    background:#fff;
    color:var(--blue);
    border-color:#dfe7f4
}

.btn-outline {
    color:var(--blue)!important;
    border-color:#cddaf0;
    background:#fff
}

.btn-white {
    background:#fff;
    color:var(--blue)
}

.btn-full {
    width:100%;
    border:0
}

/* =========================================================
   4. HERO / PORTADA
   ========================================================= */
.hero {
    position:relative;
    overflow:hidden;
    padding:92px 0 90px;
    background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)
}

.hero-grid {
    display:grid;
    grid-template-columns:1.03fr .97fr;
    gap:60px;
    align-items:center
}

.hero-copy {
    position:relative;
    z-index:2
}

.eyebrow {
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:12px;
    letter-spacing:.12em;
    text-transform:uppercase;
    font-weight:800;
    color:var(--blue);
    margin-bottom:14px
}

.eyebrow:before {
    content:"";
    width:26px;
    height:2px;
    background:var(--orange)
}

h1,h2,h3,p {
    margin-top:0
}

h1 {
    font-size:clamp(42px,5vw,68px);
    line-height:1.03;
    letter-spacing:-.045em;
    margin-bottom:24px
}

h1 span {
    color:var(--blue)
}

.lead {
    font-size:19px;
    color:var(--muted);
    max-width:650px;
    margin-bottom:28px
}

.hero-actions {
    display:flex;
    gap:13px;
    flex-wrap:wrap
}

.trust-row {
    display:flex;
    gap:22px;
    flex-wrap:wrap;
    margin-top:24px;
    color:#55657e;
    font-size:13px
}

.trust-row i {
    font-style:normal;
    color:var(--orange);
    font-weight:800
}

.hero-glow {
    position:absolute;
    border-radius:999px;
    filter:blur(10px);
    opacity:.6
}

.hero-glow-a {
    width:420px;
    height:420px;
    background:radial-gradient(circle,rgba(0,60,181,.10),transparent 68%);
    right:-80px;
    top:30px
}

.hero-glow-b {
    width:360px;
    height:360px;
    background:radial-gradient(circle,rgba(244,116,0,.08),transparent 70%);
    left:35%;
    bottom:-150px
}

/* =========================================================
   5. MOCKUP DEL DASHBOARD
   ========================================================= */
.dashboard-shell {
    position:relative;
    background:#fff;
    border:1px solid #e6edf7;
    border-radius:26px;
    box-shadow:var(--shadow);
    overflow:hidden;
    transform:perspective(1200px) rotateY(-4deg) rotateX(2deg)
}

.dashboard-shell:after {
    content:"";
    position:absolute;
    inset:auto 12% -30px 12%;
    height:50px;
    background:rgba(0,60,181,.2);
    filter:blur(30px);
    z-index:-1
}

.dash-topbar {
    height:64px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 22px;
    border-bottom:1px solid #eef2f8
}

.dash-logo {
    font-size:14px;
    font-weight:800;
    color:var(--blue);
    display:flex;
    align-items:center;
    gap:9px
}

.dash-logo .dot {
    width:11px;
    height:11px;
    border-radius:3px;
    background:var(--orange);
    box-shadow:14px 0 0 var(--blue)
}

.dash-user {
    width:32px;
    height:32px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#edf3ff;
    color:var(--blue);
    font-size:11px;
    font-weight:800
}

.dash-body {
    display:grid;
    grid-template-columns:58px 1fr;
    min-height:420px
}

.dash-side {
    border-right:1px solid #eef2f8;
    padding-top:23px;
    display:flex;
    align-items:center;
    flex-direction:column;
    gap:20px
}

.dash-side span {
    width:20px;
    height:20px;
    border-radius:6px;
    background:#edf1f7
}

.dash-side .active {
    background:linear-gradient(135deg,var(--blue),var(--blue-3))
}

.dash-main {
    padding:25px
}

.dash-heading {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px
}

.dash-heading small {
    display:block;
    color:#8c99ac;
    font-size:10px
}

.dash-heading strong {
    display:block;
    font-size:16px
}

.dash-pill {
    font-size:10px;
    background:#eff4ff;
    color:var(--blue);
    padding:7px 10px;
    border-radius:999px
}

.metrics {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px
}

.metrics article {
    border:1px solid #edf1f6;
    border-radius:14px;
    padding:13px
}

.metrics small,.metrics em {
    display:block;
    font-size:9px;
    color:#8d99a9;
    font-style:normal
}

.metrics strong {
    font-size:22px;
    line-height:1.2;
    display:block;
    margin:5px 0;
    color:#182a45
}

.metrics em {
    color:#1a9a66
}

.dash-panels {
    display:grid;
    grid-template-columns:1.3fr .7fr;
    gap:12px;
    margin-top:13px
}

.chart-card,.status-card {
    border:1px solid #edf1f6;
    border-radius:15px;
    padding:14px;
    min-height:190px
}

.card-title {
    display:flex;
    justify-content:space-between;
    font-size:10px
}

.card-title span {
    color:#9aa5b4
}

.chart-bars {
    height:128px;
    display:flex;
    align-items:flex-end;
    gap:9px;
    padding:15px 3px 0
}

.chart-bars i {
    height:var(--h);
    flex:1;
    border-radius:5px 5px 2px 2px;
    background:linear-gradient(180deg,#6ea1ff,var(--blue));
    opacity:.9
}

.chart-bars i:nth-child(6) {
    background:linear-gradient(180deg,#ffb269,var(--orange))
}

.status-row {
    display:flex;
    justify-content:space-between;
    font-size:9px;
    margin-top:18px
}

.status-row span {
    color:#79879a
}

.progress {
    height:6px;
    background:#edf2f8;
    border-radius:999px;
    margin-top:6px;
    overflow:hidden
}

.progress i {
    display:block;
    height:100%;
    background:var(--blue);
    border-radius:inherit
}

.progress.orange i {
    background:var(--orange)
}

/* =========================================================
   6. FRANJA DE MARCA
   ========================================================= */
.logo-strip {
    background:var(--blue);
    color:#fff;
    padding:18px 0;
    text-align:center
}

.logo-strip p {
    margin:0;
    font-size:16px;
    letter-spacing:.03em
}

/* =========================================================
   7. SECCIONES GENERALES
   ========================================================= */
.section {
    padding:96px 0
}

.section-soft {
    background:var(--soft)
}

.two-col {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:78px;
    align-items:center
}

.section-copy h2,.section-head h2,.proof-card h2,.contact-copy h2,.cta-inner h2 {
    font-size:clamp(34px,4vw,50px);
    line-height:1.08;
    letter-spacing:-.035em;
    margin-bottom:18px
}

.section-copy p,.section-head p,.proof-card p,.contact-copy p {
    font-size:17px;
    color:var(--muted)
}

.section-head {
    text-align:center;
    max-width:760px;
    margin:0 auto 44px
}

.feature-checks {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
    margin-top:27px
}

.feature-checks span {
    background:#f7f9fd;
    border:1px solid #e7edf5;
    padding:12px 13px;
    border-radius:12px;
    font-size:14px;
    font-weight:600
}

.feature-checks span::first-letter {
    color:var(--orange)
}

.flow-card {
    position:relative;
    background:#fff;
    border:1px solid var(--line);
    box-shadow:0 18px 50px rgba(29,57,103,.08);
    border-radius:var(--radius);
    padding:28px 28px 20px
}

.flow-line {
    position:absolute;
    left:48px;
    top:52px;
    bottom:52px;
    width:2px;
    background:linear-gradient(var(--blue),var(--orange))
}

.flow-step {
    position:relative;
    display:flex;
    gap:18px;
    align-items:center;
    padding:14px 0
}

.flow-step>span {
    z-index:1;
    width:42px;
    height:42px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#fff;
    border:2px solid #dce6f6;
    color:var(--blue);
    font-size:11px;
    font-weight:800
}

.flow-step strong,.flow-step small {
    display:block
}

.flow-step small {
    color:var(--muted);
    margin-top:2px
}

.cards-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px
}

/* =========================================================
   8. TARJETAS DE FUNCIONES
   ========================================================= */
.feature-card {
    background:#fff;
    border:1px solid #e8edf5;
    border-radius:18px;
    padding:26px;
    transition:.25s
}

.feature-card:hover {
    transform:translateY(-5px);
    box-shadow:0 18px 50px rgba(35,62,104,.08);
    border-color:#d8e2f2
}

.feature-card .icon {
    width:46px;
    height:46px;
    border-radius:13px;
    background:linear-gradient(135deg,#edf4ff,#fff2e7);
    display:grid;
    place-items:center;
    color:var(--blue);
    font-weight:800;
    font-size:12px;
    margin-bottom:18px;
    border:1px solid #e2e9f5
}

.feature-card h3 {
    font-size:18px;
    margin-bottom:9px
}

.feature-card p {
    font-size:14px;
    color:var(--muted);
    margin:0
}

/* =========================================================
   9. PRUEBA / PROPUESTA DE VALOR
   ========================================================= */
.proof-section {
    background:#0e2447;
    color:#fff
}

.proof-grid {
    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:60px;
    align-items:center
}

.proof-card p {
    color:#bdc9db
}

.mini-tag {
    display:inline-block;
    background:rgba(244,116,0,.14);
    border:1px solid rgba(244,116,0,.36);
    color:#ffad61;
    border-radius:999px;
    padding:7px 12px;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
    margin-bottom:16px
}

.proof-stat {
    padding:34px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:22px;
    background:rgba(255,255,255,.04)
}

.proof-stat strong {
    display:block;
    font-size:82px;
    line-height:.9;
    color:#fff
}

.proof-stat span {
    display:block;
    color:#ffad61;
    font-weight:700;
    margin-top:12px
}

.proof-stat hr {
    border:0;
    border-top:1px solid rgba(255,255,255,.12);
    margin:24px 0
}

.proof-stat p {
    color:#bdc9db;
    margin:0
}

/* =========================================================
   10. PÚBLICO OBJETIVO
   ========================================================= */
.audience-grid {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px
}

.audience {
    padding:25px;
    border-top:3px solid var(--blue);
    background:#fff;
    box-shadow:0 12px 40px rgba(32,59,98,.07);
    border-radius:0 0 16px 16px
}

.audience span {
    color:var(--orange);
    font-weight:800;
    font-size:12px
}

.audience h3 {
    font-size:17px;
    margin:12px 0 7px
}

.audience p {
    font-size:14px;
    color:var(--muted);
    margin:0
}

/* =========================================================
   11. CTA PRINCIPAL
   ========================================================= */
.cta-band {
    background:linear-gradient(135deg,var(--blue),#06296f);
    color:#fff;
    padding:64px 0
}

.cta-inner {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px
}

.cta-inner h2 {
    margin-bottom:10px
}

.cta-inner p {
    color:#ced9eb;
    margin:0
}

.eyebrow.light {
    color:#fff
}

/* =========================================================
   12. CONTACTO Y FORMULARIO
   ========================================================= */
.contact-grid {
    display:grid;
    grid-template-columns:.9fr 1.1fr;
    gap:70px;
    align-items:start
}

.contact-person {
    display:flex;
    align-items:center;
    gap:13px;
    margin:28px 0
}

.avatar {
    width:48px;
    height:48px;
    border-radius:15px;
    background:linear-gradient(135deg,var(--blue),var(--orange));
    color:#fff;
    display:grid;
    place-items:center;
    font-weight:800
}

.contact-person strong,.contact-person span {
    display:block
}

.contact-person span {
    color:var(--muted);
    font-size:13px
}

.contact-links {
    display:grid;
    gap:10px
}

.contact-links>a,.contact-links>div {
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:14px 0;
    border-bottom:1px solid var(--line);
    font-size:14px
}

.contact-links span {
    color:var(--muted);
    text-align:right
}

.contact-form {
    border:1px solid #e4eaf3;
    box-shadow:var(--shadow);
    border-radius:22px;
    padding:28px;
    background:#fff
}

.field {
    margin-bottom:16px
}

.field label {
    display:block;
    font-size:12px;
    font-weight:800;
    margin-bottom:7px
}

.field input,.field textarea {
    width:100%;
    border:1px solid #dce4ef;
    border-radius:12px;
    padding:13px 14px;
    font:inherit;
    color:var(--ink);
    outline:none;
    transition:.2s;
    background:#fff
}

.field input:focus,.field textarea:focus {
    border-color:var(--blue);
    box-shadow:0 0 0 4px rgba(0,60,181,.08)
}

.form-row {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:13px
}

.consent {
    display:flex;
    align-items:flex-start;
    gap:10px;
    font-size:12px;
    color:var(--muted);
    margin:4px 0 17px
}

.consent a {
    color:var(--blue);
    font-weight:700
}

.hp-field {
    position:absolute;
    left:-9999px
}

.form-status {
    margin:12px 0 0;
    font-size:13px
}

.form-status.ok {
    color:#188b5b
}

.form-status.error {
    color:#b42318
}

/* =========================================================
   13. FOOTER
   ========================================================= */
.site-footer {
    background:#08182f;
    color:#d4dceb;
    padding:58px 0 24px
}

.footer-grid {
    display:grid;
    grid-template-columns:1.4fr 1fr .6fr;
    gap:50px
}

.footer-brand {
    overflow: visible;
}

.footer-brand img {
    width: 165px;
    height: auto;
    display: block;
    object-fit: contain;
    transform: none;
    filter: none;
    opacity: 1;
}

.footer-brand p {
    color:#9eb0c9;
    margin-top:8px
}

.footer-grid>div:not(.footer-brand) {
    display:flex;
    flex-direction:column;
    gap:9px;
    font-size:13px
}

.footer-grid strong {
    color:#fff;
    margin-bottom:7px
}

.footer-grid a,.footer-grid span {
    color:#9eb0c9
}

.footer-bottom {
    border-top:1px solid rgba(255,255,255,.09);
    margin-top:34px;
    padding-top:20px;
    display:flex;
    justify-content:space-between;
    gap:20px;
    font-size:11px;
    color:#8293ab
}

/* =========================================================
   14. BOTÓN FLOTANTE DE WHATSAPP
   ========================================================= */
.whatsapp-float {
    position:fixed;
    right:22px;
    bottom:22px;
    width:54px;
    height:54px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#21c063;
    color:#fff;
    font-weight:800;
    font-size:11px;
    box-shadow:0 12px 28px rgba(0,0,0,.2);
    z-index:900
}

/* =========================================================
   15. ANIMACIONES
   ========================================================= */
.reveal {
    opacity:0;
    transform:translateY(18px);
    transition:opacity .55s ease,transform .55s ease
}

.reveal.visible {
    opacity:1;
    transform:none
}

/* =========================================================
   16. PÁGINAS LEGALES
   ========================================================= */
.legal-page {
    background:#f8fafc
}

.legal-header {
    background:#fff;
    border-bottom:1px solid var(--line);
    padding:12px 0
}

.legal-header img {
    width:92px;
    height:92px;
    object-fit:contain;
    object-position:center;
    transform:none
}

.legal-header a {
    display:flex;
    width:110px;
    align-items:center;
    overflow:visible
}

.legal-content {
    max-width:820px;
    padding-top:55px;
    padding-bottom:80px
}

.legal-content h1 {
    font-size:44px
}

.legal-content h2 {
    font-size:20px;
    margin-top:32px
}

.legal-content p {
    color:var(--muted)
}

.legal-content a {
    color:var(--blue);
    font-weight:700
}

.legal-updated {
    font-size:13px
}

.back-link {
    display:inline-block;
    margin-bottom:25px
}

/* =========================================================
   17. RESPONSIVE - TABLET
   ========================================================= */
@media (max-width:980px) {
        .nav-wrap {
        height: 100px;
    }

    .brand {
        width: 190px;
        height: 100px;
    }

    .brand img {
        width: 120px;
        height: auto;
    }

    .main-nav {
        top: 100px;
    }
    
    .main-nav {
        position:absolute;
        top:100px;
        left:20px;
        right:20px;
        display:none;
        flex-direction:column;
        align-items:stretch;
        background:#fff;
        border:1px solid var(--line);
        box-shadow:var(--shadow);
        border-radius:18px;
        padding:18px
    }
    .main-nav.open {
        display:flex
    }
    .nav-toggle {
        display:block
    }
    .hero {
        padding-top:58px
    }
    .hero-grid,.two-col,.proof-grid,.contact-grid {
        grid-template-columns:1fr
    }
    .dashboard-shell {
        transform:none;
        max-width:720px
    }
    .cards-grid {
        grid-template-columns:repeat(2,1fr)
    }
    .audience-grid {
        grid-template-columns:repeat(2,1fr)
    }
    .cta-inner {
        align-items:flex-start;
        flex-direction:column
    }
    .contact-grid {
        gap:42px
    }
}

/* =========================================================
   18. RESPONSIVE - MÓVIL
   ========================================================= */
@media (max-width:640px) {
    .container {
        width:min(100% - 28px,var(--container))
    }
    
    .nav-wrap {
        height: 92px;
    }

    .brand {
        width: 150px;
        height: 92px;
    }

    .brand img {
        width: 105px;
        height: auto;
    }

    .main-nav {
        top: 92px;
    }
    .hero {
        padding:46px 0 58px
    }
    h1 {
        font-size:40px
    }
    .lead {
        font-size:16px
    }
    .hero-actions {
        flex-direction:column
    }
    .hero-actions .btn {
        width:100%
    }
    .trust-row {
        gap:10px 16px
    }
    .dash-body {
        grid-template-columns:42px 1fr;
        min-height:365px
    }
    .dash-side {
        gap:14px
    }
    .dash-main {
        padding:14px
    }
    .metrics {
        grid-template-columns:1fr
    }
    .metrics article:nth-child(n+2) {
        display:none
    }
    .dash-panels {
        grid-template-columns:1fr
    }
    .status-card {
        display:none
    }
    .chart-card {
        min-height:170px
    }
    .section {
        padding:70px 0
    }
    .feature-checks,.cards-grid,.audience-grid,.form-row {
        grid-template-columns:1fr
    }
    .flow-card {
        padding:22px 18px
    }
    .flow-line {
        left:38px
    }
    .section-copy h2,.section-head h2,.proof-card h2,.contact-copy h2,.cta-inner h2 {
        font-size:34px
    }
    .footer-grid {
        grid-template-columns:1fr
    }
    .footer-bottom {
        flex-direction:column
    }
    .contact-form {
        padding:20px
    }
    .contact-links>a,.contact-links>div {
        display:block
    }
    .contact-links span {
        display:block;
        text-align:left;
        margin-top:3px
    }
}

/* =========================================================
   19. ACCESIBILIDAD / REDUCCIÓN DE MOVIMIENTO
   ========================================================= */
@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior:auto
    }
    .reveal {
        opacity:1;
        transform:none;
        transition:none
    }
    .btn:hover,.feature-card:hover {
        transform:none
    }
}


