/* ==========================================================================
   iXitec - hoja de estilos principal
   ========================================================================== */

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

:root {
    /* Color */
    --ink: #0d1526;
    --ink-2: #334155;
    --muted: #5b6b82;
    --line: #e3e8f0;
    --line-strong: #cfd7e3;
    --bg: #ffffff;
    --bg-soft: #f5f7fb;
    --navy: #0b1530;
    --navy-2: #121f42;
    --navy-line: rgba(255, 255, 255, .1);
    --on-dark: #e8edf7;
    --on-dark-muted: #a7b3cc;
    --primary: #2f6fde;
    --primary-strong: #1f57bd;
    --primary-soft: #eaf1fd;
    --success: #18864b;
    --success-soft: #e8f6ee;
    --danger: #c42b2b;
    --danger-soft: #fdeeee;
    --brand-gradient: linear-gradient(90deg, #35b53a 0%, #c9d81f 18%, #ffb21a 34%, #f2441d 52%, #c2189b 70%, #6a3dc2 84%, #3a6fd8 100%);
    --text-gradient: linear-gradient(90deg, #ffb21a 0%, #f2441d 35%, #c2189b 65%, #5cc3f7 100%);

    /* Tipografía */
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --fs-xs: .8125rem;
    --fs-sm: .9375rem;
    --fs-base: 1.0625rem;
    --fs-lg: 1.1875rem;
    --fs-h4: 1.125rem;
    --fs-h3: 1.3125rem;
    --fs-h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
    --fs-h1: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);

    /* Espaciado y forma */
    --container: 1200px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --section-y: clamp(4rem, 3rem + 4vw, 6.5rem);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(13, 21, 38, .06);
    --shadow: 0 1px 2px rgba(13, 21, 38, .05), 0 8px 24px -8px rgba(13, 21, 38, .12);
    --shadow-lg: 0 2px 4px rgba(13, 21, 38, .04), 0 24px 48px -16px rgba(13, 21, 38, .22);
    --header-h: 72px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    margin: 0 0 .6em;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -.02em;
    font-weight: 700;
}
h1 { font-size: var(--fs-h1); letter-spacing: -.035em; font-weight: 800; }
h2, .h2 { font-size: var(--fs-h2); letter-spacing: -.03em; }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-strong); }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: #cfe0ff; color: var(--ink); }

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.icon-xs { width: .9em; height: .9em; display: inline-block; vertical-align: -.1em; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 100;
    padding: .75rem 1rem;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.skip-link:focus { top: 1rem; color: #fff; }

main:focus { outline: none; }

[hidden] { display: none !important; }

/* ---------- Botones ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.35rem;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }

.btn-sm { padding: .6rem 1.05rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: var(--fs-base); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px -6px rgba(47, 111, 222, .6); }
.btn-primary:hover { background: var(--primary-strong); color: #fff; }

.btn-outline { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--primary-soft); color: var(--ink); }

/* ---------- Cabecera ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--ink);
    text-decoration: none;
    flex: none;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.375rem; font-weight: 800; letter-spacing: -.03em; }
.brand-sub { margin-top: .2rem; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-sub { color: var(--on-dark-muted); }

.site-nav {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 1.5rem;
}
.nav-list { display: flex; gap: .25rem; margin-inline: auto; }
.nav-link {
    position: relative;
    display: block;
    padding: .5rem .85rem;
    border-radius: 999px;
    color: var(--ink-2);
    font-size: var(--fs-sm);
    font-weight: 550;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s, background-color .2s;
}
.nav-link:hover { color: var(--ink); background: var(--bg-soft); }
.nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: .85rem; right: .85rem; bottom: .15rem;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-gradient);
}

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.lang-switch {
    display: flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: var(--fs-xs);
    font-weight: 650;
}
.lang-switch a, .lang-current {
    display: block;
    padding: .3rem .6rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--muted);
}
.lang-switch a:hover { color: var(--ink); background: var(--bg-soft); }
.lang-current { background: var(--ink); color: #fff; }

.nav-toggle {
    display: none;
    margin-left: auto;
    padding: .55rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}
.nav-toggle .icon { width: 1.4rem; height: 1.4rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 961px) and (max-width: 1180px) {
    .header-inner { gap: 1rem; }
    .site-nav { gap: .75rem; }
    .nav-link { padding-inline: .55rem; }
    .nav-link[aria-current="page"]::after { left: .55rem; right: .55rem; }
    .nav-badge { display: none; }
    .brand-sub { display: none; }
}

@media (max-width: 960px) {
    .js .nav-toggle { display: inline-flex; }

    .site-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .js .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        padding: 1rem var(--gutter) 1.5rem;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
    }
    .js .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity .2s, transform .2s var(--ease);
    }
    .nav-list { flex-direction: column; margin: 0; }
    .nav-link { padding: .85rem 1rem; font-size: var(--fs-base); border-radius: var(--radius-sm); }
    .nav-link[aria-current="page"] { background: var(--bg-soft); }
    .nav-link[aria-current="page"]::after { left: 0; right: auto; top: .7rem; bottom: .7rem; width: 3px; height: auto; }
    .nav-actions { justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--line); }

    /* Sin JS: menú siempre visible debajo de la marca */
    .no-js .header-inner { flex-wrap: wrap; padding-block: 1rem; }
    .no-js .site-nav { flex-basis: 100%; }
}

/* ---------- Utilidades de sección ---------- */

.section { padding-block: var(--section-y); }
.section-tight { padding-block: calc(var(--section-y) * .5); }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: var(--on-dark-muted); }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { font-size: var(--fs-lg); color: var(--muted); }
.section-dark .section-head p { color: var(--on-dark-muted); }
.section-head-split {
    display: flex;
    max-width: none;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}
.section-head-split > div { max-width: 760px; }
.section-foot { margin-top: 2.5rem; text-align: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary);
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: var(--brand-gradient);
}
.eyebrow-light { color: #9cc0ff; }

.lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); line-height: 1.6; }

.text-gradient {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Hero portada ---------- */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60% 80% at 85% 20%, rgba(58, 111, 216, .35), transparent 60%),
        radial-gradient(50% 60% at 10% 100%, rgba(194, 24, 155, .18), transparent 60%),
        var(--navy);
    color: var(--on-dark-muted);
}
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 3rem;
    padding-block: clamp(2.25rem, 1.5rem + 2.5vw, 3.75rem) clamp(4rem, 3rem + 4vw, 6.5rem);
}
.hero h1 { color: #fff; margin-bottom: 1.5rem; }
.hero .lead { max-width: 600px; color: var(--on-dark-muted); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 2.25rem; font-size: var(--fs-sm); color: var(--on-dark); }
.hero-points li { display: flex; align-items: center; gap: .5rem; }
.hero-points .icon { color: #6fd38a; }

.hero-visual {
    position: relative;
    aspect-ratio: 1;
    max-width: 480px;
    width: 100%;
    margin-inline: auto;
    display: grid;
    place-items: center;
}
.hero-mark {
    width: 54%;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(92, 195, 247, .35));
    animation: float 8s ease-in-out infinite;
}
.hero-orbit {
    position: absolute;
    inset: 6%;
    border: 1px dashed rgba(255, 255, 255, .14);
    border-radius: 50%;
    animation: spin 60s linear infinite;
}
.hero-orbit-2 { inset: 20%; border-style: solid; border-color: rgba(255, 255, 255, .08); animation-duration: 90s; animation-direction: reverse; }

.hero-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1rem .7rem .7rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: rgba(18, 31, 66, .72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5);
    color: #fff;
    line-height: 1.25;
    animation: float 7s ease-in-out infinite;
}
.hero-card strong { display: block; font-size: var(--fs-sm); }
.hero-card small { font-size: var(--fs-xs); color: var(--on-dark-muted); }
.hero-card-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
}
.hero-card-1 { top: 8%; left: -4%; }
.hero-card-2 { top: 44%; right: -8%; animation-delay: -2.5s; }
.hero-card-3 { bottom: 6%; left: 4%; animation-delay: -5s; }
.hero-card-1 .hero-card-icon { color: #ffb21a; }
.hero-card-2 .hero-card-icon { color: #5cc3f7; }
.hero-card-3 .hero-card-icon { color: #8fdc5a; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero: capas flotantes y paralaje ---------- */

.hero { --mx: 0; --my: 0; }
.hero-layers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-aurora {
    position: absolute;
    top: -30%;
    left: 30%;
    width: 70%;
    height: 90%;
    border-radius: 50%;
    background: conic-gradient(from 90deg, rgba(58, 111, 216, .35), rgba(194, 24, 155, .22), rgba(255, 178, 26, .18), rgba(53, 181, 58, .16), rgba(58, 111, 216, .35));
    filter: blur(90px);
    opacity: .75;
    animation: aurora 22s ease-in-out infinite alternate;
}
.hl {
    --d: 20;
    --s: 24px;
    --r: 0deg;
    position: absolute;
    width: var(--s);
    height: var(--s);
    border-radius: 24%;
    transform: translate3d(calc(var(--mx) * var(--d) * 1px), calc(var(--my) * var(--d) * 1px), 0) rotate(calc(45deg + var(--r)));
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
    /* La deriva usa 'translate', que se suma al 'transform' del paralaje sin pisarlo */
    animation: drift 9s ease-in-out infinite;
}
/* Rombos de color (colores del logo) */
.hl-1 { --s: 22px; --d: 30; top: 9%; left: 44%; background: #ffb21a; opacity: .85; }
.hl-2 { --s: 12px; --d: 14; top: 16%; left: 3%; background: #35b53a; opacity: .7; }
.hl-4 { --s: 16px; --d: 40; top: 34%; left: 52%; background: #c2189b; opacity: .7; }
.hl-5 { --s: 20px; --d: 24; bottom: 12%; left: 46%; background: #5cc3f7; opacity: .7; }
.hl-7 { --s: 14px; --d: 34; top: 12%; right: 6%; background: #f2441d; opacity: .75; }
.hl-9 { --s: 10px; --d: 12; top: 5%; left: 24%; background: #a7d61f; opacity: .6; }
/* Rombos de cristal (más grandes y difuminados, en distintas profundidades) */
.hl-3, .hl-6, .hl-8 {
    border: 1px solid rgba(255, 255, 255, .14);
    background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02));
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.hl-3 { --s: 56px; --d: 20; --r: 8deg; top: 6%; left: 62%; }
.hl-6 { --s: 44px; --d: 10; bottom: 10%; left: 4%; }
.hl-8 { --s: 120px; --d: 6; --r: -6deg; top: 52%; right: -30px; opacity: .8; }
.hl-1 { animation-duration: 7s; }
.hl-3 { animation-duration: 12s; animation-delay: -3s; }
.hl-4 { animation-duration: 8s; animation-delay: -5s; }
.hl-5 { animation-duration: 10s; animation-delay: -2s; }
.hl-8 { animation-duration: 16s; }

.hero-visual { transform: translate3d(calc(var(--mx) * 18px), calc(var(--my) * 18px), 0); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }

@keyframes drift {
    0%, 100% { translate: 0 0; }
    50% { translate: 6px -12px; }
}
@keyframes aurora {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    100% { transform: translate(-12%, 10%) rotate(40deg) scale(1.15); }
}

/* ---------- Clientes ---------- */

.clients { padding-block: 3rem; border-bottom: 1px solid var(--line); }
.clients-title {
    margin-bottom: 1.75rem;
    text-align: center;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.clients-plain { border-bottom: 1px solid var(--line); background: #fff; }
.clients-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.75rem 3rem;
}
.clients-list li { display: flex; align-items: center; justify-content: center; height: 64px; }
.clients-list img {
    width: auto;
    max-width: 160px;
    max-height: 52px;
    mix-blend-mode: multiply;
    filter: grayscale(1) contrast(1.05);
    opacity: .72;
    transition: filter .3s, opacity .3s;
}
.clients-list li:first-child img { max-width: 190px; }
.clients-list img:hover { filter: none; opacity: 1; }

/* ---------- Tarjetas ---------- */

.card-grid { display: grid; gap: 1.25rem; }
.card-grid-services { grid-template-columns: repeat(6, 1fr); }
.card-grid-services > :nth-child(-n+3) { grid-column: span 2; }
.card-grid-services > :nth-child(n+4) { grid-column: span 3; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); }
.card-soft { background: var(--bg-soft); box-shadow: none; }
.card-row { flex-direction: row; align-items: flex-start; gap: 1rem; }
.card-row .card-icon { margin-bottom: 0; }
.card-row p { color: var(--ink-2); }
.card-highlight { border-color: #c9dafb; background: linear-gradient(180deg, #f4f8ff, #fff); }
.card-highlight .btn { align-self: flex-start; margin-top: 1.25rem; }

.card-link {
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.card-link::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}
.card-link:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-link:hover::before { transform: scaleX(1); }

.card-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    flex: none;
}
.card-icon .icon { width: 24px; height: 24px; }

.card-more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: auto;
    padding-top: 1.25rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--primary);
}
.card-more .icon { transition: transform .2s var(--ease); }
.card-link:hover .card-more .icon { transform: translateX(4px); }

/* ---------- Pilares / valores ---------- */

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.pillar h3 { font-size: var(--fs-h4); margin-bottom: .5rem; }
.pillar p { font-size: var(--fs-sm); color: var(--muted); }
.pillar-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    color: var(--ink);
}
.pillar:nth-child(1) .pillar-icon { color: #e2860b; }
.pillar:nth-child(2) .pillar-icon { color: #d6266a; }
.pillar:nth-child(3) .pillar-icon { color: #6a3dc2; }
.pillar:nth-child(4) .pillar-icon { color: #2a9a3a; }
.pillar-icon .icon { width: 26px; height: 26px; }
.pillar-plain { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pillar-check {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--success-soft);
    color: var(--success);
}
.pillar-check .icon { width: 16px; height: 16px; stroke-width: 2.5; }

/* ---------- Proceso ---------- */

.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    counter-reset: step;
}
.process-step {
    position: relative;
    padding: 1.75rem;
    border: 1px solid var(--navy-line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
}
.process-step h3 { font-size: var(--fs-h4); margin-bottom: .5rem; }
.process-step p { font-size: var(--fs-sm); }
.process-num {
    display: inline-block;
    margin-bottom: 1.25rem;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Proyectos ---------- */

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: transform .25s var(--ease), box-shadow .25s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-logo {
    display: grid;
    place-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.project-logo { min-height: 120px; }
.project-logo img { width: auto; max-width: min(100%, 220px); max-height: 80px; }
.client-wordmark { font-size: 1.5rem; font-weight: 800; letter-spacing: .02em; color: var(--ink); }
.project-body { display: flex; flex-direction: column; flex: 1; }
.project-points { display: grid; gap: .45rem; margin: 1.1rem 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
.project-points li { display: flex; gap: .55rem; align-items: flex-start; line-height: 1.45; }
.project-points .icon { width: 1rem; height: 1rem; margin-top: .15rem; color: var(--success); stroke-width: 2.5; }
.project-grid-full { grid-template-columns: repeat(2, 1fr); }
.project-grid-full .project-card { flex-direction: row; }
.project-grid-full .project-logo { flex: 0 0 34%; border-bottom: 0; border-right: 1px solid var(--line); }
.project-body { padding: 1.5rem; }
.project-body h3 { font-size: var(--fs-h4); margin-bottom: .4rem; }
.project-body p { font-size: var(--fs-sm); color: var(--muted); }
.project-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; margin-bottom: .75rem; }
.project-client { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.tag {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-strong);
    font-size: .75rem;
    font-weight: 650;
}
.project-card.is-hidden { display: none; }

.filter-bar, .chip-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip-nav { margin-bottom: 0; justify-content: center; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-2);
    font: inherit;
    font-size: var(--fs-sm);
    font-weight: 550;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip .icon { color: var(--primary); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Kit Digital ---------- */

.kit-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}
.kit-band > div { max-width: 760px; }
.kit-band h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.kit-band p { color: var(--muted); }

.kit-logos-section { border-bottom: 1px solid var(--line); }
.kit-logos { width: 100%; max-width: 1100px; margin-inline: auto; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* ---------- Listas ---------- */

.check-list { display: grid; gap: .75rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; }
.check-list .icon {
    width: 22px;
    height: 22px;
    padding: 4px;
    margin-top: .15rem;
    border-radius: 50%;
    background: var(--success-soft);
    color: var(--success);
    stroke-width: 2.5;
}

/* ---------- Cabecera de páginas interiores ---------- */

.page-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
    background:
        radial-gradient(50% 90% at 90% 0%, rgba(58, 111, 216, .35), transparent 60%),
        var(--navy);
    color: var(--on-dark-muted);
}
.page-hero h1 { color: #fff; max-width: 900px; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
.page-hero .lead { max-width: 760px; }
.page-hero .container { position: relative; }
.page-hero-decor {
    position: absolute;
    right: -60px;
    top: 50%;
    width: 360px;
    transform: translateY(-50%) rotate(12deg);
    opacity: .12;
}
.page-hero-mark { width: 100%; height: auto; }

.breadcrumb { margin-bottom: 1.5rem; font-size: var(--fs-xs); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem; }
.breadcrumb li { display: flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before { content: "/"; opacity: .5; }
.breadcrumb a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; }

/* ---------- Empresa ---------- */

.feature-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.feature-num {
    display: block;
    margin-bottom: 1rem;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--primary);
}
.feature { padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.feature p { color: var(--muted); }

/* ---------- Servicios ---------- */

.service-detail-inner {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}
.service-detail-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.service-badge {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    border-radius: 18px;
    background: var(--navy);
    color: #fff;
    box-shadow: 0 12px 30px -10px rgba(11, 21, 48, .6);
}
.service-badge .icon { width: 30px; height: 30px; }
.service-summary { font-size: var(--fs-lg); color: var(--muted); }
.service-detail-body > p { font-size: var(--fs-lg); margin-bottom: 1.75rem; }
.service-detail-body .check-list { grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }

/* ---------- CTA ---------- */

.cta-band {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    overflow: hidden;
    padding: clamp(2rem, 1.5rem + 3vw, 4rem);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(70% 120% at 100% 0%, rgba(58, 111, 216, .55), transparent 60%),
        var(--navy);
    color: var(--on-dark-muted);
}
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { font-size: var(--fs-lg); }
.cta-band-body { position: relative; max-width: 640px; }
.cta-band-actions { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; flex: none; }
.cta-band-mail { display: inline-flex; align-items: center; gap: .5rem; color: var(--on-dark); font-size: var(--fs-sm); text-decoration: none; }
.cta-band-mail:hover { color: #fff; text-decoration: underline; }
.cta-band-decor {
    position: absolute;
    right: 18%;
    bottom: -90px;
    width: 280px;
    opacity: .1;
    transform: rotate(-12deg);
}
.cta-mark { width: 100%; height: auto; }

/* ---------- Contacto ---------- */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}
.contact-form h2 { margin-bottom: 1.5rem; }
.contact-aside { display: grid; gap: 1.25rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.req { color: var(--danger); }
.optional { font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }

.field input:not([type="checkbox"]), .field select, .field textarea {
    width: 100%;
    padding: .8rem 1rem;
    border: 1.5px solid var(--line-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: var(--fs-base);
    line-height: 1.4;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field select {
    appearance: none;
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #aab6c8; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(47, 111, 222, .15);
}
.field [aria-invalid="true"] { border-color: var(--danger) !important; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(196, 43, 43, .15) !important; }
.field-error { margin: 0; font-size: var(--fs-xs); font-weight: 550; color: var(--danger); }

.check { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400 !important; color: var(--ink-2) !important; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: .15rem 0 0; flex: none; accent-color: var(--primary); }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-legal { margin: 1.5rem 0 0; padding: 1rem; border-radius: 10px; background: var(--bg-soft); font-size: var(--fs-xs); color: var(--muted); }
.form-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.form-note { margin: 0; font-size: var(--fs-xs); color: var(--muted); }

.alert {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    font-size: var(--fs-sm);
}
.alert .icon { width: 22px; height: 22px; margin-top: .1rem; }
.alert strong { display: block; margin-bottom: .2rem; color: inherit; }
.alert-success { background: var(--success-soft); color: #0f5a32; border: 1px solid #bfe5cf; }
.alert-error { background: var(--danger-soft); color: #8a1c1c; border: 1px solid #f3c9c9; }
.alert:focus { outline: none; }

.info-list { display: grid; gap: 1.25rem; margin-top: .5rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list small { display: block; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.info-list a { font-weight: 550; }
.info-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    flex: none;
}

/* ---------- Textos legales ---------- */

.prose { max-width: 780px; }
.prose h2 { font-size: 1.375rem; margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; padding-left: 1.25rem; list-style: disc; }
.prose li { margin-bottom: .35rem; }
.prose-note { padding: 1rem; border-radius: 10px; background: var(--bg-soft); font-size: var(--fs-sm); color: var(--muted); }
.prose-updated { margin-top: 3rem; font-size: var(--fs-sm); color: var(--muted); }
.pending { padding: .1rem .45rem; border-radius: 6px; background: #fff4d6; color: #8a5a00; font-size: var(--fs-sm); font-weight: 600; }

/* ---------- 404 ---------- */

.not-found { padding-block: clamp(4rem, 10vw, 8rem); text-align: center; }
.not-found-inner { display: flex; flex-direction: column; align-items: center; max-width: 640px; }
.not-found-mark { width: 120px; height: 120px; margin-bottom: 2rem; }
.not-found .lead { color: var(--muted); margin-bottom: 2rem; }
.not-found .hero-actions { justify-content: center; }

/* ---------- Franja Kit Digital ---------- */

.kit-strip { padding-block: 1.25rem; border-top: 1px solid var(--line); background: #fff; }
.kit-strip a { display: block; }
.kit-strip img { width: 100%; max-width: 960px; margin-inline: auto; }

/* ---------- Pie ---------- */

.site-footer { background: var(--navy); color: var(--on-dark-muted); font-size: var(--fs-sm); }
.site-footer::before { content: ""; display: block; height: 4px; background: var(--brand-gradient); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.3fr 1.4fr;
    gap: 2.5rem;
    padding-block: 4rem 3rem;
}
.footer-brand p { margin-top: 1.25rem; max-width: 300px; }
.footer-title { margin-bottom: 1.1rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer-links { display: grid; gap: .6rem; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: grid; gap: .85rem; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; }
.footer-contact .icon { margin-top: .2rem; color: #9cc0ff; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-block: 1.5rem;
    border-top: 1px solid var(--navy-line);
    font-size: var(--fs-xs);
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------- iXitec Facturación (producto) ---------- */

.nav-badge {
    display: inline-block;
    margin-left: .35rem;
    padding: .1rem .45rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: .6875rem;
    font-weight: 700;
    vertical-align: 1px;
}

.hero-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    max-width: 100%;
    margin-bottom: 1.75rem;
    padding: .45rem .55rem .45rem .45rem;
    border: 1.5px solid transparent;
    border-radius: 999px;
    background:
        linear-gradient(var(--navy-2), var(--navy-2)) padding-box,
        var(--brand-gradient) border-box;
    color: var(--on-dark);
    font-size: var(--fs-sm);
    line-height: 1.3;
    text-decoration: none;
    box-shadow: 0 0 0 0 rgba(92, 195, 247, .0), 0 10px 30px -10px rgba(194, 24, 155, .45);
    animation: pill-glow 3.2s ease-in-out infinite;
    transition: transform .2s var(--ease);
}
.hero-pill:hover { color: #fff; transform: translateY(-2px); }
.hero-pill-tag {
    position: relative;
    flex: none;
    padding: .3rem .75rem .3rem 1.45rem;
    border-radius: 999px;
    background: var(--text-gradient);
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hero-pill-tag::before {
    content: "";
    position: absolute;
    left: .6rem;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
    border-radius: 50%;
    background: #fff;
    animation: pill-dot 1.6s ease-in-out infinite;
}
.hero-pill-text { white-space: nowrap; }
.hero-pill-text strong { color: #fff; font-weight: 700; }
.hero-pill-text span { color: var(--on-dark-muted); }
.hero-pill-cta {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    flex: none;
    padding: .35rem .85rem;
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font-size: var(--fs-xs);
    font-weight: 700;
}
.hero-pill-cta .icon { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.hero-pill:hover .hero-pill-cta .icon { transform: translateX(3px); }

@keyframes pill-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(92, 195, 247, 0), 0 10px 30px -10px rgba(194, 24, 155, .45); }
    50% { box-shadow: 0 0 0 6px rgba(92, 195, 247, .12), 0 10px 34px -8px rgba(194, 24, 155, .6); }
}
@keyframes pill-dot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.browser-frame {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(13, 21, 38, .06), 0 30px 60px -20px rgba(13, 21, 38, .35);
}
.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border-bottom: 1px solid #e2e8f0;
    background: #f1f5f9;
}
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.browser-bar i:nth-child(1) { background: #f87171; }
.browser-bar i:nth-child(2) { background: #fbbf24; }
.browser-bar i:nth-child(3) { background: #4ade80; }
.browser-bar span {
    flex: 1;
    max-width: 260px;
    margin: 0 auto;
    padding: .15rem .75rem;
    border-radius: 6px;
    background: #fff;
    color: var(--muted);
    font-size: .6875rem;
    text-align: center;
}
.browser-frame img { width: 100%; }

.product-teaser-section { padding-top: calc(var(--section-y) * .75); }
.product-teaser {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding: clamp(1.75rem, 1.2rem + 2.5vw, 3.5rem);
    border: 1px solid #c9dafb;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(60% 90% at 100% 0%, rgba(47, 111, 222, .12), transparent 60%),
        linear-gradient(180deg, #f6f9ff, #fff);
}
.product-teaser h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); }
.product-teaser-copy > p { font-size: var(--fs-lg); color: var(--muted); }
.product-teaser .check-list { margin: 1.5rem 0 2rem; }
.product-hero {
    position: relative;
    overflow: hidden;
    padding-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
    background:
        radial-gradient(55% 70% at 80% 10%, rgba(58, 111, 216, .45), transparent 60%),
        radial-gradient(40% 50% at 0% 90%, rgba(34, 197, 94, .14), transparent 60%),
        var(--navy);
    color: var(--on-dark-muted);
}
.product-hero-inner { position: relative; }
.product-hero-copy { max-width: 860px; margin: 0 auto; text-align: center; }
.product-hero h1 { color: #fff; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); margin-bottom: 1.25rem; }
.product-hero .lead { margin-inline: auto; max-width: 720px; }
.product-hero .hero-actions { justify-content: center; margin-top: 2rem; }
.product-hero .breadcrumb { margin-bottom: 2rem; }
.product-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1000px;
    margin: 3.5rem auto 0;
}
.product-highlights li {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(18, 31, 66, .6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    line-height: 1.25;
}
.product-highlights strong { display: block; font-size: var(--fs-sm); }
.product-highlights small { font-size: var(--fs-xs); color: var(--on-dark-muted); }
.product-highlights li:nth-child(1) .hero-card-icon { color: #4ade80; }
.product-highlights li:nth-child(2) .hero-card-icon { color: #5cc3f7; }
.product-highlights li:nth-child(3) .hero-card-icon { color: #ffb21a; }
.product-highlights li:nth-child(4) .hero-card-icon { color: #f472b6; }

/* Esquema: recorrido Verifactu */
.flow {
    padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-lg);
}
.flow-steps { position: relative; display: grid; gap: 1.1rem; }
.flow-steps::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(180deg, #2f6fde, #22c55e);
    opacity: .35;
}
.flow-step { position: relative; display: flex; gap: 1rem; align-items: flex-start; }
.flow-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    box-shadow: 0 0 0 5px #fff;
}
.flow-icon .icon { width: 22px; height: 22px; }
.flow-step:last-child .flow-icon { background: var(--success-soft); color: var(--success); }
.flow-body { display: flex; flex-direction: column; line-height: 1.35; padding-top: .1rem; }
.flow-body small { font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.flow-body strong { color: var(--ink); font-size: var(--fs-base); }
.flow-body span { font-size: var(--fs-sm); color: var(--muted); }
.flow-result {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 1.5rem 0 0;
    padding: .85rem 1rem;
    border-radius: 12px;
    background: var(--success-soft);
    color: #0f5a32;
    font-size: var(--fs-sm);
    font-weight: 650;
}
.flow-result .icon { width: 1.3rem; height: 1.3rem; }

/* Esquema: conexiones */
.hub {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 1rem 1.25rem;
    padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 50% 50%, rgba(47, 111, 222, .12), transparent 60%),
        var(--bg-soft);
}
.hub::before {
    content: "";
    position: absolute;
    inset: 22% 25%;
    border: 2px dashed #c9dafb;
    border-radius: 24px;
}
.hub-center {
    position: relative;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    padding: 1rem 1.5rem;
    border-radius: 18px;
    background: var(--navy);
    color: #fff;
    box-shadow: 0 16px 40px -14px rgba(11, 21, 48, .6);
    text-align: center;
}
.hub-mark { width: 44px; height: 44px; }
.hub-center strong { font-size: var(--fs-sm); }
.hub-node {
    position: relative;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem .9rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    line-height: 1.3;
}
.hub-node strong { display: block; font-size: var(--fs-sm); color: var(--ink); }
.hub-node small { font-size: var(--fs-xs); color: var(--muted); }
.hub-node .flow-icon { width: 40px; height: 40px; border-radius: 12px; box-shadow: none; }
.hub-node-1 { grid-column: 1; grid-row: 1; }
.hub-node-2 { grid-column: 2; grid-row: 1; }
.hub-node-3 { grid-column: 1; grid-row: 3; }
.hub-node-4 { grid-column: 2; grid-row: 3; }
.hub-node-1 .flow-icon { background: var(--success-soft); color: var(--success); }

.product-teaser-visual .flow { box-shadow: var(--shadow); }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-reverse .split-copy { order: 2; }
.split-copy > p { font-size: var(--fs-lg); color: var(--muted); }
.split-copy .check-list { margin-top: 1.5rem; }
.split-link { margin-top: 1.5rem; font-size: var(--fs-sm); font-weight: 600; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.75rem; }
.feature-item h3 { font-size: var(--fs-h4); margin-bottom: .4rem; }
.feature-item p { font-size: var(--fs-sm); color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.gallery-item h3 { margin: 1.25rem 0 .35rem; font-size: var(--fs-h4); }
.gallery-item p { font-size: var(--fs-sm); }
.gallery-item .browser-frame { box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6); border-color: rgba(255, 255, 255, .1); }
.gallery-note { margin-top: 2rem; font-size: var(--fs-xs); color: var(--on-dark-muted); text-align: center; opacity: .8; }

.card-row h3 { margin-bottom: .3rem; }

.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: .75rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .2s; }
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
    position: relative;
    padding: 1.15rem 3.25rem 1.15rem 1.4rem;
    font-weight: 650;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 1.4rem 1.25rem; color: var(--muted); }

/* ---------- Presupuesto por pasos ---------- */

.wizard-progress { display: none; }
.is-wizard .wizard-progress {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.75rem;
    counter-reset: none;
}
.wizard-progress li {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-top: .75rem;
    border-top: 3px solid var(--line);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--muted);
}
.wizard-progress li span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: none;
    border-radius: 50%;
    background: var(--bg-soft);
    font-size: .75rem;
}
.wizard-progress li.is-current { border-top-color: var(--primary); color: var(--ink); }
.wizard-progress li.is-current span { background: var(--primary); color: #fff; }
.wizard-progress li.is-done { border-top-color: var(--success); }
.wizard-progress li.is-done span { background: var(--success); color: #fff; }

.wizard-step + .wizard-step { margin-top: 2rem; }
.is-wizard:not(.is-last-step) .form-legal { display: none; }
.is-wizard [data-wizard-next], .is-wizard [data-submit] { margin-left: auto; }
.is-wizard .wizard-step + .wizard-step { margin-top: 0; }
.wizard-step-title { margin-bottom: 1.25rem; }
.wizard-step-title:focus { outline: none; }

.choice-group { margin: 0 0 1.5rem; padding: 0; border: 0; min-width: 0; }
.choice-group legend { margin-bottom: .75rem; padding: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
    display: flex;
    align-items: center;
    min-height: 52px;
    height: 100%;
    padding: .75rem 1rem .75rem 2.6rem;
    border: 1.5px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    font-size: var(--fs-sm);
    font-weight: 550;
    line-height: 1.35;
    color: var(--ink-2);
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.choice span::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid var(--line-strong);
    border-radius: 50%;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.choice:hover span { border-color: #aab6c8; }
.choice input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--ink); }
.choice input:checked + span::before { border-color: var(--primary); box-shadow: inset 0 0 0 3px #fff; background: var(--primary); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(47, 111, 222, .2); }
.choice-group[aria-invalid="true"] .choice span { border-color: #e8a5a5; }

.next-steps { display: grid; gap: 1rem; margin-top: 1rem; counter-reset: step; }
.next-steps li { position: relative; padding-left: 2.5rem; font-size: var(--fs-sm); counter-increment: step; }
.next-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: .8125rem;
    font-weight: 700;
}

.card-quote { border-color: #c9dafb; background: linear-gradient(180deg, #f4f8ff, #fff); }
.cta-band-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Contacto rápido: WhatsApp y barra móvil ---------- */

.wa-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.1rem;
    border-radius: 999px;
    background: #1fa855;
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 650;
    text-decoration: none;
    box-shadow: 0 10px 28px -8px rgba(18, 140, 70, .65);
    transition: transform .2s var(--ease), background-color .2s;
}
.wa-float:hover { color: #fff; background: #178f47; transform: translateY(-2px); }
.wa-float .icon { width: 1.5rem; height: 1.5rem; }
.info-icon-wa { background: #e6f7ed; color: #178f47; }

.quick-bar { display: none; }

/* ---------- Animación de aparición ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .clients-list { grid-template-columns: repeat(4, 1fr); gap: 1.5rem 2rem; }
    .pillars { grid-template-columns: repeat(2, 1fr); }
    .process { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { max-width: 400px; }
    .card-grid-services, .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .card-grid-services > * { grid-column: auto !important; }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .project-grid-full { grid-template-columns: 1fr; }
    .product-teaser, .split { grid-template-columns: 1fr; }
    .split-reverse .split-copy { order: 0; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
    .product-highlights { grid-template-columns: repeat(2, 1fr); }
    .feature-columns { grid-template-columns: 1fr; }
    .service-detail-inner, .two-col, .contact-layout { grid-template-columns: 1fr; }
    .service-detail-head, .contact-aside { position: static; }
    .cta-band, .kit-band { flex-direction: column; align-items: flex-start; }
    .section-head-split { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    :root { --header-h: 64px; }
    .brand-mark { width: 34px; height: 34px; }
    .brand-name { font-size: 1.2rem; }
    .hero-visual { display: none; }
    .clients-list { grid-template-columns: repeat(2, 1fr); }
    .card-grid-services, .card-grid-2, .card-grid-3, .project-grid, .pillars, .process { grid-template-columns: 1fr; }
    .project-grid-full .project-card { flex-direction: column; }
    .project-grid-full .project-logo { border-right: 0; border-bottom: 1px solid var(--line); }
    .clients-list { gap: 1.25rem 2rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .product-hero-copy { text-align: left; }
    .product-hero .hero-actions { justify-content: flex-start; }
    .browser-bar { height: 26px; }
    .product-highlights { grid-template-columns: 1fr; }
    .hub { grid-template-columns: 1fr; }
    .hub::before { display: none; }
    .hub-center, .hub-node-1, .hub-node-2, .hub-node-3, .hub-node-4 { grid-column: auto; grid-row: auto; }
    .browser-bar span { display: none; }
    .clients-list img { max-width: 130px; max-height: 44px; }
    .form-grid { grid-template-columns: 1fr; }
    .service-detail-body .check-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions .btn, .form-actions .btn { width: 100%; }
    .page-hero-decor { width: 220px; right: -80px; }
    .hero-pill { gap: .6rem; }
    .hl-1, .hl-2, .hl-3, .hl-4, .hl-8 { display: none; }
    .hero-pill-text span { display: none; }
    .hero-pill-text { white-space: normal; }

    /* Barra fija de contacto rápido en lugar del botón flotante */
    .wa-float { display: none; }
    body { padding-bottom: 64px; }
    .quick-bar {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 45;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        height: 64px;
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, .96);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
    .quick-bar a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .2rem;
        color: var(--ink-2);
        font-size: .75rem;
        font-weight: 600;
        text-decoration: none;
    }
    .quick-bar .icon { width: 1.35rem; height: 1.35rem; color: var(--primary); }
    .quick-bar .quick-bar-wa .icon { color: #1fa855; }
    .choices { grid-template-columns: 1fr; }
    .wizard-progress li { font-size: 0; gap: 0; }
    .wizard-progress li.is-current { font-size: var(--fs-xs); gap: .5rem; }
    .form-actions [data-wizard-back] { order: 2; width: 100%; }
}

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

@media print {
    .site-header, .site-footer, .cta-band, .hero-visual, .filter-bar, .wa-float, .quick-bar, .kit-strip { display: none !important; }
    .hero, .page-hero, .section-dark { background: none !important; color: #000 !important; }
    .hero h1, .page-hero h1, .section-dark h2, .section-dark h3 { color: #000 !important; }
    .js .reveal { opacity: 1; transform: none; }
}
