/* ==========================================================================
   site.css — Sistema visual 3.0 de Tlachia Systems
   Base: sistema 2.0 (canvas Kombai "Propuesta 2") con la paleta del logotipo
   (azul marino #083044 y azul #018dc1), portada y contacto orientados a cotizar.
   Tema claro por defecto; el oscuro se activa con <html data-theme="dark">.
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
    --bg: #f4f5f2;
    --surface: #ffffff;
    --ink: #083044;
    --ink-2: #3a4a57;
    --muted: #55606b;
    --mono-ink: #2c3a46;

    --line: #d3d8d2;
    --line-2: #e3e6e1;
    --line-3: #eceee9;
    --card-line: #dfe3de;
    --radio: #9aa3ab;
    --underline: #b9c0c6;

    /* Acción principal: azul del logotipo con texto blanco (contraste 5:1) */
    --accent: #0077a8;
    --accent-hover: #00668f;
    --on-accent: #ffffff;
    --accent-text: #00668f;
    /* Acento luminoso para cifras y detalles sobre fondos azul marino */
    --accent-bright: #5cc8f0;
    --on-accent-bright: #04161b;
    --signal: #018dc1;
    --highlight: #a8e3f7;
    --tip: #eef6fa;
    --danger: #b42318;

    /* Bloques sólidos: botón del encabezado y opción seleccionada */
    --solid: #083044;
    --solid-hover: #0e3f58;
    --on-solid: #f4f5f2;

    /* Bloques destacados: franja de cifras, paso 1, cierre */
    --feature: #083044;
    --on-feature: #ffffff;
    --feature-muted: #c9d7e1;
    --feature-line: #1f4a60;

    --footer: #062433;
    --footer-ink: #b3c5d2;
    --footer-muted: #8fa9b9;

    --header-bg: rgba(255, 255, 255, .92);
    --shadow-card: 0 22px 40px -24px rgba(8, 48, 68, .5);
    --shadow-float: 0 24px 48px -28px rgba(8, 48, 68, .45);
    --trace: rgba(8, 48, 68, .16);
    --dots: rgba(8, 48, 68, .14);

    /* Marca Grower® (producto propio): verdes del logotipo registrado */
    --grower-700: #2B663D;
    --grower-800: #1F4F2E;
    --grower-bg: #EFF8F2;
    --grower-line: #B6DCC2;
    --grower-text: #2B663D;

    --f-head: 'Archivo', 'Inter', system-ui, sans-serif;
    --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --wrap: 1200px;
    --gutter: 40px;
    --section-gap: clamp(72px, 9vw, 112px);
    --header-h: 76px;

    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #061821;
    --surface: #0b2431;
    --ink: #e6eef3;
    --ink-2: #c3d0d9;
    --muted: #93a6b3;
    --mono-ink: #b4c4cf;

    --line: #1c3a4a;
    --line-2: #16303e;
    --line-3: #16303e;
    --card-line: #1a3647;
    --radio: #5d7584;
    --underline: #4a6576;

    --accent: #5cc8f0;
    --accent-hover: #86d8f5;
    --on-accent: #04161b;
    --accent-text: #6fd0f3;
    --accent-bright: #5cc8f0;
    --signal: #38b6e6;
    --highlight: rgba(92, 200, 240, .32);
    --tip: #0d2a38;
    --danger: #ff8a7a;

    --solid: #e6eef3;
    --solid-hover: #ffffff;
    --on-solid: #083044;

    --feature: #0e2f40;
    --on-feature: #e6eef3;
    --feature-muted: #a9bcc9;
    --feature-line: #24485c;

    --footer: #03121a;

    --header-bg: rgba(6, 24, 33, .88);
    --shadow-card: 0 22px 40px -24px rgba(0, 0, 0, .75);
    --shadow-float: 0 24px 48px -28px rgba(0, 0, 0, .8);
    --trace: rgba(150, 200, 225, .16);
    --dots: rgba(150, 200, 225, .12);

    --grower-bg: #0f1f16;
    --grower-line: #1F4F2E;
    --grower-text: #8CC79E;

    color-scheme: dark;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
dl,
dd,
ul,
ol,
address {
    margin: 0;
}

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

address {
    font-style: normal;
}

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

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

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

[hidden] {
    display: none !important;
}

/* Malla de partículas de fondo (particles.js) */
#bgCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Tema claro: canvas atenuado, igual que en la v1.0 */
[data-theme="light"] #bgCanvas {
    opacity: 0.42;
}

@media (max-width: 768px) {
    [data-theme="light"] #bgCanvas {
        opacity: 0.35;
    }
}

:focus-visible {
    outline: 2px solid var(--accent-text);
    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: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    background: var(--solid);
    color: var(--on-solid);
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
}

.skip-link:focus {
    top: 12px;
}

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

.muted {
    color: var(--muted);
}

/* ── Botones y enlaces ─────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    text-align: center;
    transition: background-color .2s, color .2s;
}

.btn-solid {
    background: var(--solid);
    color: var(--on-solid);
    padding: 10px 20px;
    font-size: 14px;
}

.btn-solid:hover {
    background: var(--solid-hover);
}

.btn-accent {
    background: var(--accent);
    color: var(--on-accent);
    padding: 12px 20px;
    font-size: 15px;
}

.btn-accent:hover {
    background: var(--accent-hover);
}

.btn-block {
    display: block;
    padding: 16px 24px;
    font-size: 16px;
}

.link-arrow {
    font-size: 15px;
    font-weight: 500;
}

.link-arrow i {
    margin-left: 4px;
    font-size: .8em;
    transition: transform .2s;
}

.link-arrow:hover i {
    transform: translateX(4px);
}

.link-underline {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--underline);
}

.link-underline:hover {
    text-decoration-color: currentColor;
}

.link-quiet {
    color: var(--muted);
    font-size: 15px;
}

.link-quiet:hover {
    color: var(--ink);
}

/* ── Encabezado ────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-2);
}

.header-row {
    height: var(--header-h);
    display: flex;
    align-items: center;
}

.brand {
    flex-shrink: 0;
}

.logo {
    height: 40px;
    width: auto;
}

.logo-on-dark,
[data-theme="dark"] .logo-on-light {
    display: none;
}

[data-theme="dark"] .logo-on-dark {
    display: block;
}

.main-nav {
    margin-left: 56px;
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 15px;
    color: var(--muted);
}

.main-nav a:not(.nav-cta):hover,
.main-nav a:not(.nav-cta)[aria-current="page"] {
    color: var(--ink);
}

.main-nav a:not(.nav-cta)[aria-current="page"] {
    font-weight: 500;
}

.main-nav .nav-cta {
    display: none;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.icon-btn {
    color: var(--muted);
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    font-size: 15px;
}

.icon-btn:hover {
    color: var(--ink);
}

.lang-link {
    color: var(--muted);
    font-weight: 500;
}

.lang-link:hover {
    color: var(--ink);
}

.menu-btn {
    display: none;
    font-size: 18px;
}

/* ── Apertura y selector ───────────────────────────────────────────────── */
.hero {
    padding-top: 64px;
}

.display {
    font-family: var(--f-head);
    font-stretch: 88%;
    font-weight: 750;
    font-size: clamp(2.75rem, 1.1rem + 5.4vw, 5rem);
    line-height: .95;
    letter-spacing: -0.025em;
    max-width: 900px;
    text-wrap: balance;
}

.lead {
    margin-top: 24px;
    max-width: 640px;
    font-size: 18px;
    line-height: 1.55;
    color: var(--muted);
}

.selector {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 32px;
    align-items: start;
}

.need-list {
    display: grid;
    gap: 8px;
}

.need-opt {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px 20px;
    transition: background-color .2s, color .2s, border-color .2s;
}

.need-opt:hover {
    border-color: var(--ink);
}

.need-opt[aria-pressed="true"] {
    background: var(--solid);
    color: var(--on-solid);
    border-color: var(--solid);
}

.need-mark {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--radio);
    transition: background-color .2s, border-color .2s;
}

.need-opt[aria-pressed="true"] .need-mark {
    background: var(--accent-bright);
    border-color: var(--accent-bright);
}

.need-label {
    font-family: var(--f-head);
    font-stretch: 88%;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.2;
}

.selector-foot {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.panels {
    background: var(--surface);
    border: 1px solid var(--card-line);
    border-radius: 12px;
    min-height: 470px;
    scroll-margin-top: 16px;
}

.need-panel {
    padding: 32px;
}

.panel-label {
    font-size: 15px;
    color: var(--muted);
}

.project-pair {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.project-media {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 8px;
}

.stat-card {
    background: var(--feature);
    color: var(--on-feature);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.stat-num {
    font-family: var(--f-head);
    font-stretch: 88%;
    font-size: 88px;
    font-weight: 800;
    line-height: .8;
    color: var(--accent-bright);
}

.stat-caption {
    margin-top: 12px;
    font-size: 15px;
}

.stat-card-sm {
    padding: 20px;
}

.stat-card-sm .stat-num {
    font-size: 64px;
}

.stat-card-sm .stat-caption {
    margin-top: 8px;
    font-size: 14px;
}

.project-title {
    margin-top: 16px;
    font-family: var(--f-head);
    font-stretch: 88%;
    font-size: 20px;
    font-weight: 650;
    line-height: 1.25;
}

.project-title a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.project-desc {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
}

.panel-title {
    margin-top: 4px;
    font-family: var(--f-head);
    font-stretch: 88%;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
}

.panel-desc {
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.55;
}

.ref {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 24px;
    align-items: start;
}

.ref-media {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.ref-label {
    font-size: 13px;
    color: var(--muted);
}

.ref-title {
    font-family: var(--f-head);
    font-stretch: 88%;
    font-size: 19px;
    font-weight: 650;
    line-height: 1.25;
}

.ref-summary {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}

.ref-stack {
    margin-top: 8px;
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--mono-ink);
}

.ref-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
}

.tip {
    margin-top: 24px;
    background: var(--tip);
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 15px;
    line-height: 1.5;
}

.tip strong {
    font-weight: 600;
}

.panel-cta {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.panel-cta p {
    font-size: 14px;
    color: var(--muted);
}

.panel-cta .em {
    color: var(--ink);
    font-weight: 500;
}

.panel-cta-split {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line-3);
}

.panel-cta-split p {
    font-size: 15px;
}

/* ── Secciones ─────────────────────────────────────────────────────────── */
.section {
    padding-top: var(--section-gap);
}

.section-title {
    font-family: var(--f-head);
    font-stretch: 88%;
    font-size: clamp(1.75rem, 1.15rem + 1.7vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
    text-wrap: balance;
}

.section-title-narrow {
    max-width: 620px;
}

.section-title-wide {
    max-width: 700px;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

/* Servicios */
.service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 48px;
}

.service-list li {
    border-bottom: 1px solid var(--line-2);
}

.service-list a {
    display: block;
    padding: 24px 0;
}

.service-name {
    font-family: var(--f-head);
    font-stretch: 88%;
    font-size: 20px;
    font-weight: 650;
    text-underline-offset: 4px;
}

.service-list a:hover .service-name {
    text-decoration: underline;
}

.service-desc {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    color: var(--muted);
}

/* Preguntas */
.faq {
    margin-top: 40px;
}

.faq-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 40px;
    padding: 32px 0;
    border-top: 1px solid var(--line);
}

.faq-row:last-child {
    border-bottom: 1px solid var(--line);
}

.faq dt {
    grid-column: span 5;
    font-family: var(--f-head);
    font-stretch: 88%;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.35;
}

.faq dd {
    grid-column: 7 / span 6;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-2);
}

.note {
    margin-top: 24px;
    font-size: 14px;
    color: var(--muted);
}

/* Proceso */
.steps {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.step {
    background: var(--surface);
    border: 1px solid var(--card-line);
    border-radius: 12px;
    padding: 36px;
}

.step-label {
    font-family: var(--f-mono);
    font-size: 14px;
    color: var(--accent-text);
}

.step-title {
    margin-top: 12px;
    font-family: var(--f-head);
    font-stretch: 88%;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
}

.step-desc {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-2);
}

.step-feature {
    background: var(--feature);
    color: var(--on-feature);
    border-color: var(--feature);
}

.step-feature .step-label {
    color: var(--accent-bright);
}

.step-feature .step-desc {
    color: var(--feature-muted);
}

.next-steps {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    font-size: 15px;
    line-height: 1.5;
}

.next-steps li {
    display: flex;
    gap: 12px;
}

.next-steps strong {
    font-weight: 600;
}

.next-num {
    font-family: var(--f-mono);
    color: var(--muted);
}

/* Integraciones */
.stack-grid {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stack-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.stack-head {
    font-size: 15px;
    font-weight: 600;
}

.stack-list {
    margin-top: 12px;
    font-family: var(--f-mono);
    font-size: 14px;
    line-height: 1.9;
    color: var(--ink-2);
}

/* Cierre */
.closing {
    padding-bottom: 96px;
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 40px;
    align-items: end;
}

.closing-title {
    font-family: var(--f-head);
    font-stretch: 88%;
    font-size: clamp(2rem, 1rem + 3.2vw, 3.25rem);
    font-weight: 750;
    line-height: 1;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.quick-contact {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 15px;
}

.quick-contact i {
    margin-right: 8px;
    font-size: 13px;
    color: var(--muted);
}

/* ── Pie de página ─────────────────────────────────────────────────────── */
.site-footer {
    background: var(--footer);
    color: var(--footer-ink);
}

[data-theme="dark"] .site-footer {
    border-top: 1px solid var(--line-2);
}

.footer-row {
    padding-block: 48px;
    display: flex;
    align-items: flex-start;
    gap: 64px;
    font-size: 14px;
}

.footer-logo {
    height: 32px;
    width: auto;
    flex-shrink: 0;
}

.footer-address {
    line-height: 1.7;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a:hover,
.footer-social:hover {
    color: #ffffff;
}

.footer-end {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.footer-social {
    font-size: 16px;
}

.footer-copy {
    font-size: 13px;
    color: var(--footer-muted);
}

/* ── Páginas interiores ────────────────────────────────────────────────── */
.page-hero {
    padding-top: 64px;
}

.display-sm {
    font-size: clamp(2.5rem, 1.3rem + 4vw, 4rem);
    line-height: 1;
    max-width: 820px;
}

/* ── Contacto ──────────────────────────────────────────────────────────── */
.contact-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 56px;
    align-items: start;
}

.form-card {
    background: var(--surface);
    border: 1px solid var(--card-line);
    border-radius: 12px;
    padding: 32px;
}

.botcheck {
    display: none;
}

.form-need {
    margin-bottom: 24px;
    background: var(--tip);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
}

.form-need strong {
    font-weight: 600;
}

.field+.field {
    margin-top: 20px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.field-help {
    margin: -2px 0 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    transition: border-color .2s, box-shadow .2s;
}

.field select {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2393a0ab' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

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

.field input::placeholder,
.field textarea::placeholder {
    color: var(--muted);
    opacity: .8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent-text);
    box-shadow: 0 0 0 3px rgba(1, 141, 193, .25);
}

.form-submit {
    width: 100%;
    margin-top: 28px;
}

.form-submit:disabled {
    opacity: .7;
    cursor: progress;
}

.form-status {
    margin-top: 16px;
    font-size: 14px;
    color: var(--danger);
}

.form-legal {
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
}

.info-block {
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

.info-block:first-child {
    padding-top: 0;
    border-top: 0;
}

.info-head {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
}

.info-value {
    display: block;
    width: fit-content;
    margin-top: 4px;
    font-family: var(--f-head);
    font-stretch: 88%;
    font-size: 22px;
    font-weight: 650;
}

.info-value-sm {
    font-size: 17px;
    font-weight: 600;
}

.info-text {
    margin-top: 4px;
    font-size: 16px;
    line-height: 1.6;
}

.after-send {
    margin-top: 16px;
    background: var(--feature);
    color: var(--on-feature);
    border-radius: 12px;
    padding: 28px;
}

.after-title {
    font-family: var(--f-head);
    font-stretch: 88%;
    font-size: 22px;
    font-weight: 700;
}

.after-list {
    margin-top: 16px;
    display: grid;
    gap: 14px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--feature-muted);
}

.after-list li {
    display: flex;
    gap: 12px;
}

.after-list strong {
    color: var(--on-feature);
    font-weight: 600;
}

.after-num {
    font-family: var(--f-mono);
    color: var(--accent-bright);
}

.map-section {
    padding-bottom: 96px;
}

.map-frame {
    margin-top: 24px;
    height: 400px;
    border-radius: 12px;
    border: 1px solid var(--card-line);
    overflow: hidden;
    background: var(--surface);
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

[data-theme="dark"] .map-frame iframe {
    filter: invert(90%) hue-rotate(180deg);
}

.footer-links a[aria-current="page"] {
    color: #ffffff;
}

/* ── Servicios ─────────────────────────────────────────────────────────── */
.page-index {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-index a {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: border-color .2s;
}

.page-index a:hover {
    border-color: var(--ink);
}

.page-index i {
    margin-left: 4px;
    font-size: .8em;
}

.svc {
    margin-top: var(--section-gap);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 40px;
    scroll-margin-top: 24px;
}

.svc-intro {
    grid-column: span 5;
    align-self: start;
    position: sticky;
    top: 24px;
    padding-top: 32px;
    border-top: 2px solid var(--ink);
}

.svc-detail {
    grid-column: 7 / span 6;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.svc-kicker {
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--accent-text);
}

.svc-title {
    margin-top: 12px;
    font-family: var(--f-head);
    font-stretch: 88%;
    font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.svc-desc {
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-2);
}

.svc-facts {
    margin-top: 20px;
    font-family: var(--f-mono);
    font-size: 13px;
    line-height: 2;
    color: var(--mono-ink);
}

.svc-actions {
    margin-top: 28px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
}

.svc-group+.svc-group {
    margin-top: 32px;
}

.svc-group-title {
    font-size: 15px;
    font-weight: 600;
}

.mark-list {
    margin-top: 8px;
}

.mark-list li {
    position: relative;
    padding: 12px 0 12px 22px;
    border-bottom: 1px solid var(--line-2);
    font-size: 16px;
    line-height: 1.5;
}

.mark-list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: calc(12px + .75em - 3px);
    width: 6px;
    height: 6px;
    background: var(--accent-text);
}

.mark-list strong {
    font-weight: 600;
}

.tag-list {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list li {
    padding: 6px 10px;
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--mono-ink);
    background: var(--surface);
    border: 1px solid var(--card-line);
    border-radius: 6px;
}

.svc-notes {
    margin-top: 28px;
    display: grid;
    gap: 8px;
    background: var(--tip);
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 15px;
    line-height: 1.5;
}

.svc-notes dt {
    display: inline;
    font-weight: 600;
}

.svc-notes dd {
    display: inline;
    margin: 0;
}

.closing-sub {
    margin-top: 16px;
    max-width: 560px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--muted);
}

/* ── Proyectos ─────────────────────────────────────────────────────────── */
.project-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px 40px;
}

.pi {
    scroll-margin-top: 24px;
}

.pi-group {
    margin-top: var(--section-gap);
    scroll-margin-top: 24px;
}

.pi-group .project-grid {
    margin-top: 32px;
}

.page-hero .note {
    margin-top: 16px;
    max-width: 640px;
}

.pi-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.pi-media-logo {
    position: relative;
    overflow: hidden;
}

.pi-media-logo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .72);
}

.pi-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pi-logo {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 76%;
    width: auto;
}

.stat-card-lg {
    padding: 32px;
}

.stat-card-lg .stat-num {
    font-size: clamp(88px, 9vw, 128px);
}

.stat-card-lg .stat-caption {
    font-size: 17px;
}

.pi-kicker {
    margin-top: 20px;
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--accent-text);
}

.pi-title {
    margin-top: 6px;
    font-family: var(--f-head);
    font-stretch: 88%;
    font-size: 26px;
    font-weight: 650;
    line-height: 1.15;
}

.pi-meta {
    margin-top: 6px;
    font-size: 14px;
    color: var(--muted);
}

.pi-desc {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-2);
}

.pi-stack {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--mono-ink);
}

.pi-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
}

.reg-list {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    border-top: 1px solid var(--line);
}

.reg-list li {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-2);
    font-size: 17px;
}

.reg-num {
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--muted);
}

/* ── Capacitación ──────────────────────────────────────────────────────── */
.module-list {
    margin-top: 8px;
}

.module-list li {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-2);
    font-size: 16px;
    line-height: 1.5;
}

.mod-label {
    flex-shrink: 0;
    min-width: 76px;
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--muted);
}

.section-sub {
    margin-top: 12px;
    font-size: 17px;
    color: var(--muted);
}

.mode-grid {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.mode-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.mode {
    scroll-margin-top: 24px;
}

.section-link {
    display: inline-block;
    margin-top: 28px;
}

.mode-title {
    font-family: var(--f-head);
    font-stretch: 88%;
    font-size: 20px;
    font-weight: 650;
    line-height: 1.2;
}

.mode-desc {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-2);
}

/* ── Nosotros ──────────────────────────────────────────────────────────── */
.about-intro {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 6fr 5fr;
    gap: 56px;
    align-items: center;
}

.about-text p {
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-2);
}

.about-media {
    width: 100%;
    border-radius: 12px;
}

.fact-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
}

.fact-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.fact {
    padding: 24px 24px 8px 0;
}

.fact+.fact {
    padding-left: 24px;
    border-left: 1px solid var(--line-2);
}

.fact dt {
    font-size: 14px;
    color: var(--muted);
}

.fact dd {
    margin: 0;
}

.fact-value {
    margin-top: 8px;
    font-family: var(--f-head);
    font-stretch: 88%;
    font-size: 44px;
    font-weight: 750;
    line-height: 1;
    letter-spacing: -0.01em;
}

.fact-value-sm {
    font-size: 28px;
    line-height: 1.15;
}

.fact-note {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-2);
}

.section-sub-wide {
    max-width: 820px;
    line-height: 1.6;
}

.sub-head {
    margin-top: 40px;
    font-size: 15px;
    font-weight: 600;
}

.sub-lead {
    margin-top: 8px;
    font-size: 15px;
    color: var(--muted);
}

.area-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 40px;
}

.area {
    padding-top: 20px;
    border-top: 2px solid var(--ink);
}

.area-title {
    font-family: var(--f-head);
    font-stretch: 88%;
    font-size: 20px;
    font-weight: 650;
    line-height: 1.2;
}

.area-title-gap {
    margin-top: 32px;
}

.mark-list-sm li {
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: 15px;
}

.mark-list-sm li::before {
    top: calc(9px + .75em - 3px);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
}

.method-list {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.method-list li {
    display: grid;
    gap: 4px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--card-line);
    border-radius: 10px;
}

.method-list strong {
    font-family: var(--f-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-text);
}

.method-list span {
    font-size: 16px;
}

/* ── Aviso de privacidad ───────────────────────────────────────────────── */
.legal {
    margin-top: 48px;
    padding-bottom: 96px;
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 56px;
    align-items: start;
}

.legal-aside {
    position: sticky;
    top: 24px;
}

.legal-card {
    background: var(--surface);
    border: 1px solid var(--card-line);
    border-radius: 12px;
    padding: 24px;
    font-size: 14px;
    line-height: 1.6;
}

.legal-card-title {
    font-family: var(--f-head);
    font-stretch: 88%;
    font-size: 17px;
    font-weight: 650;
}

.legal-card address {
    margin-top: 8px;
    color: var(--ink-2);
}

.legal-card dl {
    margin-top: 12px;
    display: grid;
    gap: 4px;
}

.legal-card dt {
    display: inline;
    font-weight: 600;
}

.legal-card dd {
    display: inline;
    margin: 0;
}

.legal-toc {
    margin-top: 24px;
    display: grid;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.legal-toc a {
    padding: 10px 0;
    border-bottom: 1px solid var(--line-2);
    color: var(--muted);
}

.legal-toc a:hover {
    color: var(--ink);
}

.prose {
    max-width: 720px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-2);
}

.prose p,
.prose ul {
    margin-top: 14px;
}

.prose h2 {
    margin-top: 48px;
    font-family: var(--f-head);
    font-stretch: 88%;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
    scroll-margin-top: 24px;
}

.prose h3 {
    margin-top: 28px;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
}

.prose strong {
    color: var(--ink);
    font-weight: 600;
}

.prose ul li {
    position: relative;
    padding-left: 22px;
}

.prose ul li+li {
    margin-top: 6px;
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: calc(.85em - 3px);
    width: 6px;
    height: 6px;
    background: var(--accent-text);
}

.legal-sign {
    margin-top: 64px !important;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-family: var(--f-mono);
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── Páginas de estado (gracias / error) ───────────────────────────────── */
.status {
    padding-top: 96px;
    padding-bottom: 128px;
}

.status-icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 28px;
    border-radius: 50%;
    background: var(--tip);
    color: var(--accent-text);
    font-size: 22px;
}

.status-icon-error {
    background: rgba(180, 35, 24, .1);
    color: var(--danger);
}

.status-actions {
    margin-top: 32px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
}

/* ── Grower® (producto propio, enlace a grower.digital) ─────────────────── */
.grower-band {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 48px;
    align-items: center;
    padding: 48px;
    background: var(--grower-bg);
    border: 1px solid var(--grower-line);
    border-radius: 16px;
}

.grower-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--f-head);
    font-stretch: 88%;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.grower-brand img {
    width: 40px;
    height: 40px;
}

.grower-brand sup {
    font-size: .5em;
}

.grower-kicker {
    margin-top: 20px;
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--grower-text);
}

.grower-title {
    margin-top: 8px;
    font-family: var(--f-head);
    font-stretch: 88%;
    font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.grower-desc {
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-2);
}

.grower-features {
    margin-top: 20px;
    display: grid;
    gap: 10px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink-2);
}

.grower-features li {
    position: relative;
    padding-left: 20px;
}

.grower-features li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: calc(.75em - 3px);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--grower-text);
}

.grower-features strong {
    color: var(--ink);
    font-weight: 600;
}

.grower-actions {
    margin-top: 28px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
}

.btn-grower {
    background: var(--grower-700);
    color: #ffffff;
    padding: 12px 20px;
    font-size: 15px;
}

.btn-grower:hover {
    background: var(--grower-800);
}

.btn-grower i {
    margin-left: 6px;
    font-size: .8em;
}

.grower-shot {
    margin: 0;
}

.grower-shot img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--grower-line);
    box-shadow: 0 18px 40px -24px rgba(20, 56, 31, .45);
}

.grower-shot figcaption {
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted);
}

.pi-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.ext-icon {
    margin-left: 4px;
    font-size: .75em;
}

/* ── Responsivo ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .main-nav {
        margin-left: 36px;
        gap: 24px;
    }

    .footer-row {
        gap: 40px;
    }
}

@media (max-width: 960px) {
    :root {
        --gutter: 24px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        margin: 0;
        padding: 8px var(--gutter) 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px -16px rgba(12, 22, 32, .25);
        font-size: 17px;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 14px 0;
        border-bottom: 1px solid var(--line-2);
    }

    .main-nav .nav-cta {
        display: block;
        margin-top: 16px;
        padding: 14px 20px;
        border: 0;
        font-size: 15px;
        color: var(--on-solid);
    }

    .main-nav .nav-cta:hover {
        color: var(--on-solid);
    }

    .menu-btn {
        display: inline-grid;
    }

    .header-actions {
        gap: 12px;
    }

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

    .panels {
        min-height: 0;
    }

    .service-list {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 32px;
    }

    .faq-row {
        grid-template-columns: 1fr;
        row-gap: 12px;
        padding: 28px 0;
    }

    .faq dt,
    .faq dd {
        grid-column: auto;
    }

    .faq dt {
        font-size: 22px;
    }

    .stack-grid,
    .mode-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-intro,
    .two-col,
    .legal,
    .grower-band {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .legal-aside {
        position: static;
    }

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

    .fact:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .area-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

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

    .project-grid {
        column-gap: 28px;
    }

    .pi-title {
        font-size: 23px;
    }

    .svc-intro,
    .svc-detail {
        grid-column: auto;
    }

    .svc-intro {
        position: static;
    }

    .svc-detail {
        margin-top: 32px;
        padding-top: 0;
        border-top: 0;
    }

    .footer-row {
        display: grid;
        grid-template-columns: repeat(3, auto);
        justify-content: start;
        gap: 32px 56px;
    }

    .footer-logo,
    .footer-end {
        grid-column: 1 / -1;
    }

    .footer-end {
        margin-left: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    :root {
        --gutter: 16px;
        --header-h: 64px;
    }

    .logo {
        height: 34px;
    }

    .header-cta {
        display: none;
    }

    .hero {
        padding-top: 40px;
    }

    .lead {
        font-size: 17px;
    }

    .selector {
        margin-top: 32px;
    }

    .need-opt {
        padding: 16px;
        gap: 14px;
    }

    .need-label {
        font-size: 19px;
    }

    .selector-foot {
        flex-wrap: wrap;
    }

    .need-panel {
        padding: 24px 20px;
    }

    .project-pair,
    .ref,
    .project-grid,
    .reg-list {
        grid-template-columns: 1fr;
    }

    .project-grid {
        gap: 48px;
    }

    .project-media,
    .ref-media {
        height: 180px;
    }

    .stat-num {
        font-size: 72px;
    }

    .panel-title {
        font-size: 28px;
    }

    .panel-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .panel-cta .btn {
        padding-block: 14px;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

    .service-list a {
        padding: 20px 0;
    }

    .steps,
    .next-steps,
    .mode-grid {
        grid-template-columns: 1fr;
    }

    .mode-grid {
        gap: 24px;
    }

    .mod-label {
        min-width: 64px;
    }

    .fact {
        padding-right: 12px;
    }

    .fact:nth-child(even) {
        padding-left: 16px;
    }

    .fact-value {
        font-size: 36px;
    }

    .fact-value-sm {
        font-size: 22px;
    }

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

    .method-list {
        grid-template-columns: 1fr;
    }

    .legal {
        padding-bottom: 72px;
    }

    .grower-band {
        padding: 28px 20px;
    }

    .status {
        padding-top: 56px;
        padding-bottom: 88px;
    }

    .next-steps {
        gap: 12px;
    }

    .step {
        padding: 28px 24px;
    }

    .step-title {
        font-size: 26px;
    }

    .stack-grid {
        gap: 28px 20px;
    }

    .closing {
        padding-bottom: 72px;
    }

    .page-hero {
        padding-top: 40px;
    }

    .contact-grid {
        margin-top: 32px;
    }

    .form-card {
        padding: 24px 20px;
    }

    .after-send {
        padding: 24px 20px;
    }

    .map-frame {
        height: 320px;
    }

    .map-section {
        padding-bottom: 72px;
    }

    .footer-row {
        grid-template-columns: 1fr 1fr;
        gap: 28px 24px;
    }

    .footer-address {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

/* ==========================================================================
   3.0 — Portada y contacto orientados a cotizar
   ========================================================================== */

/* ── Encabezado: teléfono y botón de acción ───────────────────────────── */
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

.header-phone i {
    font-size: 13px;
    color: var(--muted);
}

.site-header .header-cta,
.main-nav .nav-cta {
    background: var(--accent);
    color: var(--on-accent);
}

.site-header .header-cta:hover,
.main-nav .nav-cta:hover {
    background: var(--accent-hover);
    color: var(--on-accent);
}

/* ── Utilidades ───────────────────────────────────────────────────────── */
.kicker {
    font-family: var(--f-mono);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent-text);
}

.btn-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    font-size: 16px;
    border-radius: 8px;
}

.btn-outline {
    border: 1px solid var(--ink);
    color: var(--ink);
    padding: 11px 18px;
    font-size: 15px;
    border-radius: 8px;
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--bg);
}

.btn i {
    font-size: .9em;
}

.btn,
.btn-lg {
    transition: background-color .2s, color .2s, transform .15s, box-shadow .25s;
}

.btn-accent:hover,
.btn-lg:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -12px rgba(0, 119, 168, .6);
}

.go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    font-weight: 600;
}

.sec {
    padding-top: var(--section-gap);
}

.sec-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 40px;
    margin-bottom: 40px;
}

.sec-head .section-title {
    margin-top: 12px;
    font-size: clamp(1.9rem, 1.2rem + 2vw, 2.75rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    max-width: 720px;
}

/* ── Apertura ─────────────────────────────────────────────────────────── */
.hero3 {
    position: relative;
    overflow: hidden;
}

.hero3-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--dots) 1px, transparent 1.4px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 42% 80% at 80% 45%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 42% 80% at 80% 45%, #000 20%, transparent 75%);
    pointer-events: none;
}

.hero3-traces {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1440px;
    margin-left: -720px;
    pointer-events: none;
}

.hero3-traces svg {
    display: block;
}

.hero3-traces .trace {
    fill: none;
    stroke: var(--trace);
    stroke-width: 2;
    stroke-linejoin: round;
}

.hero3-traces .via {
    fill: var(--bg);
    stroke: var(--trace);
    stroke-width: 1.5;
}

.hero3-traces .signal {
    fill: none;
    stroke: var(--signal);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 10 140;
    stroke-dashoffset: 150;
    filter: drop-shadow(0 0 3px rgba(1, 141, 193, .7));
    animation: sig 4.8s linear infinite;
}

.hero3-grid {
    position: relative;
    z-index: 1;
    padding-top: clamp(40px, 6vw, 80px);
    padding-bottom: clamp(48px, 6vw, 88px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.hero3-copy {
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
}

.led {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--signal);
    animation: led 2.2s ease-out infinite;
}

.hero3-title {
    font-family: var(--f-head);
    font-stretch: 92%;
    font-weight: 700;
    font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.1rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.mark {
    background-image: linear-gradient(var(--highlight), var(--highlight));
    background-repeat: no-repeat;
    background-position: 0 90%;
    background-size: 100% .32em;
    animation: mark 1s cubic-bezier(.6, 0, .2, 1) 1s both;
}

.hero3-lead {
    max-width: 600px;
    font-size: clamp(17px, 1.5vw, 19px);
    line-height: 1.6;
    color: var(--ink-2);
}

.check-list {
    display: grid;
    gap: 14px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.check-list svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--accent-text);
}

.check-list strong {
    font-weight: 600;
}

.hero3-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 15px;
}

.hero3-contact span {
    color: var(--muted);
}

.hero3-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-weight: 600;
}

/* Tarjeta de cotización */
.quote-card {
    background: var(--surface);
    border: 1px solid var(--card-line);
    border-radius: 14px;
    box-shadow: var(--shadow-float);
    padding: clamp(22px, 2.4vw, 32px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: card-in .9s cubic-bezier(.2, .7, .2, 1) .35s both;
}

.quote-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.quote-head .kicker {
    font-size: 12px;
}

.quote-steps {
    display: flex;
    gap: 6px;
}

.quote-steps span {
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: var(--line);
}

.quote-steps .on {
    background: var(--ink);
    animation: fill .8s ease-out 1.1s both;
}

.quote-title {
    font-family: var(--f-head);
    font-stretch: 92%;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
}

.q-opts {
    display: grid;
    gap: 8px;
}

.q-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--card-line);
    border-radius: 8px;
    background: var(--surface);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}

.q-opt:hover {
    box-shadow: 0 0 0 1px var(--ink);
}

.q-dot {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--radio);
    box-shadow: inset 0 0 0 3px var(--surface);
}

.q-opt[aria-pressed="true"] {
    border-color: var(--ink);
    background: var(--tip);
}

.q-opt[aria-pressed="true"] .q-dot {
    border-color: var(--ink);
    background: var(--ink);
    box-shadow: inset 0 0 0 3px var(--tip);
}

.quote-cta {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.glint::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%);
    transform: translateX(-130%);
    animation: glint 5s ease-in-out 2.4s infinite;
    pointer-events: none;
}

.quote-note {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

/* Entrada escalonada de la apertura */
.in {
    animation: up .8s cubic-bezier(.2, .7, .2, 1) both;
    animation-delay: var(--d, 0s);
}

/* ── Franja de cifras ─────────────────────────────────────────────────── */
.proof {
    background: var(--feature);
    color: var(--on-feature);
}

.proof-inner {
    padding-block: clamp(40px, 5vw, 56px);
}

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

.proof-item {
    padding: 0 28px;
    border-left: 1px solid var(--feature-line);
}

.proof-item:first-child {
    padding-left: 0;
    border-left: 0;
}

.proof-num {
    font-family: var(--f-head);
    font-stretch: 92%;
    font-weight: 700;
    font-size: clamp(34px, 3.3vw, 46px);
    white-space: nowrap;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.proof-num.accent {
    color: var(--accent-bright);
}

.proof-cap {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--feature-muted);
}

.proof-foot {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--feature-line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 28px;
    font-size: 15px;
}

.proof-foot .kicker {
    font-size: 12px;
    color: var(--feature-muted);
}

/* ── Tarjetas de servicio y de proyecto ───────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

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

.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--card-line);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
}

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

.card-media {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--line-2);
}

.card-media-sm {
    height: 200px;
}

.card-media img,
.card-media > svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}

.card:hover .card-media img,
.card:hover .card-media > svg {
    transform: scale(1.06);
}

.card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
}

.card-title {
    font-family: var(--f-head);
    font-stretch: 92%;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.card-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-2);
}

.card-tags {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--muted);
}

.card-link {
    margin-top: auto;
    padding-top: 4px;
    color: var(--accent-text);
}

.go i {
    transition: transform .2s;
}

.go:hover i {
    transform: translateX(5px);
}

/* Miniaturas del banco */
.thumbs {
    height: 100%;
    display: flex;
    gap: 4px;
    background: var(--line-2);
}

.thumbs figure {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    overflow: hidden;
}

.thumbs figcaption {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(8, 48, 68, .85);
    color: #ffffff;
    font-family: var(--f-mono);
    font-size: 11px;
    line-height: 1.4;
}

/* Ilustración de prueba ICT */
.ict {
    background: #083044;
}

.ict > svg {
    position: absolute;
    inset: 0;
}

.ict-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 48, 68, .96) 0%, rgba(8, 48, 68, .8) 34%, rgba(8, 48, 68, 0) 58%);
    pointer-events: none;
}

.ict-stat {
    position: absolute;
    left: 24px;
    bottom: 22px;
    color: #d6e2ea;
    font-size: 14px;
}

.ict-stat strong {
    display: block;
    margin-bottom: 4px;
    font-family: var(--f-head);
    font-stretch: 92%;
    font-size: 60px;
    font-weight: 700;
    line-height: .95;
    color: #5cc8f0;
}

.tp {
    animation: tp 3.2s linear infinite;
}

.ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: ring 1.8s ease-out infinite;
}

.scan {
    animation: scan 3.2s linear infinite;
}

/* La misma ilustración como imagen de una ficha de Proyectos */
.pi-ict {
    position: relative;
    overflow: hidden;
}

.pi-ict > svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Ficha técnica del proyecto */
.spec {
    font-size: 14px;
}

.spec div {
    display: flex;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid var(--line-3);
}

.spec div:last-child {
    border-bottom: 1px solid var(--line-3);
}

.spec dt {
    flex: 0 0 96px;
    color: var(--muted);
}

.spec dd {
    margin: 0;
}

.spec .result {
    font-weight: 600;
}

/* Otros servicios */
.more-services {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 24px;
    border-top: 1px solid var(--line);
}

.more-services a {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.more-services strong {
    display: block;
    font-size: 17px;
    font-weight: 600;
}

.more-services span {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: var(--muted);
}

.more-services i {
    margin-top: 6px;
    transition: transform .2s;
}

.more-services a:hover i {
    transform: translateX(5px);
}

/* ── Proceso ──────────────────────────────────────────────────────────── */
.proc-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.proc {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--card-line);
    border-radius: 12px;
    transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
}

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

.proc-label {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: .06em;
    color: var(--accent-text);
}

.proc-title {
    font-family: var(--f-head);
    font-stretch: 92%;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}

.proc-desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-2);
}

.proc-feature {
    background: var(--feature);
    border-color: var(--feature);
    color: var(--on-feature);
}

.proc-feature .proc-label {
    color: var(--accent-bright);
}

.proc-feature .proc-desc {
    color: var(--feature-muted);
}

.proc-cta {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    color: var(--muted);
    font-size: 15px;
}

.proc-cta a:not(.btn) {
    color: var(--ink);
    font-weight: 600;
}

/* ── Por qué Tlachia ──────────────────────────────────────────────────── */
.why {
    padding: clamp(28px, 4vw, 56px);
    background: var(--surface);
    border: 1px solid var(--card-line);
    border-radius: 16px;
}

.why-top {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 32px 64px;
    align-items: start;
}

.why-top .section-title {
    margin-top: 12px;
    font-size: clamp(1.9rem, 1.2rem + 2vw, 2.75rem);
    line-height: 1.08;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 40px;
}

.why-item {
    padding-top: 16px;
    border-top: 2px solid var(--ink);
}

.why-item h3 {
    font-size: 17px;
    font-weight: 600;
}

.why-item p {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-2);
}

.why-stack {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--line-3);
}

.why-stack-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.marquee {
    margin-top: 14px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 46s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee ul {
    display: flex;
    gap: 8px;
    padding-right: 8px;
}

.marquee li {
    flex: 0 0 auto;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--line-2);
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--mono-ink);
    white-space: nowrap;
}

/* ── Preguntas frecuentes (portada) ───────────────────────────────────── */
.faq3 {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 32px 64px;
    align-items: start;
}

.faq3-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.faq3-intro .section-title {
    font-size: clamp(1.9rem, 1.2rem + 2vw, 2.75rem);
    line-height: 1.08;
}

.faq3-intro p:not(.kicker) {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-2);
}

.faq3-list {
    border-top: 1px solid var(--line);
}

.faq3-list div {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.faq3-list dt {
    font-family: var(--f-head);
    font-stretch: 92%;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.faq3-list dd {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-2);
}

/* ── Cierre ───────────────────────────────────────────────────────────── */
.closing-band {
    margin-bottom: clamp(64px, 8vw, 112px);
    padding: clamp(32px, 5vw, 64px);
    border-radius: 16px;
    background: var(--feature);
    color: var(--on-feature);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    gap: 32px 56px;
    align-items: center;
}

.closing-band .closing-title {
    font-size: clamp(1.9rem, 1.2rem + 2vw, 2.75rem);
    line-height: 1.08;
    font-weight: 700;
}

.closing-band p {
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--feature-muted);
}

.closing-actions {
    display: grid;
    gap: 12px;
}

.closing-actions .btn-lg {
    width: 100%;
}

.btn-bright {
    background: var(--accent-bright);
    color: var(--on-accent-bright);
}

.btn-bright:hover {
    background: #86d8f5;
}

.btn-ghost {
    border: 1px solid #5d8299;
    color: #ffffff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .08);
}

.closing-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 18px;
    font-size: 14px;
}

.closing-contact a {
    color: #ffffff;
}

/* ── Contacto 3.0: formulario en dos pasos ────────────────────────────── */
.form-progress {
    display: grid;
    gap: 10px;
    margin-bottom: 28px;
}

.form-progress-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.form-progress .kicker {
    font-size: 12px;
}

.form-progress-name {
    font-size: 14px;
    font-weight: 600;
}

.form-progress-bar {
    display: flex;
    gap: 6px;
}

.form-progress-bar span {
    flex: 1 1 0;
    height: 4px;
    border-radius: 2px;
    background: var(--line);
    transition: background-color .3s;
}

.form-progress-bar .on {
    background: var(--ink);
}

.form-step {
    display: grid;
    gap: 28px;
}

/* Sin JS se ven los dos pasos y no hay botones de navegación */
.js-only {
    display: none !important;
}

.js .js-only {
    display: revert !important;
}

.js .js-only.btn,
.js .js-only.btn-text,
.js .js-only.form-summary,
.js .js-only.form-nav {
    display: flex !important;
}

.js .js-only.form-progress {
    display: grid !important;
}

.choice-group .legend-sm {
    margin-bottom: 10px;
    font-family: var(--f-body);
    padding: 0;
    font-size: 14px;
    font-weight: 600;
}

.choice-group {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.choice-group legend,
.field .q-label {
    margin-bottom: 12px;
    padding: 0;
    font-family: var(--f-head);
    font-stretch: 92%;
    font-size: 21px;
    font-weight: 700;
}

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

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

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

.choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 10px 14px;
    border: 1px solid var(--card-line);
    border-radius: 8px;
    background: var(--surface);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}

.choice:hover {
    box-shadow: 0 0 0 1px var(--ink);
}

.choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice .q-dot {
    transition: background-color .15s, border-color .15s;
}

.choice:has(input:checked) {
    border-color: var(--ink);
    background: var(--tip);
}

.choice:has(input:checked) .q-dot {
    border-color: var(--ink);
    background: var(--ink);
    box-shadow: inset 0 0 0 3px var(--tip);
}

.choice:has(input:focus-visible) {
    outline: 2px solid var(--accent-text);
    outline-offset: 2px;
}

.choice-pill {
    justify-content: center;
    min-height: 46px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.choice-pill:has(input:checked) {
    background: var(--solid);
    border-color: var(--solid);
    color: var(--on-solid);
}

.form-tip {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    background: var(--tip);
    font-size: 14px;
    line-height: 1.55;
}

.form-tip strong {
    font-weight: 600;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.field-grid .field + .field {
    margin-top: 0;
}

.field .optional {
    font-weight: 400;
    color: var(--muted);
}

.form-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--line-2);
    font-size: 14px;
    color: var(--ink-2);
}

.form-summary strong {
    color: var(--ink);
    font-weight: 600;
}

.form-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
}

.form-nav .note {
    margin: 0;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-weight: 600;
    color: var(--ink);
}

.link-btn {
    min-height: 36px;
    color: var(--accent-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.field-error {
    font-size: 13px;
    color: var(--danger);
}

.contact-buttons {
    display: grid;
    gap: 10px;
}

.contact-buttons a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--card-line);
    border-radius: 8px;
    background: var(--surface);
    font-weight: 600;
    font-size: 15px;
    transition: border-color .2s;
}

.contact-buttons a:hover {
    border-color: var(--ink);
}

.contact-buttons i {
    width: 18px;
    color: var(--muted);
}

.trust-list {
    display: grid;
    gap: 10px;
    font-size: 14px;
    color: var(--ink-2);
}

.trust-list li {
    display: flex;
    gap: 10px;
}

.trust-list i {
    margin-top: 3px;
    color: var(--accent-text);
}

.aside-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--card-line);
    border-radius: 12px;
}

.aside-card h2 {
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 600;
}

.contact-aside3 {
    display: grid;
    gap: 20px;
}

.contact-aside3 .after-send {
    margin-top: 0;
}

/* ── Animaciones ──────────────────────────────────────────────────────── */
@keyframes up { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes card-in { from { opacity: 0; translate: 0 28px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes fill { from { width: 0; } }
@keyframes mark { from { background-size: 0% .32em; } }
@keyframes sig { from { stroke-dashoffset: 150; } to { stroke-dashoffset: 0; } }
@keyframes led { 0% { box-shadow: 0 0 0 0 rgba(1, 141, 193, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(1, 141, 193, 0); } }
@keyframes glint { 0% { transform: translateX(-130%); } 35%, 100% { transform: translateX(130%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scan { from { transform: translateX(0); } to { transform: translateX(236px); } }
@keyframes tp { 0% { fill: #0c3b53; } 4% { fill: #9be4ff; } 20%, 100% { fill: #0c3b53; } }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }

/* Aparición al hacer scroll: site.js agrega .is-visible (solo con JS activo) */
.js .reveal {
    opacity: 0;
    translate: 0 32px;
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), translate .7s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--i, 0) * 90ms);
}

.js .reveal.is-visible {
    opacity: 1;
    translate: 0 0;
}

.stagger > :nth-child(2) { --i: 1; }
.stagger > :nth-child(3) { --i: 2; }
.stagger > :nth-child(4) { --i: 3; }
.stagger > :nth-child(5) { --i: 4; }

/* ── Encabezado fijo: anclas y columnas fijas quedan debajo de él ─────── */
html {
    scroll-padding-top: calc(var(--header-h) + 16px);
}

.svc-intro,
.legal-aside {
    top: calc(var(--header-h) + 24px);
}

/* ── Barra de acción fija en celular (portada) ────────────────────────── */
.mobile-bar {
    display: none;
}

/* ── Responsivo 3.0 ───────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .header-phone {
        display: none;
    }

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

@media (max-width: 960px) {
    .hero3-traces {
        display: none;
    }

    .hero3-grid,
    .why-top,
    .faq3,
    .closing-band {
        grid-template-columns: 1fr;
    }

    .quote-card {
        max-width: 560px;
    }

    .proof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 28px;
    }

    .proof-item:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

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

    .more-services {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        display: flex;
        gap: 10px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: var(--header-bg);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--line-2);
        box-shadow: 0 -8px 24px -16px rgba(8, 48, 68, .35);
    }

    .mobile-bar .btn {
        flex: 1 1 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 48px;
        padding: 0 12px;
    }

    .mobile-bar .btn-accent {
        flex-grow: 1.4;
    }

    .has-mobile-bar .site-footer {
        padding-bottom: 76px;
    }

    .hero3-contact {
        gap: 0 20px;
    }

    .proof-grid,
    .card-grid,
    .card-grid-2,
    .proc-grid,
    .why-grid,
    .choice-grid,
    .field-grid {
        grid-template-columns: 1fr;
    }

    .proof-item,
    .proof-item:nth-child(3) {
        padding: 0;
        border-left: 0;
    }

    .proof-item + .proof-item {
        padding-top: 20px;
        border-top: 1px solid var(--feature-line);
    }

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

    .thumbs figcaption {
        font-size: 10px;
        left: 6px;
        bottom: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .in,
    .quote-card,
    .quote-steps .on,
    .mark,
    .led,
    .glint::after,
    .hero3-traces .signal,
    .marquee-track,
    .tp,
    .ring {
        animation: none !important;
    }

    .scan,
    .hero3-traces .signal {
        display: none;
    }

    .js .reveal {
        opacity: 1;
        translate: none;
    }

    .marquee {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .marquee-track {
        width: auto;
        flex-wrap: wrap;
    }

    .marquee ul {
        flex-wrap: wrap;
    }

    .marquee ul[aria-hidden="true"] {
        display: none;
    }

    .card:hover,
    .proc:hover,
    .card:hover .card-media img,
    .card:hover .card-media > svg {
        transform: none;
    }
}

/* ── Proyectos 3.0: ficha destacada (ocupa las dos columnas) ───────────── */
.pi-feature {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 0 48px;
    align-items: center;
}

.pi-feature-top {
    align-items: start;
}

.pi-feature .pi-kicker {
    margin-top: 0;
}

.pi-figs {
    margin-top: 18px;
    padding: 14px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    border-top: 1px solid var(--line-2);
    border-bottom: 1px solid var(--line-2);
}

.pi-figs li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pi-figs strong {
    font-family: var(--f-head);
    font-stretch: 88%;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: var(--ink);
}

.pi-figs li > span {
    font-size: 13px;
    line-height: 1.4;
    color: var(--muted);
}

@media (max-width: 960px) {
    .pi-feature {
        grid-template-columns: 1fr;
    }

    .pi-feature .pi-kicker {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .pi-figs {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pi-figs li {
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
    }

    .pi-figs strong {
        font-size: 24px;
        min-width: 64px;
    }
}

/* ── Páginas interiores 3.0: animaciones como en la portada ────────────── */
/* Apertura con puntos, trazas de circuito y señales (marcado de _build/animate_inner.py) */
.page-hero3 {
    position: relative;
    overflow: hidden;
}

.page-hero3 > .page-hero,
.page-hero3 > .status {
    position: relative;
    z-index: 1;
}

.page-hero3 > .page-hero {
    padding-bottom: 8px;
}

.page-hero3 .hero3-traces {
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.page-hero .eyebrow + .display,
.status .eyebrow + .display {
    margin-top: 14px;
}

/* Páginas de estado: halo que late alrededor del icono */
.status-icon {
    position: relative;
}

.status-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    animation: halo 2.6s ease-out 1s infinite;
}

@keyframes halo {
    0% { transform: scale(1); opacity: .45; }
    100% { transform: scale(1.9); opacity: 0; }
}

/* Hijos que aparecen escalonados cuando su contenedor entra en pantalla */
.js .reveal-kids > * {
    opacity: 0;
    translate: 0 28px;
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), translate .7s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--i, 0) * 90ms);
}

.js .reveal-kids.is-visible > * {
    opacity: 1;
    translate: 0 0;
}

.reveal-kids > :nth-child(2) { --i: 1; }
.reveal-kids > :nth-child(3) { --i: 2; }
.reveal-kids > :nth-child(4) { --i: 3; }
.reveal-kids > :nth-child(5) { --i: 4; }
.reveal-kids > :nth-child(6) { --i: 5; }

/* Escalonado en rejillas: la segunda columna entra un poco después */
.project-grid > .reveal:nth-child(even) { --i: 1; }
.area-grid > .reveal:nth-child(3n + 2) { --i: 1; }
.area-grid > .reveal:nth-child(3n) { --i: 2; }
.about-intro > .reveal + .reveal { --i: 2; }

/* La línea superior de servicios y áreas se dibuja al aparecer */
.js .svc-intro.reveal,
.js .area.reveal {
    border-top-color: transparent;
}

.js .area.reveal {
    position: relative;
}

.js .svc-intro.reveal::before,
.js .area.reveal::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -2px;
    height: 2px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1s cubic-bezier(.6, 0, .2, 1) .2s;
}

.js .svc-intro.reveal.is-visible::before,
.js .area.reveal.is-visible::before {
    transform: scaleX(1);
}

/* Efectos al pasar el cursor */
.pi-media {
    transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s cubic-bezier(.2, .7, .2, 1);
}

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

.page-index a {
    transition: transform .25s ease, border-color .25s ease, color .25s ease;
}

.page-index a:hover {
    transform: translateY(-2px);
    color: var(--accent-text);
}

@media (max-width: 1100px) {
    .page-hero3 .hero3-traces {
        display: none;
    }
}

@media (max-width: 960px) {
    /* relative solo ancla la línea animada; sin top: auto heredaría el top del
       modo sticky de escritorio y desplazaría el bloque sobre su detalle */
    .js .svc-intro.reveal {
        position: relative;
        top: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .status-icon::after {
        animation: none;
        display: none;
    }

    .js .reveal-kids > * {
        opacity: 1;
        translate: none;
    }

    .js .svc-intro.reveal::before,
    .js .area.reveal::before {
        transform: none;
        transition: none;
    }

    .pi:hover .pi-media,
    .page-index a:hover {
        transform: none;
    }
}
