/* ============================================================
   ITsolutionsMFPC — Sistema visual público
   Paleta: azul profundo, azul eléctrico, cian y blanco.
   Sin dependencias externas. Mobile-first.
   ============================================================ */

:root {
    --navy-950: #040d1f;
    --navy-900: #071a3a;
    --navy-850: #091f45;
    --navy-800: #0c2754;
    --navy-700: #123568;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --cyan-300: #67e8f9;
    --white: #ffffff;
    --slate-50: #f6f9fe;
    --slate-100: #eaf0f9;
    --slate-200: #d8e2f1;
    --slate-300: #b9c8de;
    --slate-500: #5d6b84;
    --slate-600: #45536b;
    --slate-700: #2c3a52;
    --ink: #0c1a32;
    --success: #0f9f6e;
    --danger: #d63b4a;
    --warning: #d98a0b;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 1px 2px rgba(7, 26, 58, .06), 0 4px 14px rgba(7, 26, 58, .05);
    --shadow: 0 12px 40px rgba(7, 26, 58, .10);
    --shadow-lg: 0 28px 70px rgba(4, 13, 31, .22);
    --font: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    --header-h: 76px;
    --container: 1180px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: var(--blue-600);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--blue-700);
}

h1, h2, h3, h4 {
    margin: 0 0 .6em;
    line-height: 1.15;
    letter-spacing: -.025em;
    color: var(--ink);
}

h1 { font-size: clamp(2.35rem, 5vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

p {
    margin: 0 0 1rem;
}

ul, ol {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
}

strong {
    font-weight: 700;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 999;
    padding: .75rem 1.25rem;
    background: var(--cyan-400);
    color: var(--navy-950);
    font-weight: 700;
    border-radius: 0 0 12px 12px;
    transition: top .2s ease;
}

.skip-link:focus {
    top: 0;
    color: var(--navy-950);
}

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.container-wide {
    width: min(100% - 2rem, 1320px);
    margin-inline: auto;
}

.section {
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.section-tight {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-soft {
    background: var(--slate-50);
}

.section-dark {
    background:
        radial-gradient(900px 400px at 85% 10%, rgba(34, 211, 238, .16), transparent 60%),
        radial-gradient(700px 400px at 10% 90%, rgba(37, 99, 235, .22), transparent 60%),
        var(--navy-950);
    color: rgba(255, 255, 255, .82);
}

.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

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

.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan-500), var(--blue-600));
    border-radius: 2px;
}

.section-dark .eyebrow {
    color: var(--cyan-300);
}

.section-head {
    max-width: 720px;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

.section-head.center .eyebrow {
    justify-content: center;
}

.section-head p {
    color: var(--slate-500);
    font-size: 1.06rem;
    margin-bottom: 0;
}

.section-dark .section-head p {
    color: rgba(255, 255, 255, .68);
}

.lead {
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    color: var(--slate-600);
}

.text-gradient {
    background: linear-gradient(100deg, var(--cyan-300), var(--cyan-400) 45%, var(--blue-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Botones ---------- */
.btn {
    --btn-bg: var(--blue-600);
    --btn-color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .82rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-color);
    font-family: inherit;
    font-size: .94rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s ease, background .2s ease, border-color .2s ease;
    box-shadow: 0 10px 26px rgba(37, 99, 235, .24);
}

.btn:hover {
    transform: translateY(-2px);
    color: var(--btn-color);
    box-shadow: 0 16px 34px rgba(37, 99, 235, .32);
}

.btn:active {
    transform: translateY(0);
}

.btn .icon {
    width: 18px;
    height: 18px;
}

.btn-primary {
    --btn-bg: linear-gradient(110deg, var(--blue-600), var(--cyan-500));
    --btn-color: var(--white);
    border: 0;
}

.btn-secondary {
    --btn-bg: var(--navy-900);
    --btn-color: var(--white);
}

.btn-ghost {
    --btn-bg: transparent;
    --btn-color: var(--navy-900);
    border-color: var(--slate-200);
    box-shadow: none;
}

.btn-ghost:hover {
    --btn-bg: var(--slate-50);
    --btn-color: var(--navy-900);
    box-shadow: var(--shadow-sm);
}

.section-dark .btn-ghost,
.hero .btn-ghost {
    --btn-color: var(--white);
    border-color: rgba(255, 255, 255, .28);
}

.section-dark .btn-ghost:hover,
.hero .btn-ghost:hover {
    --btn-bg: rgba(255, 255, 255, .1);
    --btn-color: var(--white);
}

.btn-whatsapp {
    --btn-bg: #128c4b;
    --btn-color: var(--white);
    box-shadow: 0 10px 26px rgba(18, 140, 75, .25);
}

.btn-sm {
    padding: .55rem .95rem;
    font-size: .82rem;
}

.btn-lg {
    padding: 1rem 1.7rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-danger {
    --btn-bg: var(--danger);
    --btn-color: var(--white);
    box-shadow: 0 10px 26px rgba(214, 59, 74, .2);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(7, 26, 58, .86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: background .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
    background: rgba(4, 13, 31, .96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--white);
    font-weight: 800;
    letter-spacing: -.02em;
}

.brand:hover {
    color: var(--white);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    color: var(--white);
    box-shadow: 0 8px 20px rgba(34, 211, 238, .25);
    flex: 0 0 auto;
}

.brand-mark svg {
    width: 26px;
    height: 26px;
}

.brand-text {
    font-size: 1.12rem;
    line-height: 1;
}

.brand-text span {
    color: var(--cyan-300);
    font-weight: 700;
}

.brand-light {
    color: var(--white);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: .15rem;
}

.main-nav > a:not(.btn) {
    padding: .55rem .7rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, .78);
    font-size: .88rem;
    font-weight: 600;
    white-space: nowrap;
}

.main-nav > a:not(.btn):hover,
.main-nav > a.is-active:not(.btn) {
    color: var(--white);
    background: rgba(255, 255, 255, .08);
}

.nav-cta {
    margin-left: .6rem;
    box-shadow: none;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--white);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 8vw, 7.5rem) 0 clamp(3.5rem, 6vw, 6rem);
    background:
        radial-gradient(1000px 500px at 80% 15%, rgba(34, 211, 238, .18), transparent 60%),
        radial-gradient(900px 600px at 5% 95%, rgba(37, 99, 235, .28), transparent 60%),
        linear-gradient(150deg, var(--navy-950), var(--navy-900) 55%, #0a2250);
    color: rgba(255, 255, 255, .82);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 78%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    right: -140px;
    bottom: -220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, .18), transparent 65%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.25rem;
    text-wrap: balance;
}

.hero h1 .text-gradient {
    display: inline;
}

.hero-subtitle {
    max-width: 620px;
    font-size: clamp(1.02rem, 1.4vw, 1.2rem);
    color: rgba(255, 255, 255, .72);
    margin-bottom: 1.8rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-bottom: 2rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.1rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    color: rgba(255, 255, 255, .62);
    font-weight: 600;
}

.hero-trust span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan-400);
    box-shadow: 0 0 10px var(--cyan-400);
}

/* Visual del hero */
.hero-visual {
    position: relative;
    min-height: 430px;
}

.system-window {
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(16, 45, 88, .92), rgba(5, 17, 39, .96));
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    animation: float-window 7s ease-in-out infinite;
}

.system-window-bar {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .03);
}

.system-window-bar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
}

.system-window-bar i:first-child { background: #ff6b6b; }
.system-window-bar i:nth-child(2) { background: #ffd166; }
.system-window-bar i:nth-child(3) { background: #06d6a0; }

.system-window-title {
    margin-left: auto;
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
    font-weight: 700;
}

.system-window-body {
    padding: 1.15rem;
}

.system-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    margin-bottom: .9rem;
}

.system-kpi {
    padding: .7rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
}

.system-kpi small {
    display: block;
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .45);
    margin-bottom: .25rem;
}

.system-kpi strong {
    font-size: 1.05rem;
    color: var(--cyan-300);
    font-weight: 800;
}

.process-canvas {
    position: relative;
    height: 190px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background:
        radial-gradient(circle at 30% 30%, rgba(37, 99, 235, .22), transparent 50%),
        radial-gradient(circle at 75% 70%, rgba(34, 211, 238, .16), transparent 55%),
        rgba(4, 13, 31, .55);
    overflow: hidden;
}

.process-canvas::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 22px 22px;
}

.process-node {
    position: absolute;
    display: grid;
    place-items: center;
    min-width: 76px;
    padding: .45rem .6rem;
    border: 1px solid rgba(103, 232, 249, .35);
    border-radius: 9px;
    background: rgba(8, 34, 70, .92);
    color: var(--white);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .03em;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
}

.process-node.is-primary {
    border-color: var(--cyan-400);
    background: linear-gradient(120deg, var(--blue-600), var(--cyan-500));
}

.node-1 { top: 18px; left: 16px; }
.node-2 { top: 72px; left: 42%; }
.node-3 { top: 18px; right: 16px; }
.node-4 { bottom: 18px; left: 24%; }
.node-5 { bottom: 18px; right: 20px; }

.process-line {
    position: absolute;
    height: 1.5px;
    background: linear-gradient(90deg, rgba(103, 232, 249, .1), rgba(103, 232, 249, .65));
    transform-origin: left center;
}

.line-1 { top: 48px; left: 92px; width: 96px; transform: rotate(14deg); }
.line-2 { top: 78px; left: 51%; width: 90px; transform: rotate(-13deg); }
.line-3 { top: 112px; left: 46%; width: 70px; transform: rotate(48deg); }
.line-4 { bottom: 44px; left: 36%; width: 110px; transform: rotate(-2deg); }

.system-float {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .65rem .85rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: rgba(7, 26, 58, .92);
    box-shadow: var(--shadow);
    color: var(--white);
    font-size: .74rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.system-float .icon {
    width: 18px;
    height: 18px;
    color: var(--cyan-300);
}

.float-a { top: -18px; right: 8px; animation: float-chip 6s ease-in-out infinite; }
.float-b { bottom: 8px; left: -18px; animation: float-chip 7.5s ease-in-out .8s infinite; }

@keyframes float-window {
    0%, 100% { transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(0); }
    50% { transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(-10px); }
}

@keyframes float-window-mobile {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes float-chip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* ---------- Barra de confianza ---------- */
.trust-bar {
    border-bottom: 1px solid var(--slate-100);
    background: var(--white);
}

.trust-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
}

.trust-bar span {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--slate-500);
}

.trust-bar strong {
    color: var(--navy-900);
}

/* ---------- Tarjetas ---------- */
.grid {
    display: grid;
    gap: 1.25rem;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    position: relative;
    padding: 1.6rem;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
}

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

.card-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1.1rem;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(34, 211, 238, .16));
    color: var(--blue-600);
}

.card-icon .icon {
    width: 24px;
    height: 24px;
}

.card h3 {
    margin-bottom: .45rem;
}

.card p {
    color: var(--slate-500);
    font-size: .94rem;
    margin-bottom: 0;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: 1rem;
    font-size: .86rem;
    font-weight: 700;
}

.card-link .icon {
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
}

.card-link:hover .icon {
    transform: translateX(3px);
}

.value-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--slate-50);
    border: 1px solid var(--slate-100);
}

.value-card .icon {
    width: 26px;
    height: 26px;
    color: var(--blue-600);
    margin-bottom: .9rem;
}

.value-card h3 {
    font-size: 1.05rem;
    margin-bottom: .35rem;
}

.value-card p {
    margin: 0;
    font-size: .9rem;
    color: var(--slate-500);
}

/* ---------- Servicios ---------- */
.service-card {
    display: flex;
    flex-direction: column;
    padding: 1.8rem;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.service-card .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
}

.service-card .card-icon .icon {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 1.28rem;
}

.service-card p {
    flex: 1;
    color: var(--slate-500);
    font-size: .94rem;
}

.service-features {
    margin: 1rem 0 1.3rem;
    padding: 0;
    list-style: none;
}

.service-features li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: .45rem;
    font-size: .88rem;
    color: var(--slate-600);
}

.service-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .48em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan-400);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .16);
}

/* ---------- Portafolio ---------- */
.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.project-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(140deg, var(--navy-900), var(--navy-700));
    overflow: hidden;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}

.project-card:hover .project-media img {
    transform: scale(1.035);
}

.project-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: rgba(4, 13, 31, .82);
    color: var(--cyan-300);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.project-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.4rem;
}

.project-body h3 {
    margin-bottom: .2rem;
    font-size: 1.3rem;
}

.project-tagline {
    margin-bottom: .7rem;
    color: var(--blue-600);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.project-body p {
    flex: 1;
    color: var(--slate-500);
    font-size: .92rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: .8rem 0 1rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: .25rem .55rem;
    border: 1px solid var(--slate-200);
    border-radius: 6px;
    background: var(--slate-50);
    color: var(--slate-600);
    font-size: .7rem;
    font-weight: 600;
}

/* ---------- Listas con check ---------- */
.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: .7rem;
    color: var(--slate-600);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(34, 211, 238, .16);
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .45);
}

.check-list li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: .42em;
    width: 5px;
    height: 9px;
    border: solid var(--blue-600);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.section-dark .check-list li {
    color: rgba(255, 255, 255, .72);
}

/* ---------- Split ---------- */
.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.split.reverse .split-media {
    order: 2;
}

.split-media {
    position: relative;
}

.media-frame {
    position: relative;
    padding: 1rem;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
}

.media-frame img {
    border-radius: var(--radius);
    width: 100%;
}

.media-frame-dark {
    border-color: rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    box-shadow: none;
}

.media-note {
    margin-top: .7rem;
    font-size: .72rem;
    color: var(--slate-500);
    text-align: center;
}

/* ---------- Proceso / pasos ---------- */
.steps {
    display: grid;
    gap: 1rem;
    counter-reset: step;
}

.step {
    position: relative;
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.2rem;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius);
    background: var(--white);
}

.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--navy-900);
    color: var(--cyan-300);
    font-family: var(--mono);
    font-size: .78rem;
    font-weight: 700;
}

.step h3 {
    margin-bottom: .2rem;
    font-size: 1.02rem;
}

.step p {
    margin: 0;
    color: var(--slate-500);
    font-size: .9rem;
}

/* ---------- Automatización (flujos) ---------- */
.flow-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.flow-card {
    padding: 1.4rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .035);
}

.flow-card h3 {
    font-size: 1.05rem;
    margin-bottom: .35rem;
}

.flow-card p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, .6);
    font-size: .88rem;
}

.flow-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
}

.flow-step {
    padding: .35rem .6rem;
    border: 1px solid rgba(103, 232, 249, .25);
    border-radius: 6px;
    background: rgba(34, 211, 238, .08);
    color: var(--cyan-300);
    font-size: .68rem;
    font-weight: 700;
}

.flow-arrow {
    color: rgba(255, 255, 255, .3);
    font-size: .75rem;
}

/* ---------- ISO ---------- */
.iso-highlight {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2rem;
    padding: clamp(1.6rem, 4vw, 2.6rem);
    border: 1px solid rgba(37, 99, 235, .14);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(600px 260px at 90% 10%, rgba(34, 211, 238, .1), transparent 60%),
        linear-gradient(140deg, #f3f8ff, #ffffff);
}

.iso-code {
    display: inline-flex;
    padding: .3rem .65rem;
    border-radius: 6px;
    background: var(--navy-900);
    color: var(--cyan-300);
    font-family: var(--mono);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.iso-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.iso-card {
    display: flex;
    flex-direction: column;
    padding: 1.3rem;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius);
    background: var(--white);
    transition: transform .2s var(--ease), box-shadow .2s ease;
}

.iso-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.iso-card .iso-code {
    align-self: flex-start;
    margin-bottom: .7rem;
}

.iso-card h3 {
    font-size: .98rem;
    margin-bottom: .3rem;
}

.iso-card p {
    flex: 1;
    margin: 0;
    color: var(--slate-500);
    font-size: .84rem;
}

.iso-card .card-link {
    margin-top: .8rem;
}

/* ---------- Estadísticas ---------- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.stat-block {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--slate-100);
    text-align: center;
}

.stat-block strong {
    display: block;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--navy-900);
}

.stat-block span {
    display: block;
    margin-top: .5rem;
    color: var(--slate-500);
    font-size: .82rem;
    font-weight: 600;
}

.section-dark .stat-block {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .1);
}

.section-dark .stat-block strong {
    color: var(--cyan-300);
}

.section-dark .stat-block span {
    color: rgba(255, 255, 255, .6);
}

/* ---------- Testimonios ---------- */
.testimonial-card {
    position: relative;
    padding: 1.6rem;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.testimonial-card .icon-quote {
    width: 28px;
    height: 28px;
    color: var(--cyan-500);
    margin-bottom: .8rem;
}

.testimonial-card blockquote {
    margin: 0 0 1rem;
    color: var(--slate-700);
    font-size: .95rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.testimonial-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    color: var(--white);
    font-weight: 800;
    font-size: .8rem;
}

.testimonial-author strong {
    display: block;
    font-size: .84rem;
    line-height: 1.2;
}

.testimonial-author span {
    font-size: .75rem;
    color: var(--slate-500);
}

/* ---------- Blog ---------- */
.post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius);
    background: var(--white);
    transition: transform .2s var(--ease), box-shadow .2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.post-media {
    aspect-ratio: 16 / 9;
    background: linear-gradient(140deg, var(--navy-900), var(--blue-600));
    overflow: hidden;
}

.post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    color: rgba(255, 255, 255, .55);
}

.post-placeholder .icon {
    width: 42px;
    height: 42px;
}

.post-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.2rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .5rem;
    color: var(--slate-500);
    font-size: .72rem;
    font-weight: 600;
}

.post-meta .tag {
    padding: .15rem .45rem;
    font-size: .66rem;
    color: var(--blue-600);
    border-color: rgba(37, 99, 235, .18);
    background: rgba(37, 99, 235, .05);
}

.post-body h3 {
    font-size: 1.08rem;
    margin-bottom: .35rem;
}

.post-body h3 a {
    color: var(--ink);
}

.post-body h3 a:hover {
    color: var(--blue-600);
}

.post-body p {
    flex: 1;
    color: var(--slate-500);
    font-size: .88rem;
}

/* ---------- FAQ ---------- */
.faq {
    display: grid;
    gap: .7rem;
}

.faq details {
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-sm);
    background: var(--white);
    overflow: hidden;
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.2rem;
    cursor: pointer;
    font-weight: 700;
    font-size: .94rem;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--blue-600);
    line-height: 1;
    transition: transform .2s ease;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq details p {
    padding: 0 1.2rem 1.2rem;
    margin: 0;
    color: var(--slate-500);
    font-size: .9rem;
}

/* ---------- CTA ---------- */
.cta-band {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 5vw, 4rem);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(600px 300px at 85% 0%, rgba(34, 211, 238, .22), transparent 60%),
        linear-gradient(120deg, var(--navy-900), var(--navy-800) 60%, #0d3566);
    color: rgba(255, 255, 255, .8);
}

.cta-band h2 {
    color: var(--white);
    max-width: 760px;
}

.cta-band p {
    max-width: 680px;
    color: rgba(255, 255, 255, .68);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.4rem;
}

/* ---------- Formularios ---------- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-grid .span-2 {
    grid-column: span 2;
}

.field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.field label {
    font-size: .82rem;
    font-weight: 700;
    color: var(--slate-700);
}

.field .req {
    color: var(--danger);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: .8rem .9rem;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
    font-family: inherit;
    font-size: .92rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

.field .help {
    font-size: .74rem;
    color: var(--slate-500);
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .82rem;
    color: var(--slate-600);
}

.checkbox-field input {
    width: 18px;
    height: 18px;
    margin-top: .15rem;
    accent-color: var(--blue-600);
    flex: 0 0 auto;
}

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

.form-note {
    margin-top: .8rem;
    font-size: .74rem;
    color: var(--slate-500);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.contact-panel {
    padding: clamp(1.5rem, 3vw, 2.2rem);
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
}

.contact-aside {
    padding: 1.6rem;
    border-radius: var(--radius-lg);
    background: var(--navy-900);
    color: rgba(255, 255, 255, .75);
}

.contact-aside h3 {
    color: var(--white);
}

.contact-item {
    display: flex;
    gap: .8rem;
    padding: .8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.contact-item:last-child {
    border-bottom: 0;
}

.contact-item .icon {
    width: 20px;
    height: 20px;
    color: var(--cyan-300);
    flex: 0 0 auto;
    margin-top: .2rem;
}

.contact-item strong {
    display: block;
    color: var(--white);
    font-size: .84rem;
}

.contact-item a,
.contact-item span {
    font-size: .86rem;
    color: rgba(255, 255, 255, .68);
}

/* ---------- Alertas ---------- */
.flash-wrap {
    padding-top: 1.2rem;
}

.alert {
    padding: .9rem 1.1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: .88rem;
}

.alert ul {
    margin: .4rem 0 0;
    padding-left: 1.1rem;
}

.alert-success {
    border-color: rgba(15, 159, 110, .25);
    background: rgba(15, 159, 110, .08);
    color: #0a6e4d;
}

.alert-error {
    border-color: rgba(214, 59, 74, .25);
    background: rgba(214, 59, 74, .07);
    color: #9f2533;
}

/* ---------- Página interior ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
    background:
        radial-gradient(700px 300px at 85% 10%, rgba(34, 211, 238, .14), transparent 60%),
        linear-gradient(145deg, var(--navy-950), var(--navy-900));
    color: rgba(255, 255, 255, .75);
}

.page-hero h1 {
    color: var(--white);
    max-width: 900px;
    margin-bottom: .8rem;
}

.page-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, .68);
    font-size: 1.06rem;
    margin-bottom: 0;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1rem;
    font-size: .76rem;
    color: rgba(255, 255, 255, .5);
}

.breadcrumbs a {
    color: rgba(255, 255, 255, .7);
}

.breadcrumbs span::before {
    content: "/";
    margin-right: .4rem;
    color: rgba(255, 255, 255, .3);
}

/* ---------- Artículo ---------- */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

.article-body {
    font-size: 1.02rem;
    color: var(--slate-700);
}

.article-body h2,
.article-body h3 {
    margin-top: 1.8em;
}

.article-body p {
    margin-bottom: 1.2em;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.2em;
}

.article-body blockquote {
    margin: 1.5em 0;
    padding: 1rem 1.3rem;
    border-left: 3px solid var(--cyan-500);
    background: var(--slate-50);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--slate-600);
}

.article-body code {
    padding: .12rem .35rem;
    border-radius: 4px;
    background: var(--slate-100);
    font-family: var(--mono);
    font-size: .86em;
}

.article-body pre {
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: var(--navy-950);
    color: var(--cyan-300);
    overflow-x: auto;
}

.article-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.article-body a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-cover {
    margin-bottom: 1.8rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--slate-100);
}

.article-cover img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.article-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    display: grid;
    gap: 1rem;
}

.sidebar-card {
    padding: 1.3rem;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius);
    background: var(--white);
}

.sidebar-card h3 {
    font-size: .95rem;
    margin-bottom: .7rem;
}

.sidebar-card p {
    font-size: .84rem;
    color: var(--slate-500);
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.share-row {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: 1rem;
}

.share-row a {
    padding: .35rem .65rem;
    border: 1px solid var(--slate-200);
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--slate-600);
}

/* ---------- Blog listing ---------- */
.blog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.blog-cats {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.blog-cats a {
    padding: .4rem .75rem;
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    color: var(--slate-600);
    font-size: .78rem;
    font-weight: 600;
}

.blog-cats a:hover,
.blog-cats a.is-active {
    border-color: var(--blue-600);
    background: var(--blue-600);
    color: var(--white);
}

.search-form {
    display: flex;
    gap: .4rem;
}

.search-form input {
    min-width: 220px;
    padding: .55rem .8rem;
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    font-family: inherit;
    font-size: .84rem;
}

.search-form button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--white);
    cursor: pointer;
}

.search-form .icon {
    width: 18px;
    height: 18px;
}

.empty-state {
    padding: 3rem 1.5rem;
    border: 1px dashed var(--slate-300);
    border-radius: var(--radius);
    text-align: center;
    color: var(--slate-500);
}

/* ---------- Paginación ---------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    margin-top: 2rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 .7rem;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    color: var(--slate-600);
    font-size: .82rem;
    font-weight: 600;
}

.page-link:hover {
    border-color: var(--blue-500);
    color: var(--blue-600);
}

.page-link.is-current {
    border-color: var(--navy-900);
    background: var(--navy-900);
    color: var(--white);
}

.page-info {
    margin-left: auto;
    font-size: .76rem;
    color: var(--slate-500);
}

/* ---------- Footer ---------- */
.site-footer {
    padding: clamp(3rem, 5vw, 4.5rem) 0 1.5rem;
    background: var(--navy-950);
    color: rgba(255, 255, 255, .62);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand p {
    max-width: 360px;
    margin: 1rem 0;
    font-size: .88rem;
    color: rgba(255, 255, 255, .55);
}

.footer-contact {
    display: grid;
    gap: .3rem;
    font-size: .86rem;
}

.footer-contact a {
    color: var(--cyan-300);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.footer-col h3 {
    margin-bottom: .4rem;
    color: var(--white);
    font-size: .82rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.footer-col a {
    color: rgba(255, 255, 255, .6);
    font-size: .84rem;
}

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

.footer-note {
    margin-top: .5rem;
    font-size: .72rem;
    color: rgba(255, 255, 255, .38);
    line-height: 1.5;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .6rem;
    padding-top: 1.4rem;
    font-size: .72rem;
    color: rgba(255, 255, 255, .38);
}

/* ---------- WhatsApp ---------- */
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #128c4b;
    color: var(--white);
    box-shadow: 0 12px 30px rgba(18, 140, 75, .4);
    transition: transform .2s var(--ease);
}

.whatsapp-float:hover {
    transform: scale(1.06);
    color: var(--white);
}

.whatsapp-float .icon {
    width: 28px;
    height: 28px;
}

/* ---------- Movimiento de imágenes ---------- */
.hero-visual {
    perspective: 1200px;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 8% -6% -8% 6%;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 65%);
    filter: blur(18px);
    animation: hero-glow 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-visual::after {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -30px;
    z-index: 1;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(103, 232, 249, .25);
    border-radius: 50%;
    animation: hero-ring 12s linear infinite;
    pointer-events: none;
}

.system-window {
    translate: var(--hero-tilt-x, 0px) var(--hero-tilt-y, 0px);
    transition: translate .35s ease-out;
}

.media-frame {
    animation: frame-float 9s ease-in-out infinite, frame-glow 7s ease-in-out infinite;
}

.media-frame img,
.project-showcase img,
.article-cover img,
.gallery-item img,
.project-media img,
.post-media img {
    translate: 0 var(--parallax-y, 0px);
    transition: transform .6s var(--ease), filter .6s ease;
    will-change: transform, translate;
    animation: image-breathe 14s ease-in-out infinite;
}

.project-media:nth-child(2n) img,
.gallery-item:nth-child(2n) img,
.post-card:nth-child(2n) .post-media img {
    animation-delay: -4.5s;
}

.project-media:nth-child(3n) img,
.gallery-item:nth-child(3n) img,
.post-card:nth-child(3n) .post-media img {
    animation-delay: -8s;
}

.media-frame:hover img {
    transform: scale(1.03) rotate(.35deg);
}

.project-card:hover .project-media img {
    transform: scale(1.06) rotate(.35deg);
}

.post-card:hover .post-media img {
    transform: scale(1.05);
}

.gallery-item:hover img {
    transform: scale(1.06) rotate(.4deg);
}

.article-cover:hover img {
    transform: scale(1.02);
}

.project-showcase:hover img {
    transform: scale(1.015);
}

.project-media,
.gallery-item,
.article-cover,
.project-showcase {
    position: relative;
    isolation: isolate;
}

.project-media::after,
.gallery-item::after,
.article-cover::after,
.project-showcase::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .22) 45%, transparent 60%);
    transform: translateX(-130%) skewX(-8deg);
    transition: transform .9s var(--ease);
    pointer-events: none;
}

.project-card:hover .project-media::after,
.gallery-item:hover::after,
.article-cover:hover::after,
.project-showcase:hover::after {
    transform: translateX(130%) skewX(-8deg);
}

@keyframes hero-glow {
    0%, 100% { opacity: .55; transform: scale(.96); }
    50% { opacity: .9; transform: scale(1.04); }
}

@keyframes hero-ring {
    0% { transform: rotate(0deg) scale(1); opacity: .35; }
    50% { opacity: .7; }
    100% { transform: rotate(360deg) scale(1.08); opacity: .35; }
}

@keyframes frame-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(.35deg); }
}

@keyframes frame-glow {
    0%, 100% { box-shadow: var(--shadow); }
    50% { box-shadow: 0 24px 60px rgba(37, 99, 235, .18); }
}

@keyframes image-breathe {
    0%, 100% { scale: 1; }
    50% { scale: 1.012; }
}

/* ---------- Revelado ---------- */
/* Nunca se oculta contenido: los botones y textos son visibles desde el
   primer momento. El revelado es solo un desplazamiento sutil al entrar
   en pantalla; si el JS no corre, simplemente se ven fijos. */
html.has-js [data-reveal] {
    opacity: 1;
    transform: translateY(14px);
    transition: transform .6s var(--ease);
}

html.has-js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

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

/* ---------- Auth ---------- */
.auth-body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    background:
        radial-gradient(700px 400px at 80% 0%, rgba(34, 211, 238, .16), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(37, 99, 235, .25), transparent 60%),
        var(--navy-950);
}

.auth-shell {
    width: min(100%, 440px);
}

.brand-auth {
    margin-bottom: 1.4rem;
}

.auth-card {
    padding: clamp(1.5rem, 4vw, 2.2rem);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.auth-card h1 {
    font-size: 1.5rem;
    margin-bottom: .3rem;
}

.auth-card > p {
    color: var(--slate-500);
    font-size: .88rem;
    margin-bottom: 1.3rem;
}

.auth-card .field {
    margin-bottom: .9rem;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    margin-top: 1rem;
    font-size: .8rem;
}

.auth-foot {
    margin-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, .4);
    font-size: .72rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .main-nav > a:not(.btn) { padding: .5rem .55rem; font-size: .82rem; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 360px; max-width: 560px; margin-inline: auto; width: 100%; }
    .system-window { transform: none; animation: float-window-mobile 7s ease-in-out infinite; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-col:last-child { grid-column: span 3; }
    .iso-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        display: grid;
        gap: .1rem;
        padding: 1rem 1.25rem 1.5rem;
        background: rgba(4, 13, 31, .98);
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        transform: translateY(-130%);
        opacity: 0;
        visibility: hidden;
        transition: transform .3s var(--ease), opacity .2s ease, visibility .2s;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .nav-open .main-nav {
        transform: none;
        opacity: 1;
        visibility: visible;
    }
    .main-nav > a:not(.btn) {
        padding: .8rem .9rem;
        font-size: .95rem;
    }
    .nav-cta {
        margin: .5rem 0 0;
        justify-content: center;
    }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: 0; }
    .contact-layout { grid-template-columns: 1fr; }
    .iso-highlight { grid-template-columns: 1fr; }
    .flow-grid { grid-template-columns: 1fr; }
    .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col:last-child { grid-column: auto; }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 640px) {
    :root { --header-h: 66px; }
    .container { width: min(100% - 1.5rem, var(--container)); }
    .section { padding: 3rem 0; }
    .hero { padding-top: 2.5rem; }
    .hero-actions .btn { flex: 1 1 100%; }
    .grid-2, .grid-3, .grid-4, .iso-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .span-2 { grid-column: auto; }
    .stats-strip { grid-template-columns: 1fr 1fr; }
    .article-sidebar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .footer-bottom { flex-direction: column; }
    .blog-toolbar { align-items: stretch; }
    .search-form input { min-width: 0; flex: 1; }
    .system-float { display: none; }
    .hero-visual { min-height: 320px; }
    .system-kpis { grid-template-columns: 1fr 1fr; }
    .system-kpi:last-child { display: none; }
    .process-canvas { height: 170px; }
    .whatsapp-float { width: 50px; height: 50px; right: 12px; bottom: 12px; }
    .whatsapp-float .icon { width: 25px; height: 25px; }
}

/* ============================================================
   Componentes complementarios de páginas públicas
   ============================================================ */

.page-hero-actions {
    margin-top: 1.6rem;
    margin-bottom: 0;
}

.cta-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.8rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius);
    background: var(--slate-50);
}

.cta-inline p {
    margin: 0;
    color: var(--slate-600);
    font-size: .94rem;
}

/* Comparativa manual vs digital */
.compare-table {
    display: grid;
    gap: .35rem;
    padding: .4rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
}

.compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    padding: .6rem .7rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    font-size: .78rem;
    color: rgba(255, 255, 255, .7);
}

.compare-row span:last-child {
    color: var(--cyan-300);
    font-weight: 600;
}

.compare-head {
    background: transparent;
    color: rgba(255, 255, 255, .45);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.compare-head span:last-child {
    color: rgba(255, 255, 255, .45);
}

/* Flujos sobre fondo claro */
.flow-steps-light .flow-step {
    border-color: rgba(37, 99, 235, .18);
    background: rgba(37, 99, 235, .06);
    color: var(--blue-700);
}

.flow-steps-light .flow-arrow {
    color: var(--slate-300);
}

/* Formularios */
.form-title {
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
    margin-bottom: .35rem;
}

.form-intro {
    margin-bottom: 1.4rem;
    color: var(--slate-500);
    font-size: .88rem;
}

.contact-aside-note {
    margin-top: 1.2rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.contact-aside-note strong {
    display: block;
    color: var(--white);
    font-size: .88rem;
    margin-bottom: .3rem;
}

.contact-aside-note p {
    font-size: .82rem;
    color: rgba(255, 255, 255, .6);
    margin-bottom: .7rem;
}

/* Gracias */
.thanks-card,
.error-card {
    max-width: 720px;
    margin-inline: auto;
    padding: clamp(2rem, 5vw, 3.2rem);
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
    text-align: center;
}

.thanks-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(15, 159, 110, .1);
    color: var(--success);
}

.thanks-icon .icon {
    width: 32px;
    height: 32px;
}

.thanks-card h1,
.error-card h1 {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

.thanks-card p,
.error-card p {
    color: var(--slate-500);
}

.thanks-note {
    font-size: .88rem;
}

.thanks-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin: 1.4rem 0 1rem;
}

.thanks-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--slate-100);
    font-size: .82rem;
    font-weight: 600;
}

.error-code {
    display: block;
    font-family: var(--mono);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.06em;
    background: linear-gradient(120deg, var(--blue-600), var(--cyan-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: .6rem;
}

/* Avisos y tablas públicas */
.notice-box {
    padding: 1rem 1.2rem;
    margin-bottom: 1.6rem;
    border: 1px solid rgba(37, 99, 235, .18);
    border-left: 4px solid var(--blue-600);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: rgba(37, 99, 235, .05);
    color: var(--slate-700);
    font-size: .9rem;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius);
    background: var(--white);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}

.data-table th,
.data-table td {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--slate-100);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--slate-500);
    background: var(--slate-50);
    white-space: nowrap;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover {
    background: #fbfdff;
}

.source-note {
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--slate-100);
    font-size: .78rem;
    color: var(--slate-500);
}

/* Detalle de servicio / portafolio */
.service-detail-features {
    margin: 2rem 0;
}

.cta-band-tight {
    margin-top: 2rem;
    padding: clamp(1.6rem, 4vw, 2.4rem);
    border-radius: var(--radius-lg);
}

.project-showcase {
    margin-bottom: 2.4rem;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-lg);
    background: var(--slate-50);
    overflow: hidden;
}

.project-showcase img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
}

.project-showcase .media-note {
    padding: .6rem 1rem;
    margin: 0;
    background: var(--white);
    border-top: 1px solid var(--slate-100);
}

.project-layout {
    margin-top: 1rem;
}

.project-block {
    color: var(--slate-700);
}

.project-gallery {
    margin: 2.4rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.gallery-item {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-sm);
    background: var(--white);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .35s var(--ease);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.spec-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .4rem .7rem;
    margin: 0;
    font-size: .82rem;
}

.spec-list dt {
    font-weight: 700;
    color: var(--slate-500);
}

.spec-list dd {
    margin: 0;
    color: var(--ink);
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .9rem;
}

/* Blog */
.search-summary {
    margin-bottom: 1.2rem;
    font-size: .86rem;
    color: var(--slate-500);
}

.post-meta-light {
    color: rgba(255, 255, 255, .55);
}

.post-meta-light span {
    color: rgba(255, 255, 255, .55);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin: 2rem 0 1rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--slate-100);
    font-size: .82rem;
}

.article-tags strong {
    color: var(--slate-600);
}

.related-posts {
    margin-top: 2.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--slate-100);
}

.related-posts h2 {
    font-size: 1.4rem;
}

/* Ajustes responsive */
@media (max-width: 640px) {
    .cta-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .compare-row {
        grid-template-columns: 1fr;
        gap: .2rem;
    }

    .compare-head {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
