/* ==========================================================================
   Consultoría SAP — Hoja de estilos principal
   --------------------------------------------------------------------------
   1. Tipografía y variables
   2. Base y utilidades
   3. Botones y enlaces
   4. Header / navegación
   5. Hero y cabeceras de página
   6. Secciones y encabezados
   7. Componentes (cards, pasos, cifras, paneles…)
   8. Servicios
   9. Clientes
   10. Equipo
   11. Contacto y formularios
   12. Legal
   13. Footer
   14. Error
   15. Animaciones
   16. Responsive
   ========================================================================== */

/* 1. Tipografía y variables
   ========================================================================== */
@font-face {
    font-family: "Inter";
    src: url("../fonts/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Paleta */
    --navy-950: #060b16;
    --navy-900: #0a1222;
    --navy-800: #101a2d;
    --navy-700: #1a2740;
    --ink: #0d1625;
    --text: #3b4555;
    --muted: #697384;
    --line: #e5e8ee;
    --line-strong: #d3d9e2;
    --bg: #ffffff;
    --bg-soft: #f6f7f9;

    /* Acento corporativo (cambiar aquí para adaptar la marca) */
    --accent: #0b63ce;
    --accent-600: #0a56b4;
    --accent-700: #084893;
    --accent-50: #eef4fc;
    --accent-100: #dce9fa;
    --accent-on-dark: #6aa9f5;

    --success: #0f7a4d;
    --success-bg: #edf8f2;
    --error: #b42318;
    --error-bg: #fdf1f0;

    /* Tipografía */
    --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.0625rem;
    --fs-lg: 1.1875rem;

    /* Espaciado y forma */
    --container: 1200px;
    --gutter: 24px;
    --header-h: 76px;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(10, 18, 34, 0.04), 0 1px 3px rgba(10, 18, 34, 0.05);
    --shadow: 0 12px 32px -14px rgba(10, 18, 34, 0.16);
    --shadow-lg: 0 24px 48px -20px rgba(10, 18, 34, 0.22);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --t: 0.25s var(--ease);
}

/* 2. Base y utilidades
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 64px);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv11", "ss01";
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

h1, h2, h3, h4 {
    margin: 0;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.022em;
}

p {
    margin: 0 0 1rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--t);
}

a:hover {
    color: var(--accent-700);
}

ul, ol {
    margin: 0;
    padding: 0;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--accent-100);
    color: var(--ink);
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--navy-900);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.skip-link:focus {
    top: 12px;
    color: #fff;
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
}

.text-accent {
    color: var(--accent-on-dark);
}

.text-lg {
    font-size: var(--fs-lg);
    line-height: 1.6;
    color: var(--ink);
}

.text-light {
    color: #fff;
}

.text-muted-light {
    color: rgba(255, 255, 255, 0.62);
}

/* 3. Botones y enlaces
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.005em;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--t), border-color var(--t), color var(--t), box-shadow var(--t), transform var(--t);
}

.btn .icon {
    width: 1.05em;
    height: 1.05em;
    transition: transform var(--t);
}

.btn:hover .icon {
    transform: translateX(3px);
}

.btn--sm {
    min-height: 40px;
    padding: 0.55rem 1.1rem;
    font-size: var(--fs-sm);
}

.btn--lg {
    min-height: 54px;
    padding: 0.9rem 1.9rem;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 1px 2px rgba(11, 99, 206, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn--primary:hover {
    background: var(--accent-600);
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(11, 99, 206, 0.55);
}

.btn--outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}

.btn--outline:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.btn--ghost-light {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}

.btn--ghost-light:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--light {
    background: #fff;
    color: var(--navy-900);
}

.btn--light:hover {
    color: var(--navy-900);
    background: #eef2f7;
}

.btn[disabled] {
    opacity: 0.65;
    cursor: progress;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--accent);
}

.link-arrow .icon {
    width: 1em;
    height: 1em;
    transition: transform var(--t);
}

.link-arrow:hover .icon {
    transform: translateX(4px);
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.inline-actions--center {
    justify-content: center;
}

/* 4. Header / navegación
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t), box-shadow var(--t), background-color var(--t);
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px -18px rgba(10, 18, 34, 0.35);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ink);
    flex-shrink: 0;
}

.brand:hover {
    color: var(--ink);
}

.brand__logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    transition: transform 0.4s var(--ease);
}

.brand:hover .brand__logo {
    transform: rotate(-6deg) scale(1.04);
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand__name {
    font-size: 0.98rem;
    font-weight: 650;
    letter-spacing: -0.015em;
}

.brand__tag {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.brand__img {
    height: 40px;
    width: auto;
}

.brand--light,
.brand--light:hover {
    color: #fff;
}

.brand--light .brand__tag {
    color: rgba(255, 255, 255, 0.5);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.main-nav__link {
    position: relative;
    display: block;
    padding: 0.5rem 0.85rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
}

.main-nav__link::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 2px;
    height: 1.5px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.main-nav__link:hover {
    color: var(--ink);
}

.main-nav__link:hover::after,
.main-nav__link.is-active::after {
    transform: scaleX(1);
}

.main-nav__link.is-active {
    color: var(--ink);
}

/* Selector de idioma (ES | EN) */
.lang-switch {
    display: flex;
    align-items: center;
    list-style: none;
    margin-right: -0.75rem;
}

.lang-switch li + li::before {
    content: "|";
    color: var(--line-strong);
}

.lang-switch__link {
    display: inline-block;
    padding: 0.5rem 0.45rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
    border-radius: var(--radius-sm);
    transition: color var(--t);
}

a.lang-switch__link:hover {
    color: var(--accent);
}

.lang-switch__link.is-active {
    color: var(--ink);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-toggle__bars {
    position: relative;
    display: block;
    width: 18px;
    height: 12px;
}

.nav-toggle__bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}

.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5.25px; }
.nav-toggle__bars span:nth-child(3) { top: 10.5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
    top: 5.25px;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
    top: 5.25px;
    transform: rotate(-45deg);
}

/* 5. Hero y cabeceras de página
   ========================================================================== */
.hero,
.page-hero,
.error-page {
    position: relative;
    overflow: hidden;
    background: var(--navy-950);
    color: rgba(255, 255, 255, 0.72);
    isolation: isolate;
}

.hero__grid,
.page-hero__grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    background-position: -1px -1px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}

.hero__glow {
    position: absolute;
    z-index: -1;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 90%;
    background: radial-gradient(closest-side, rgba(11, 99, 206, 0.22), transparent);
    pointer-events: none;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 3rem;
    min-height: min(calc(92vh - var(--header-h)), 820px);
    padding-top: 5.5rem;
    padding-bottom: 6rem;
}

.hero__title {
    max-width: 14ch;
    margin-top: 1.25rem;
    font-size: clamp(2.5rem, 4.6vw + 0.5rem, 4.25rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: #fff;
}

.hero__lead {
    max-width: 34rem;
    margin-top: 1.5rem;
    font-size: clamp(1.0625rem, 0.6vw + 0.95rem, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-top: 2.5rem;
}

.hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-top: 3.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.55);
}

.hero__tags li {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.hero__tags li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-on-dark);
    opacity: 0.8;
}

.hero__visual {
    display: flex;
    justify-content: flex-end;
}

.hero__visual img {
    width: 100%;
    max-width: 560px;
}

.page-hero__inner {
    padding-top: 4.5rem;
    padding-bottom: 5rem;
}

.page-hero__title {
    max-width: 22ch;
    margin-top: 1rem;
    font-size: clamp(2.125rem, 3.4vw + 0.75rem, 3.5rem);
    letter-spacing: -0.032em;
    line-height: 1.08;
    color: #fff;
}

.page-hero__lead {
    max-width: 42rem;
    margin-top: 1.25rem;
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.68);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin-bottom: 2.5rem;
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 0.5rem;
    color: rgba(255, 255, 255, 0.25);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a:hover {
    color: #fff;
}

/* 6. Secciones y encabezados
   ========================================================================== */
.section {
    padding: 7rem 0;
}

.section--tight {
    padding: 5rem 0;
}

.section--soft {
    background: var(--bg-soft);
}

.section--dark {
    background: var(--navy-900);
    color: rgba(255, 255, 255, 0.7);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: currentColor;
}

.eyebrow--light {
    color: var(--accent-on-dark);
}

.section-title {
    font-size: clamp(1.875rem, 2.2vw + 1rem, 2.75rem);
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.section-title--light {
    color: #fff;
}

.section-lead {
    margin-top: 1.25rem;
    font-size: var(--fs-md);
    color: var(--muted);
}

.section-head {
    max-width: 44rem;
    margin-bottom: 3.5rem;
}

.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head--center .eyebrow {
    justify-content: center;
}

.split .section-head {
    margin-bottom: 0;
}

.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.section-head-row .section-head {
    margin-bottom: 0;
}

.split {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
    align-items: start;
}

.split__aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
}

.split__main > p {
    max-width: 44rem;
}

/* 7. Componentes
   ========================================================================== */

/* Pilares (home) */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.75rem 0 2.25rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}

.pillar__icon,
.card__icon,
.service-detail__icon,
.mini-card__icon,
.compare__icon,
.step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.pillar__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    background: var(--accent-50);
    border-radius: var(--radius-sm);
}

.pillar__icon .icon {
    width: 20px;
    height: 20px;
}

.pillar__title {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.pillar p {
    font-size: var(--fs-sm);
    color: var(--muted);
}

/* Cards */
.card-grid {
    display: grid;
    gap: 1.5rem;
}

.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.25rem 2rem 2rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    color: var(--text);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.card--link:hover,
.card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
    color: var(--text);
}

.card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.75rem;
    background: var(--accent-50);
    border-radius: var(--radius);
    transition: background-color var(--t), color var(--t);
}

.card__icon .icon {
    width: 22px;
    height: 22px;
}

.card--link:hover .card__icon {
    background: var(--accent);
    color: #fff;
}

.card__kicker {
    display: block;
    margin-bottom: 0.4rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.card__title {
    font-size: 1.3125rem;
    letter-spacing: -0.02em;
}

.card__text {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    color: var(--muted);
}

.card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 1.75rem;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--accent);
}

.card__more .icon {
    width: 1em;
    height: 1em;
    transition: transform var(--t);
}

.card--link:hover .card__more .icon {
    transform: translateX(4px);
}

/* Pasos */
.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    list-style: none;
    counter-reset: step;
}

.steps::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, var(--line-strong), var(--line-strong) 60%, transparent);
}

.step {
    position: relative;
}

.step__num {
    position: absolute;
    top: 0;
    right: 0;
    font-size: var(--fs-sm);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--line-strong);
}

.step__icon {
    position: relative;
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
}

.step__icon .icon {
    width: 20px;
    height: 20px;
}

.step__title {
    margin-bottom: 0.6rem;
    font-size: 1.125rem;
}

.step p {
    font-size: 0.9375rem;
    color: var(--muted);
}

/* Cifras */
.stats-intro {
    max-width: 40rem;
    margin-bottom: 3.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 2.5rem 1.5rem 0.5rem 0;
}

.stat + .stat {
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.stat__value {
    font-size: clamp(2.5rem, 3vw + 1rem, 3.5rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.stat__label {
    font-size: var(--fs-sm);
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.55);
}

/* Panel destacado (Modelo 7P en home) */
.feature-panel {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 3.5rem;
    padding: 3.5rem;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.feature-panel__badge {
    position: relative;
    display: grid;
    place-items: center;
    width: 180px;
    height: 180px;
    background: var(--navy-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.feature-panel__badge::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 20px 20px;
}

.feature-panel__badge span {
    position: relative;
    font-size: 3.5rem;
    font-weight: 650;
    letter-spacing: -0.05em;
    color: #fff;
}

.feature-panel__badge span::after {
    content: "";
    position: absolute;
    right: -10px;
    bottom: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-on-dark);
}

.feature-panel__content .section-lead {
    max-width: 40rem;
    margin-bottom: 1.5rem;
}

/* CTA */
.cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 4rem;
    background: var(--navy-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
    isolation: isolate;
}

.cta__lines {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
    mask-image: linear-gradient(90deg, transparent 30%, #000);
}

.cta__title {
    max-width: 24ch;
    font-size: clamp(1.625rem, 1.6vw + 1rem, 2.25rem);
    letter-spacing: -0.028em;
    color: #fff;
}

.cta__text {
    max-width: 38rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.65);
}

.cta__actions {
    flex-shrink: 0;
}

/* Listas con check */
.check-list {
    display: grid;
    gap: 0.85rem;
    list-style: none;
    margin-top: 1.75rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--ink);
}

.check-list .icon {
    width: 20px;
    height: 20px;
    margin-top: 0.15rem;
    padding: 3px;
    color: var(--accent);
    background: var(--accent-50);
    border-radius: 50%;
}

.check-list--cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.check-list--lg li {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-md);
}

.check-list--lg {
    gap: 0;
    margin-top: 0;
}

/* 8. Servicios
   ========================================================================== */
.subnav {
    position: sticky;
    top: var(--header-h);
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.subnav__list {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.subnav__list::-webkit-scrollbar {
    display: none;
}

.subnav__list a {
    display: block;
    padding: 1.1rem 1rem;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color var(--t), border-color var(--t);
}

.subnav__list a:hover,
.subnav__list a.is-current {
    color: var(--ink);
    border-bottom-color: var(--accent);
}

.service-detail__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.75rem;
    background: var(--accent-50);
    border-radius: var(--radius);
}

.service-detail__icon .icon {
    width: 26px;
    height: 26px;
}

.service-detail__icon--light {
    background: rgba(106, 169, 245, 0.12);
    color: var(--accent-on-dark);
}

.fico-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 4rem;
}

.mini-card {
    padding: 1.75rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.mini-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.mini-card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1.25rem;
    background: var(--accent-50);
    border-radius: var(--radius-sm);
}

.mini-card__icon .icon {
    width: 20px;
    height: 20px;
}

.mini-card__title {
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
}

.mini-card p {
    font-size: var(--fs-sm);
    color: var(--muted);
}

.compare {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.compare__item {
    padding: 2.75rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.compare__item:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.compare__head {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.compare__icon {
    width: 56px;
    height: 56px;
    background: var(--accent-50);
    border-radius: var(--radius);
}

.compare__icon .icon {
    width: 26px;
    height: 26px;
}

.compare__head .card__kicker {
    margin-bottom: 0.2rem;
}

.compare__title {
    font-size: 1.625rem;
}

.compare__summary {
    font-size: var(--fs-md);
    color: var(--ink);
}

.compare__item > p:not(.compare__summary) {
    color: var(--muted);
    font-size: 0.9375rem;
}

.p7-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 4rem;
    list-style: none;
}

.p7 {
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    transition: background-color var(--t), border-color var(--t);
}

.p7:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.16);
}

.p7__num {
    display: block;
    margin-bottom: 1.5rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--accent-on-dark);
    font-variant-numeric: tabular-nums;
}

.p7__title {
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
    color: #fff;
}

.p7__text {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.55);
}

/* 9. Clientes
   ========================================================================== */
.logo-wall {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.logo-wall__item {
    display: grid;
    place-items: center;
    min-height: 150px;
    padding: 2rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background-color var(--t);
}

.logo-wall__item:hover {
    background: var(--bg-soft);
}

.logo-wall__item img {
    max-height: 56px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.7;
    transition: filter var(--t), opacity var(--t);
}

.logo-wall__item:hover img {
    filter: none;
    opacity: 1;
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: #a3abb8;
    text-align: center;
}

.logo-placeholder .icon {
    width: 22px;
    height: 22px;
    margin-bottom: 0.25rem;
}

.logo-placeholder__label {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
}

.logo-placeholder__name {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--muted);
}

.case-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.case-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.case-card__logo {
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: var(--bg-soft);
    border-right: 1px solid var(--line);
}

.case-card__logo-ph {
    padding: 0.75rem 0.9rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #a3abb8;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    text-align: center;
}

.case-card__body {
    padding: 2rem;
}

.case-card__sector {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.case-card__sector .icon {
    width: 14px;
    height: 14px;
}

.case-card__title {
    font-size: 1.25rem;
}

.case-card__client {
    margin-top: 0.25rem;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text);
}

.case-card__text {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    color: var(--muted);
}

.case-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    list-style: none;
    font-size: 0.8125rem;
    color: var(--muted);
}

.case-card__meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.case-card__meta .icon {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

/* 10. Equipo
   ========================================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.5rem;
    list-style: none;
}

.team-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.team-card__body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.team-card__name {
    font-size: 1.1875rem;
    letter-spacing: -0.015em;
}

.team-card__role {
    margin-top: 0.2rem;
    font-size: 0.9375rem;
    color: var(--muted);
}

.team-card__social {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: color var(--t), border-color var(--t), background-color var(--t);
}

.team-card__social .icon {
    width: 16px;
    height: 16px;
}

a.team-card__social:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.team-card__social.is-disabled {
    opacity: 0.45;
}

.team-card__tag {
    align-self: flex-start;
    margin-top: 0.9rem;
    padding: 0.3rem 0.7rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent-700);
    background: var(--accent-50);
    border-radius: 999px;
}

.team-card__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.6rem 0 0;
    padding: 0;
    list-style: none;
}

.team-card__skills li {
    padding: 0.2rem 0.55rem;
    font-size: var(--fs-xs);
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.join {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 3.5rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.join .section-lead {
    max-width: 38rem;
}

.join__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    flex-shrink: 0;
}

/* 11. Contacto y formularios
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-wrap {
    padding: 3rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact-form__title {
    font-size: 1.625rem;
}

.contact-form__intro {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    font-size: var(--fs-sm);
    color: var(--muted);
}

.req {
    color: var(--accent);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1.25rem;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--ink);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 0.95rem;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    transition: border-color var(--t), box-shadow var(--t);
    -webkit-appearance: none;
    appearance: none;
}

.field textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #9aa3b0;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: #b9c1cd;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(11, 99, 206, 0.14);
}

.field [aria-invalid="true"] {
    border-color: var(--error) !important;
}

.field [aria-invalid="true"]:focus {
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.select-wrap {
    position: relative;
}

.select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted);
    transform: rotate(45deg);
    pointer-events: none;
}

.select-wrap select {
    padding-right: 2.5rem;
    cursor: pointer;
}

.field__error {
    min-height: 0;
    margin: 0.4rem 0 0;
    font-size: 0.8125rem;
    color: var(--error);
}

.field__error:empty {
    display: none;
}

.field__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.field__counter {
    margin-top: 0.4rem;
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0.2rem 0 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.checkbox label {
    margin: 0;
    font-size: var(--fs-sm);
    font-weight: 400;
    line-height: 1.55;
    color: var(--text);
    cursor: pointer;
}

.checkbox a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hp-field {
    position: absolute !important;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-footer {
    margin-top: 2rem;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}

.alert .icon {
    width: 20px;
    height: 20px;
    margin-top: 0.1rem;
}

.alert--success {
    color: var(--success);
    background: var(--success-bg);
    border-color: rgba(15, 122, 77, 0.18);
}

.alert--error {
    color: var(--error);
    background: var(--error-bg);
    border-color: rgba(180, 35, 24, 0.16);
}

.privacy-box {
    margin-top: 2.25rem;
    padding: 1.5rem;
    font-size: 0.8125rem;
    background: var(--bg-soft);
    border-radius: var(--radius);
}

.privacy-box__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    font-weight: 600;
    color: var(--ink);
}

.privacy-box__title .icon {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.privacy-box dl {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.4rem 1rem;
    margin: 0;
}

.privacy-box dt {
    font-weight: 600;
    color: var(--ink);
}

.privacy-box dd {
    margin: 0;
    color: var(--muted);
}

.contact-aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
}

.contact-card {
    position: relative;
    padding: 3rem 2.5rem;
    background: var(--navy-900);
    border-radius: var(--radius-lg);
    color: rgba(255, 255, 255, 0.7);
    overflow: hidden;
    isolation: isolate;
}

.contact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
    mask-image: linear-gradient(180deg, #000, transparent 70%);
}

.contact-card__title {
    font-size: 2.25rem;
    letter-spacing: -0.03em;
    color: #fff;
}

.contact-card__text {
    margin-top: 1rem;
    font-size: var(--fs-md);
}

.contact-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-list__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    color: var(--accent-on-dark);
    background: rgba(106, 169, 245, 0.1);
    border-radius: var(--radius-sm);
}

.contact-list__icon .icon {
    width: 20px;
    height: 20px;
}

.contact-list__label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.contact-list a,
.contact-list span:not(.contact-list__label):not(.contact-list__icon) {
    color: #fff;
    font-weight: 500;
    word-break: break-word;
}

.contact-list a:hover {
    color: var(--accent-on-dark);
}

.contact-card__note {
    display: flex;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding: 1rem 1.25rem;
    font-size: var(--fs-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
}

.contact-card__note .icon {
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    color: var(--accent-on-dark);
}

/* 12. Legal
   ========================================================================== */
.legal {
    max-width: 52rem;
}

.legal__notice {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
    padding: 1.1rem 1.25rem;
    font-size: 0.9375rem;
    color: #7a4a00;
    background: #fff8eb;
    border: 1px solid #f3dfb5;
    border-radius: var(--radius-sm);
}

.legal__notice .icon {
    width: 20px;
    height: 20px;
    margin-top: 0.15rem;
}

.legal__updated {
    font-size: var(--fs-sm);
    color: var(--muted);
}

.legal h2 {
    margin: 2.75rem 0 1rem;
    font-size: 1.375rem;
}

.legal ul {
    display: grid;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.legal li::marker {
    color: var(--accent);
}

.table-wrap {
    margin: 1.5rem 0;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.table-wrap table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: var(--fs-sm);
}

.table-wrap th,
.table-wrap td {
    padding: 0.9rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.table-wrap th {
    font-weight: 600;
    color: var(--ink);
    background: var(--bg-soft);
}

.table-wrap tr:last-child td {
    border-bottom: 0;
}

/* Preguntas frecuentes (desplegables nativos <details>) */
.faq {
    max-width: 820px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.faq__item {
    border-bottom: 1px solid var(--line);
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: "+";
    flex-shrink: 0;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    color: var(--accent);
    transition: transform var(--t);
}

.faq__item[open] .faq__question::after {
    transform: rotate(45deg);
}

.faq__question:hover {
    color: var(--accent);
}

.faq__answer {
    padding: 0 0 1.25rem;
    max-width: 70ch;
}

/* Ejemplo de cálculo */
.calc-example table {
    min-width: 0;
}

.calc-example td:last-child,
.calc-example th:last-child {
    text-align: right;
    white-space: nowrap;
}

.calc-example tr.is-total td {
    font-weight: 700;
    color: var(--ink);
    background: var(--bg-soft);
}

.note {
    font-size: var(--fs-sm);
    color: var(--muted);
}

code {
    padding: 0.1rem 0.35rem;
    font-size: 0.85em;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 4px;
}

/* 13. Footer
   ========================================================================== */
.site-footer {
    padding: 5.5rem 0 2.5rem;
    background: var(--navy-950);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.7fr repeat(4, 1fr);
    gap: 2.5rem;
    padding-bottom: 4rem;
}

.footer-brand__text {
    max-width: 22rem;
    margin: 1.5rem 0;
    font-size: var(--fs-sm);
    line-height: 1.7;
}

.social {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.social a,
.social__placeholder {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    transition: color var(--t), border-color var(--t), background-color var(--t);
}

.social .icon {
    width: 16px;
    height: 16px;
}

.social a:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.social__placeholder {
    opacity: 0.5;
    cursor: default;
}

.footer-col__title {
    margin-bottom: 1.25rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}

.footer-col ul {
    display: grid;
    gap: 0.7rem;
    list-style: none;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-col a:hover {
    color: #fff;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    word-break: break-word;
}

.footer-contact .icon {
    width: 16px;
    height: 16px;
    margin-top: 0.25rem;
    color: var(--accent-on-dark);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom__note {
    max-width: 36rem;
}

/* 14. Error
   ========================================================================== */
.error-page {
    display: flex;
    align-items: center;
    min-height: calc(80vh - var(--header-h));
    text-align: center;
}

.error-page--full {
    min-height: 100vh;
}

.error-page__inner {
    padding: 6rem var(--gutter);
}

.error-page__code {
    margin-bottom: 1rem;
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 650;
    line-height: 1;
    letter-spacing: -0.05em;
    color: rgba(255, 255, 255, 0.12);
}

.error-page__title {
    font-size: clamp(2rem, 3vw + 1rem, 3rem);
    color: #fff;
}

.error-page__text {
    margin-top: 1rem;
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.65);
}

/* 15. Animaciones (discretas; sólo si hay JS)
   ========================================================================== */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

/* 16. Responsive
   ========================================================================== */
@media (max-width: 1199px) {
    .fico-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-top {
        grid-template-columns: 1.4fr repeat(2, 1fr);
    }

    .footer-brand {
        grid-row: span 2;
    }
}

@media (max-width: 991px) {
    :root {
        --header-h: 68px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 1rem var(--gutter) 1.75rem;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px -24px rgba(10, 18, 34, 0.3);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
    }

    .main-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav__link {
        padding: 0.95rem 0;
        font-size: 1.0625rem;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
    }

    .main-nav__link::after {
        display: none;
    }

    .main-nav__link.is-active {
        color: var(--accent);
    }

    .main-nav__cta {
        width: 100%;
        min-height: 48px;
    }

    .lang-switch {
        margin-right: 0;
    }

    .lang-switch__link {
        padding: 0.5rem 0.75rem;
        font-size: var(--fs-base);
    }

    .lang-switch li:first-child .lang-switch__link {
        padding-left: 0;
    }

    .site-header {
        background: rgba(255, 255, 255, 0.97);
    }

    .hero__inner {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }

    .hero__visual {
        justify-content: center;
        max-width: 480px;
        margin: 0 auto;
        opacity: 0.9;
    }

    .section {
        padding: 5rem 0;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .split__aside {
        position: static;
    }

    .card-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 2rem;
    }

    .steps::before {
        display: none;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .stat:nth-child(n + 3) {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 2rem;
    }

    .p7-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-wall {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-aside {
        position: static;
    }

    .cta,
    .join {
        flex-direction: column;
        align-items: flex-start;
        padding: 3rem;
    }

    .section-head-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    :root {
        --gutter: 16px;
    }

    .hero__title {
        max-width: none;
    }

    .hero__actions .btn {
        flex: 1 1 100%;
    }

    .hero__tags {
        margin-top: 2.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section--tight {
        padding: 3rem 0;
    }

    .section-head {
        margin-bottom: 2.5rem;
    }

    .pillars,
    .card-grid--3,
    .card-grid--2,
    .compare,
    .check-list--cols {
        grid-template-columns: 1fr;
    }

    .fico-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .compare__item {
        padding: 2rem 1.5rem;
    }

    .feature-panel {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .feature-panel__badge {
        width: 120px;
        height: 120px;
    }

    .feature-panel__badge span {
        font-size: 2.5rem;
    }

    .cta,
    .join {
        padding: 2.25rem 1.5rem;
    }

    .cta__actions,
    .cta__actions .btn {
        width: 100%;
    }

    .logo-wall {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-wall__item {
        min-height: 120px;
        padding: 1.25rem;
    }

    .case-card {
        grid-template-columns: 1fr;
    }

    .case-card__logo {
        justify-content: start;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .case-card__body {
        padding: 1.5rem;
    }

    .contact-form-wrap {
        padding: 2rem 1.25rem;
    }

    .contact-card {
        padding: 2.25rem 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-footer .btn {
        width: 100%;
    }

    .privacy-box dl {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .privacy-box dd {
        margin-bottom: 0.6rem;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 1.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .page-hero__inner {
        padding-top: 3rem;
        padding-bottom: 3.5rem;
    }

    .breadcrumb ol {
        margin-bottom: 1.75rem;
    }
}

@media (max-width: 479px) {
    .brand__tag {
        display: none;
    }

    .steps,
    .stats,
    .p7-grid,
    .team-grid,
    .fico-grid {
        grid-template-columns: 1fr;
    }

    .stat,
    .stat + .stat {
        padding-left: 0;
        border-left: 0;
    }

    .stat + .stat {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 0;
        padding-top: 2rem;
    }

    .stat:nth-child(n + 3) {
        margin-top: 0;
    }

    .team-grid {
        max-width: 360px;
        margin: 0 auto;
    }
}