/* ============================================================
   MKT RETAIL — styles.css
   Sistema visual completo (reset, variables, layout, componentes)
   ============================================================ */

/* ---------- 1. RESET & BASE ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ---------- 2. VARIABLES ---------- */
:root {
    /* Paleta */
    --navy: #043D5A;
    --navy-d: #022C42;
    --navy-l: #0A547A;
    --blue: #2FB2FF;
    --blue-d: #1C8FD4;
    --blue-soft: #E6F4FF;
    --bg: #EEF3F7;
    --bg-alt: #F8FBFD;
    --card: #FFFFFF;
    --ink: #0C2A3B;
    --ink-soft: #4A6577;
    --ink-muted: #7A8FA0;
    --line: #D2E0EA;
    --line-soft: #E5EDF3;
    --white: #FFFFFF;

    /* Tipografías */
    --font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
    --font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;

    /* Sombras */
    --shadow-sm: 0 2px 8px -2px rgba(4, 61, 90, 0.08);
    --shadow-md: 0 10px 30px -12px rgba(4, 61, 90, 0.25);
    --shadow-lg: 0 24px 60px -20px rgba(4, 61, 90, 0.35);

    /* Layout */
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-pill: 100px;
    --container: 1180px;
    --header-h: 76px;
}

/* ---------- 3. TIPOGRAFÍA BASE ---------- */
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p {
    color: var(--ink-soft);
}

strong {
    color: var(--ink);
    font-weight: 700;
}

em {
    font-style: italic;
    color: var(--blue-d);
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--blue-d);
    margin-bottom: 14px;
}

/* ---------- 4. LAYOUT ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-head {
    max-width: 720px;
    margin-bottom: 48px;
}

.section-head h2 {
    margin-top: 4px;
}

.center-cta {
    text-align: center;
    margin-top: 48px;
}

main {
    min-height: 60vh;
}

/* ---------- 5. BOTONES ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    transition: all 0.25s ease;
    white-space: nowrap;
    cursor: pointer;
    border: 1.5px solid transparent;
}

.btn-primary {
    background: var(--blue);
    color: var(--navy-d);
}
.btn-primary:hover {
    background: var(--blue-d);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost-dark {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-ghost-dark:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--navy-d);
}
.btn-light:hover {
    background: var(--blue);
    color: var(--navy-d);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ---------- 6. HEADER ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
}

/* ---------- LOGO CÁPSULA (header) ---------- */
.brand-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 14px;
    padding: 6px 18px;
    box-shadow: 0 2px 8px -3px rgba(4, 61, 90, 0.15);
    transition: transform 0.2s ease;
}

.brand:hover .brand-pill {
    transform: translateY(-1px);
}

.brand-pill img {
    height: 30px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: var(--blue-d);
    background: var(--blue-soft);
}

.main-nav a.active {
    color: var(--blue-d);
}

/* ---------- 7. HERO ---------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-d) 100%);
    color: var(--white);
    padding: 120px 0 100px;
    overflow: hidden;
}

.hero-chevrons {
    position: absolute;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    width: 480px;
    max-width: 50%;
    opacity: 1;
    pointer-events: none;
}

.hero-chevrons svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(47, 178, 255, 0.25));
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.hero .eyebrow {
    color: var(--blue);
}

.hero-title {
    color: var(--white);
    margin-bottom: 20px;
}

.hero-title em {
    color: var(--blue);
    font-style: normal;
}

.hero-lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 620px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    color: var(--blue);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

/* ---------- 8. SECCIÓN INTRO ---------- */
.section-intro {
    background: var(--white);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    align-items: start;
}

.intro-left h2 {
    margin-top: 4px;
}

.intro-right p {
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.intro-right p:last-child {
    margin-bottom: 0;
}

/* ---------- 9. CARDS GRID (soluciones) ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue);
}

.card-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--blue);
    letter-spacing: 0.08em;
}

.card h3 {
    color: var(--navy);
    line-height: 1.25;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ---------- 10. CLIENTES ---------- */
.section-clientes {
    background: var(--white);
    padding: 70px 0;
}

.section-clientes .eyebrow {
    text-align: center;
    display: block;
    margin-bottom: 40px;
}

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px 28px;
    align-items: center;
    justify-items: center;
}

.cliente {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.cliente:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.cliente img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.cliente-nombre {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink-soft);
    font-size: 0.95rem;
    text-align: center;
}

/* ---------- 11. PAGE HEAD (soluciones.html) ---------- */
.page-head {
    background: var(--navy);
    color: var(--white);
    padding: 100px 0 80px;
}

.page-head .eyebrow {
    color: var(--blue);
}

.page-head h1 {
    color: var(--white);
    max-width: 880px;
    margin-bottom: 20px;
}

.page-head-lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
}

/* ---------- 12. SERVICE BLOCKS ---------- */
.service-block {
    padding: 70px 0;
    border-bottom: 1px solid var(--line-soft);
    background: var(--white);
}

.service-block.alt {
    background: var(--bg-alt);
}

.service-block:last-of-type {
    border-bottom: none;
}

.service-inner {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 48px;
    align-items: start;
}

.service-index span {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 4rem;
    color: var(--blue);
    line-height: 1;
    letter-spacing: -0.04em;
}

.service-body h2 {
    color: var(--navy);
    margin-bottom: 14px;
}

.service-lead {
    font-size: 1.1rem;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 18px;
}

.service-body p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-list {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.service-list li {
    position: relative;
    padding-left: 28px;
    color: var(--ink-soft);
    line-height: 1.55;
}

.service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 14px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
}

/* ---------- 13. CTA BAND + CONTACTO DUAL ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-l) 100%);
    color: var(--white);
    padding: 80px 0;
}

.cta-inner {
    text-align: center;
}

.cta-inner h2 {
    color: var(--white);
    margin-bottom: 14px;
}

.cta-inner p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin: 0 auto 28px;
    font-size: 1.05rem;
}

/* --- Contacto dual (dos tarjetas) --- */
.contacto-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: center;
    align-items: stretch;
}

.contacto-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.contacto-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--blue);
    transform: translateY(-3px);
}

.contacto-card .eyebrow {
    color: var(--blue);
    margin-bottom: 0;
}

.contacto-card h2 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.contacto-card .btn {
    font-size: 0.95rem;
    padding: 12px 24px;
    max-width: 100%;
    word-break: break-all;
    line-height: 1.3;
}

.contacto-micro {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 6px;
    max-width: 280px;
    line-height: 1.5;
}

/* ---------- 14. FOOTER ---------- */
.site-footer {
    background: var(--navy-d);
    color: rgba(255, 255, 255, 0.78);
    padding: 64px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand-pill {
    margin-bottom: 16px;
    padding: 7px 20px;
    border-radius: 16px;
}

.footer-brand .brand-pill img {
    height: 32px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    max-width: 280px;
}

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.93rem;
    padding: 5px 0;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--blue);
}

.footer-loc {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    margin-top: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    flex-wrap: wrap;
    gap: 12px;
}

.back-top {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    transition: color 0.2s ease;
}

.back-top:hover {
    color: var(--blue);
}

/* ---------- 15. RESPONSIVE ---------- */
@media (max-width: 960px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-index span {
        font-size: 3rem;
    }

    .clientes-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 720px) {
    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 90px 0 70px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 28px;
    }

    .main-nav {
        gap: 2px;
    }

    .main-nav a {
        padding: 8px 12px;
        font-size: 0.88rem;
    }

    .contacto-dual {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .page-head {
        padding: 70px 0 60px;
    }
}

@media (max-width: 600px) {
    .clientes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .brand-pill {
        padding: 5px 14px;
        border-radius: 12px;
    }

    .brand-pill img {
        height: 26px;
    }

    .hero-chevrons {
        display: none;
    }

    .cta-band {
        padding: 60px 0;
    }

    .contacto-card {
        padding: 32px 22px;
    }

    .contacto-card .btn {
        font-size: 0.85rem;
        padding: 11px 18px;
    }
}

/* ---------- 16. UTILIDADES ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
