/* =========================================================
   Doxer — Estilos basados en la paleta y tipografía de Boostly
   Colores y fuentes extraídos del sitio de referencia.
   ========================================================= */

:root {
    --brand-primary: #3B5BFF;
    --brand-accent:  #6E86FF;
    --brand-ink:     #0B1220;
    --brand-bg:      #FFFFFF;
    --brand-paper:   #FFFFFF;
    --brand-line:    #E4E9F0;
    --brand-muted:   #6B7686;
    --brand-mist:    #F5F7FA;

    --font-display: "Space Grotesk", system-ui, sans-serif;
    --font-body:    "Inter", system-ui, sans-serif;

    --radius-sm: 12px;
    --radius:    16px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 2px rgba(11, 18, 32, .04);
    --shadow:    0 1px 2px rgba(11, 18, 32, .04), 0 8px 24px rgba(11, 18, 32, .06);
    --shadow-lg: 0 2px 4px rgba(11, 18, 32, .05), 0 12px 32px rgba(11, 18, 32, .08);

    --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--brand-ink);
    background-color: var(--brand-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    margin: 0 0 .5rem;
    letter-spacing: -.01em;
}

p { margin: 0 0 1rem; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Botones (estilo zap-press de Boostly) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 0;
    border-radius: var(--radius-sm);
    padding: .75rem 1.25rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
    min-height: 48px;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background-color: var(--brand-primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(59, 91, 255, .28);
}
.btn-primary:hover { background-color: #2f4ce6; }

.btn-ghost {
    background-color: transparent;
    color: var(--brand-ink);
    border: 1px solid var(--brand-line);
}
.btn-ghost:hover { background-color: var(--brand-mist); }

.btn-lg { padding: 1rem 1.75rem; min-height: 56px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--brand-line);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1.5rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
}
.brand-mark {
    color: var(--brand-primary);
    font-size: 1.1rem;
}
.brand-dot { color: var(--brand-primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-left: auto;
}
.nav-link {
    padding: .5rem .85rem;
    border-radius: 10px;
    color: var(--brand-muted);
    font-weight: 500;
    transition: color .12s ease, background-color .12s ease;
}
.nav-link:hover,
.nav-link.is-active {
    color: var(--brand-ink);
    background-color: var(--brand-mist);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--brand-ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mega menú (Soluciones) ---------- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-mega-toggle .caret {
    font-size: .7rem;
    transition: transform .2s ease;
    display: inline-block;
}
.nav-item.has-mega:hover .nav-mega-toggle .caret,
.nav-item.has-mega.is-open .nav-mega-toggle .caret { transform: rotate(180deg); }

.mega {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translate(-50%, 8px);
    width: min(720px, 92vw);
    background: var(--brand-paper);
    border: 1px solid var(--brand-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 60;
}
/* Puente invisible para que el hover no se corte entre el link y el panel. */
.mega::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}
.nav-item.has-mega:hover .mega,
.nav-item.has-mega.is-open .mega,
.mega:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
.mega-head { margin-bottom: 1rem; }
.mega-head .eyebrow { margin-bottom: .5rem; }
.mega-head p { color: var(--brand-muted); font-size: .9rem; margin: 0; }
.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.mega-card {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: 1rem;
    border: 1px solid var(--brand-line);
    border-radius: var(--radius);
    background: var(--brand-bg);
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.mega-card:hover {
    border-color: var(--brand-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.mega-card-icon {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: rgba(59, 91, 255, .1);
    color: var(--brand-primary);
    font-size: 1.2rem;
}
.mega-card-body { display: flex; flex-direction: column; gap: .25rem; }
.mega-card-body strong { font-family: var(--font-display); font-size: 1rem; color: var(--brand-ink); }
.mega-card-body small { color: var(--brand-muted); font-size: .82rem; line-height: 1.45; }
.mega-card-link {
    margin-top: .35rem;
    color: var(--brand-primary);
    font-weight: 600;
    font-size: .82rem;
}

/* ---------- Secciones genéricas ---------- */
section { padding: 88px 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-primary);
    background-color: rgba(59, 91, 255, .08);
    padding: .4rem .8rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.section-head {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-head p { color: var(--brand-muted); font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 80px 0 96px;
    background:
        radial-gradient(1100px 500px at 80% -10%, rgba(110, 134, 255, .18), transparent 60%),
        radial-gradient(900px 480px at 0% 0%, rgba(59, 91, 255, .12), transparent 55%),
        var(--brand-bg);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 56px;
    align-items: center;
}
.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    margin-bottom: 1.25rem;
}
.hero h1 .accent { color: var(--brand-primary); }
.hero-lead {
    font-size: 1.2rem;
    color: var(--brand-muted);
    max-width: 540px;
    margin-bottom: 1.75rem;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-bottom: 1.5rem;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    color: var(--brand-muted);
    font-size: .9rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: .4rem; }

/* Tarjeta visual del hero */
.hero-card {
    background-color: var(--brand-paper);
    border: 1px solid var(--brand-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
}
.hero-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--brand-line);
    margin-bottom: 1rem;
}
.hero-card-title { font-family: var(--font-display); font-weight: 600; }
.dot-row { display: flex; gap: 6px; }
.dot-row i { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-line); display: block; }
.dot-row i:first-child { background: #ff6b6b; }
.dot-row i:nth-child(2) { background: #ffd93d; }
.dot-row i:nth-child(3) { background: #6bcf7f; }

.flow-step {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .8rem;
    border-radius: var(--radius-sm);
    background: var(--brand-mist);
    margin-bottom: .6rem;
}
.flow-step .num {
    width: 32px; height: 32px;
    flex: none;
    display: grid; place-items: center;
    border-radius: 9px;
    background: var(--brand-primary);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .85rem;
}
.flow-step .txt strong { display: block; font-size: .95rem; }
.flow-step .txt small { color: var(--brand-muted); }
.flow-step.done { background: rgba(59,91,255,.07); }

/* ---------- Logos / trust ---------- */
.trust { padding: 40px 0; border-bottom: 1px solid var(--brand-line); }
.trust p { text-align: center; color: var(--brand-muted); font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1.25rem; }
.trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2.5rem;
    align-items: center;
    opacity: .7;
}
.trust-logos span { font-family: var(--font-display); font-weight: 600; color: var(--brand-muted); font-size: 1.05rem; }

/* ---------- Grid de soluciones ---------- */
.solutions { background: var(--brand-mist); }
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.card {
    background-color: var(--brand-paper);
    border: 1px solid var(--brand-line);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(59, 91, 255, .1);
    color: var(--brand-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.card h3 { font-size: 1.15rem; }
.card p { color: var(--brand-muted); font-size: .95rem; margin-bottom: .75rem; }
.card .more { font-weight: 600; color: var(--brand-primary); font-size: .9rem; }

/* ---------- Pasos "Cómo funciona" ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; padding: 1rem; }
.step .step-num {
    width: 56px; height: 56px;
    margin: 0 auto 1rem;
    display: grid; place-items: center;
    border-radius: 16px;
    background: var(--brand-ink);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--brand-muted); }

/* ---------- Nosotros ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.about-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.about-list li {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--brand-muted);
}
.about-list .check {
    flex: none;
    width: 24px; height: 24px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(59,91,255,.1);
    color: var(--brand-primary);
    font-size: .8rem;
    font-weight: 700;
}
.about-list strong { color: var(--brand-ink); }

/* ---------- Stats ---------- */
.stats {
    background: var(--brand-ink);
    color: #fff;
    border-radius: var(--radius-lg);
}
.stats-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat .num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    color: #fff;
    line-height: 1;
}
.stat .num .suffix { color: var(--brand-accent); }
.stat .label { color: rgba(255,255,255,.65); margin-top: .5rem; }

/* ---------- Testimonios ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
    background: var(--brand-paper);
    border: 1px solid var(--brand-line);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.quote p { font-size: .98rem; }
.quote .author { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.quote .avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #fff;
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
}
.quote .author strong { display: block; font-size: .9rem; }
.quote .author small { color: var(--brand-muted); }

/* ---------- CTA / Contacto ---------- */
.cta-band {
    background:
        radial-gradient(700px 320px at 100% 0%, rgba(110,134,255,.25), transparent 60%),
        var(--brand-primary);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 560px; margin: 0 auto 1.75rem; }
.cta-band .btn-primary { background: #fff; color: var(--brand-primary); box-shadow: none; }
.cta-band .btn-primary:hover { background: #eef1ff; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--brand-mist);
    border-top: 1px solid var(--brand-line);
    padding: 64px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-desc { color: var(--brand-muted); max-width: 320px; margin-top: 1rem; }
.footer-contact { list-style: none; padding: 0; margin: 1rem 0 0; }
.footer-contact li { color: var(--brand-muted); margin-bottom: .5rem; display: flex; gap: .5rem; }
.footer-col h4 { font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: var(--brand-muted); transition: color .12s ease; }
.footer-col a:hover { color: var(--brand-primary); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--brand-line);
    color: var(--brand-muted);
    font-size: .88rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Landing de soluciones ---------- */
.page-hero {
    position: relative;
    padding: 72px 0 64px;
    background:
        radial-gradient(1000px 460px at 85% -10%, rgba(110, 134, 255, .18), transparent 60%),
        radial-gradient(820px 420px at 0% 0%, rgba(59, 91, 255, .10), transparent 55%),
        var(--brand-bg);
    overflow: hidden;
}
.page-hero .breadcrumb {
    display: flex;
    gap: .5rem;
    align-items: center;
    color: var(--brand-muted);
    font-size: .85rem;
    margin-bottom: 1.25rem;
}
.page-hero .breadcrumb a:hover { color: var(--brand-primary); }
.page-hero-inner { max-width: 760px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin-bottom: 1rem; }
.page-hero h1 .accent { color: var(--brand-primary); }
.page-hero-lead { font-size: 1.2rem; color: var(--brand-muted); margin-bottom: 1.75rem; }
.page-hero-icon {
    width: 64px; height: 64px;
    display: grid; place-items: center;
    border-radius: 18px;
    background: rgba(59, 91, 255, .1);
    color: var(--brand-primary);
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.intro-band { background: var(--brand-mist); }
.intro-band .container { max-width: 820px; text-align: center; }
.intro-band p { color: var(--brand-muted); font-size: 1.15rem; }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 880px;
    margin: 0 auto;
}
.benefit {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--brand-line);
    border-radius: var(--radius);
    background: var(--brand-paper);
}
.benefit .check {
    flex: none;
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(59, 91, 255, .1);
    color: var(--brand-primary);
    font-weight: 700;
    font-size: .85rem;
}
.benefit strong { display: block; }
.benefit p { color: var(--brand-muted); font-size: .92rem; margin: .15rem 0 0; }

/* ---------- Landing de contacto / formulario ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    align-items: start;
}
.contact-why { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-why li {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--brand-muted);
}
.contact-why .check {
    flex: none;
    width: 24px; height: 24px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(59, 91, 255, .1);
    color: var(--brand-primary);
    font-size: .8rem;
    font-weight: 700;
}
.contact-why strong { color: var(--brand-ink); }

.contact-card {
    background: var(--brand-paper);
    border: 1px solid var(--brand-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}
.contact-card h3 { font-size: 1.4rem; }
.contact-card .form-intro { color: var(--brand-muted); margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field label .req { color: var(--brand-primary); }
.field input,
.field select,
.field textarea {
    font-family: var(--font-body);
    font-size: .98rem;
    color: var(--brand-ink);
    padding: .8rem .9rem;
    border: 1px solid var(--brand-line);
    border-radius: var(--radius-sm);
    background: var(--brand-bg);
    transition: border-color .15s ease, box-shadow .15s ease;
    width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(59, 91, 255, .15);
}
.field-check {
    flex-direction: row;
    align-items: flex-start;
    gap: .6rem;
}
.field-check input { width: auto; margin-top: .2rem; }
.field-check label { font-weight: 400; font-size: .85rem; color: var(--brand-muted); }
.form-note { color: var(--brand-muted); font-size: .82rem; margin-top: .85rem; text-align: center; }
.form-alert {
    background: rgba(107, 207, 127, .12);
    border: 1px solid rgba(107, 207, 127, .5);
    color: #1f7a3d;
    border-radius: var(--radius-sm);
    padding: .85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: .92rem;
}

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
    .hero-grid, .about-grid { grid-template-columns: 1fr; }
    .cards, .quotes { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
    .nav-actions { display: none; }
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--brand-line);
        padding: 12px 24px 20px;
        box-shadow: var(--shadow);
        display: none;
    }
    .nav-links.is-open { display: flex; }
    .nav-link { padding: .85rem; border-radius: 10px; }
    section { padding: 64px 0; }
    .cards, .quotes, .steps, .stats-inner { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-band { padding: 40px 24px; }

    /* Mega menú apilado dentro del menú móvil */
    .nav-item { display: block; }
    .nav-item.has-mega { width: 100%; }
    .mega {
        position: static;
        transform: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        padding: 0 0 .5rem;
        display: none;
    }
    .mega::before { display: none; }
    .nav-item.has-mega.is-open .mega { display: block; transform: none; }
    .mega-head { display: none; }
    .mega-grid { grid-template-columns: 1fr; }

    .benefits-grid, .form-row { grid-template-columns: 1fr; }
}
