/* TrailStart — concepto "El sendero"
   Azul noche y magenta del logo. Poppins, la letra del logo, en todo el sitio.
   Composición editorial con líneas finas; tarjetas solo donde agrupan. */

@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url(../fonts/poppins-700.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/poppins-400-italic.woff2) format("woff2"); }

:root {
    --navy: #10132b;
    --navy-2: #181c3a;
    --navy-3: #262b52;
    --pink: #d81259;
    --pink-dark: #b40e4a;
    --pink-light: #ff5c93;
    --ink: #10132b;
    --text: #41455e;
    --muted: #5f6380;
    --on-dark: #c4c7dc;
    --on-dark-muted: #9a9dbb;
    --line: #e2e4ec;
    --line-dark: rgba(255, 255, 255, .13);
    --bg: #ffffff;
    --bg-alt: #f4f5f9;
    --ok: #12703f;
    --error: #b0103f;
    --head: "Poppins", system-ui, sans-serif;
    --body: "Poppins", system-ui, sans-serif;
    --wrap: 1200px;
    --gutter: 24px;
    --header-h: 54px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 87.5%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 .94rem/1.7 var(--body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 2.7vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.ic { flex: none; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }
.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 { position: absolute; left: -9999px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 14px; font-weight: 600; }
.skip:focus { left: 16px; top: 16px; }

/* Antetítulo: la nubecita del logo + el texto en Poppins, como el logo (sin mayúsculas forzadas) */
.eyebrow {
    display: flex; align-items: center; gap: 9px; margin-bottom: 14px;
    font: 600 .92rem/1.2 var(--head); letter-spacing: 0; color: var(--pink);
}
.eyebrow::before { content: ""; flex: none; width: 20px; height: 20px; background: url(../img/marca-64.webp) center / contain no-repeat; }
.eyebrow-light { color: #fff; }

/* Botones */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px;
    padding: 11px 22px; border-radius: 8px; border: 1px solid transparent;
    font: 600 .95rem/1.1 var(--body); text-decoration: none; text-align: center; cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}
.btn::after {
    content: ""; flex: none; width: 7px; height: 7px; border: solid currentColor; border-width: 2px 2px 0 0;
    transform: rotate(45deg); transition: transform .2s;
}
.btn:hover::after { transform: translateX(3px) rotate(45deg); }
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--pink-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-3); }
.btn-ghost-dark { border-color: var(--ink); color: var(--ink); background: none; }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }
.btn-ghost-dark::after { display: none; }
.btn-sm { min-height: 40px; padding: 10px 18px; font-size: .9rem; }
.btn[disabled] { cursor: progress; opacity: .85; }
.btn.is-loading::after {
    width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
    border-radius: 50%; transform: none; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: background-color .25s, border-color .25s; }
/* El header ocupa todo el ancho de la ventana, con aire a los lados */
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); max-width: none; padding: 0 clamp(20px, 4.5vw, 72px); }
.brand { display: block; position: relative; }
.brand img { height: 23px; width: auto; }
.brand-light { position: absolute; inset: 0; opacity: 0; }
.nav { display: flex; align-items: center; margin-left: auto; margin-right: clamp(20px, 2.2vw, 36px); }
.nav-list { display: flex; align-items: center; gap: clamp(20px, 2.2vw, 36px); }
.nav-list a { display: block; text-decoration: none; font-weight: 500; font-size: .84rem; color: var(--ink); position: relative; padding: 6px 0; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-list a:hover::after { transform: scaleX(1); }
.nav-num, .nav-contact { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; place-items: center; width: 42px; height: 42px; background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); cursor: pointer; }
.nav-toggle .when-open { display: none; }

.site-header.is-over:not(.is-scrolled) { background: var(--navy); border-color: transparent; }
.site-header.is-over:not(.is-scrolled) .brand-dark { opacity: 0; }
.site-header.is-over:not(.is-scrolled) .brand-light { opacity: 1; }
.site-header.is-over:not(.is-scrolled) .nav-list a,
.site-header.is-over:not(.is-scrolled) .nav-toggle { color: #fff; }

/* Portada: fondo blanco con el panel del globo a la derecha */
.hero { background: #fff; color: var(--text); padding: 24px 0 52px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--ink); max-width: 16ch; }
.hero-copy { padding-right: 24px; }
.hero .lead { font-size: 1rem; max-width: 44ch; margin-bottom: 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; align-items: center; gap: 22px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero-badges img:first-child { height: 50px; width: auto; }
.hero-badges img:last-child { height: 38px; width: auto; }

.hero-visual { position: relative; }
.globe-panel { position: relative; margin: 0; aspect-ratio: 1 / 1; max-height: 400px; width: 100%; background: var(--navy); border-radius: 20px; overflow: hidden; }
.globe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.globe-panel figcaption { position: absolute; inset: 0; pointer-events: none; }
.globe-tag { position: absolute; top: 24px; left: 26px; margin: 0; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.globe-legend { position: absolute; right: 22px; bottom: 20px; display: grid; gap: 6px; font-size: .78rem; color: var(--on-dark); }
.globe-legend li { display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-office { background: var(--pink); }
.dot-country { background: var(--pink-light); width: 7px; height: 7px; }
.dot-aws { background: #ff9900; box-shadow: 0 0 0 2px var(--navy), 0 0 0 3px #ff9900; }

/* Tarjeta del caso, flotando sobre la esquina del panel */
.trail-float { position: absolute; left: -90px; bottom: -28px; width: 284px; padding: 16px 20px 12px; box-shadow: 0 18px 40px -18px rgba(16, 19, 43, .55); }
.trail-float .trail-head { padding-bottom: 12px; }
.trail-float .trail-head span { font-size: .68rem; }
.trail-float .trail-head strong { font-size: .95rem; }
.trail-float .trail-steps li { padding: 5px 0 5px 26px; }
.trail-float .trail-steps li::before { top: 11px; width: 12px; height: 12px; }
.trail-float .trail-node { font-size: .84rem; }
.trail-float .trail-desc { font-size: .74rem; line-height: 1.4; }
.trail-float .trail-result { font-size: .85rem; padding-top: 12px; }
.trail-float .trail-result strong { font-size: 1.3rem; }

/* Franja azul con cifras y clientes */
.band { background: var(--navy); color: var(--on-dark); padding-top: 8px; }
.band .stats { border-top: 0; }

/* Recorrido del caso: la única animación del sitio, porque explica cómo fluye la atención */
.trail { margin: 0; color: var(--on-dark); background: var(--navy-2); border: 1px solid var(--line-dark); border-radius: 12px; padding: 26px 28px 22px; }
.trail-head { display: flex; flex-direction: column; gap: 4px; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid var(--line-dark); }
.trail-head span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.trail-head strong { font: 600 1.05rem var(--head); color: #fff; }
.trail-steps { position: relative; }
.trail-steps::before, .trail-steps::after { content: ""; position: absolute; left: 6px; width: 2px; }
.trail-steps::before { top: 24px; bottom: 24px; background: var(--line-dark); }
.trail-steps::after { top: 24px; height: 48px; background: linear-gradient(transparent, var(--pink)); animation: trail-run 5s linear infinite; }
@keyframes trail-run {
    0% { transform: translateY(-48px); opacity: 0; }
    8%, 92% { opacity: 1; }
    100% { transform: translateY(calc(var(--trail-h, 240px) - 24px)); opacity: 0; }
}
.trail-steps li { position: relative; display: grid; padding: 11px 0 11px 32px; }
.trail-steps li::before {
    content: ""; position: absolute; left: 0; top: 16px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--navy-2); border: 2px solid rgba(255, 255, 255, .3);
    animation: trail-node 5s calc(var(--i) * 1s) linear infinite;
}
.trail-node { font: 600 1rem/1.3 var(--head); color: #fff; animation: trail-text 5s calc(var(--i) * 1s) linear infinite; }
.trail-desc { font-size: .88rem; color: var(--on-dark-muted); }
@keyframes trail-node {
    0%, 22% { background: var(--pink); border-color: var(--pink); }
    30%, 100% { background: var(--navy-2); border-color: rgba(255, 255, 255, .3); }
}
@keyframes trail-text { 0%, 22% { color: var(--pink-light); } 30%, 100% { color: #fff; } }
.trail-result { margin: 6px 0 0; padding-top: 16px; border-top: 1px solid var(--line-dark); font-size: .95rem; }
.trail-result strong { font: 700 1.6rem var(--head); color: #fff; margin-right: 8px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line-dark); }
.stat { padding: 30px 24px 40px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.stat dt { font: 700 2.4rem/1 var(--head); color: #fff; margin-bottom: 10px; }
.stat dd { margin: 0; font-size: .92rem; color: var(--on-dark-muted); max-width: 26ch; }

/* Alianzas */
.trust { border-bottom: 1px solid var(--line); }
.trust-inner { display: flex; align-items: center; gap: 40px; padding-top: 24px; padding-bottom: 24px; }
.trust-label { flex: none; margin: 0; max-width: 13ch; font-size: .75rem; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.trust-logos { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.trust-logos img { height: 64px; width: auto; }
.trust-logos li:nth-child(2) img { height: 46px; }

/* Secciones */
.section { padding: 68px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 30px; }
.section-head p:last-child { font-size: 1.1rem; margin-bottom: 0; }

/* Servicios */
.tabs { display: grid; grid-template-columns: 330px 1fr; gap: 48px; align-items: start; }
.tab-list { display: grid; border-top: 1px solid var(--line); }
.tab {
    position: relative; display: flex; align-items: baseline; gap: 16px; width: 100%; text-align: left;
    padding: 26px 0 26px 20px; background: none; border: 0; border-bottom: 1px solid var(--line);
    font: inherit; color: var(--muted); cursor: pointer; transition: color .2s;
}
.tab::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; background: var(--pink); transform: scaleY(0); transition: transform .25s; }
.tab:hover, .tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::before { transform: scaleY(1); }
.tab-num { font: 600 .85rem var(--head); color: var(--pink); }
.tab-title { font: 600 1.2rem/1.3 var(--head); }
.tab-panel { background: var(--bg-alt); border-radius: 12px; padding: 30px 34px; }
.tab-panel h3 { font-size: 1.65rem; }
.tab-text { font-size: 1.06rem; max-width: 62ch; }
.tab-items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; margin: 26px 0 30px; }
.tab-items li { padding: 13px 0; border-top: 1px solid #d9dce6; color: var(--ink); font-weight: 500; }
.tab-foot { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 26px; border-top: 1px solid #d9dce6; }
.tab-foot p { margin: 0; max-width: 48ch; font-size: .95rem; }
.tab-foot strong { display: block; color: var(--ink); margin-bottom: 4px; }
.tab-foot .btn { flex: none; }
html:not(.js) .tab-panel[hidden] { display: block !important; margin-top: 24px; }

.caps-block { margin-top: 52px; }
.caps-title { font-size: 1rem; margin-bottom: 20px; }
.caps { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cap { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 26px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 500; font-size: .95rem; color: var(--ink); }
.cap img { height: 40px; width: auto; }

/* Casos: filas editoriales, no tarjetas */
.cases { border-top: 1px solid var(--ink); }
.case { display: grid; grid-template-columns: 220px 1fr 240px; gap: 40px; padding: 30px 0; border-bottom: 1px solid #d9dce6; }
.case-who { display: flex; flex-direction: column; gap: 6px; }
.case-client { font: 700 1.3rem/1.2 var(--head); color: var(--ink); }
.case-logo { align-self: flex-start; max-height: 52px; max-width: 180px; width: auto; height: auto; margin-bottom: 8px; }
.case-sector { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); font-weight: 600; }
.case h3 { font-size: 1.45rem; }
.case-body > p:not(.case-stack) { max-width: 66ch; }
.case-stack { margin: 0; font-size: .92rem; color: var(--ink); font-weight: 500; }
.case-stack span { color: var(--muted); font-weight: 400; }
.case-result { margin: 0; padding-left: 28px; border-left: 2px solid var(--pink); align-self: start; }
.case-result strong { display: block; font: 700 clamp(2.6rem, 4vw, 3.4rem)/1 var(--head); color: var(--ink); letter-spacing: -.02em; margin-bottom: 10px; }
.case-result span { display: block; font-size: .95rem; color: var(--text); }

/* Metodología */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: paso; position: relative; }
.steps::before { content: ""; position: absolute; top: 19px; left: 0; right: 0; height: 1px; background: var(--line-dark); }
.steps li { counter-increment: paso; position: relative; padding-right: 32px; }
.steps li::before {
    content: "0" counter(paso); position: relative; display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 26px;
    border-radius: 50%; background: var(--pink); font: 600 .85rem var(--head); color: #fff;
}
.steps h3 { font-size: 1.25rem; }
.steps p { margin: 0; color: var(--on-dark-muted); }

/* Nosotros */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-copy > p { font-size: 1.05rem; }
.about-photo { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.strengths { counter-reset: f; border-top: 1px solid var(--line); }
.strengths li { counter-increment: f; display: grid; grid-template-columns: 52px 1fr; padding: 26px 0; border-bottom: 1px solid var(--line); }
.strengths li::before { content: "0" counter(f); font: 600 .9rem/1.9 var(--head); color: var(--pink); grid-row: 1 / 3; }
.strengths h3 { margin-bottom: .35em; }
.strengths p { margin: 0; }
.strengths-row { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; margin-top: 64px; }

.facts { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; margin-top: 60px; padding-top: 34px; position: relative; }
.facts::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.fact h3 { font-size: 1rem; margin-bottom: 18px; }
.fact h3:not(:first-child) { margin-top: 28px; }
.certs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.certs li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: .75rem; line-height: 1.3; color: var(--muted); }
.certs img { width: 72px; }
.fact-note { margin: 16px 0 0; font-size: .9rem; color: var(--muted); }
.tech { margin: 0; }
.tech div + div { margin-top: 14px; }
.tech dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.tech dd { margin: 0; color: var(--ink); font-size: .95rem; }
.fact-list { margin: 0; color: var(--ink); font-size: .95rem; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 80px; align-items: start; }
.contact-copy > p { font-size: 1.05rem; }
.contact-copy > p a { color: var(--pink); font-weight: 600; }
.contact-list { margin-top: 32px; border-top: 1px solid var(--line); }
.contact-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.contact-list .ic { color: var(--pink); }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--pink); text-decoration: underline; }
.contact-list a + span { margin-left: auto; color: var(--muted); font-size: .9rem; }

.form-wrap { border: 1px solid var(--line); border-radius: 12px; padding: 40px; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; align-content: start; }
.field label { font-size: .88rem; font-weight: 500; color: var(--ink); }
.req { color: var(--pink); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 48px; font: inherit; color: var(--ink); background: #fff;
    border: 1px solid #c9ccd8; border-radius: 8px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16, 19, 43, .1); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(176, 16, 63, .12); }
.field-error { margin: 0; font-size: .85rem; color: var(--error); }
.field-check label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--text); line-height: 1.5; }
.field-check input { width: 20px; height: 20px; min-height: 0; margin-top: 1px; flex: none; accent-color: var(--pink); padding: 0; }
.field-check a { color: var(--pink); }
.btn-submit { justify-self: start; min-width: 190px; }
.form-note { margin: 0; font-size: .82rem; color: var(--muted); }
.form-alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 8px; background: #fdecf1; color: var(--error); border: 1px solid #f3c3d2; font-size: .95rem; }
.form-alert .ic { margin-top: 1px; }
.form-done { padding: 8px 0; }
.form-done:focus { outline: none; }
.form-done .ic { color: var(--ok); margin-bottom: 14px; }
.form-done h3 { font-size: 1.5rem; }
.form-done p { margin-bottom: 24px; }
.hp { position: absolute; left: -9999px; }

/* Páginas internas */
.page h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose a { color: var(--pink); }

/* Pie */
.site-footer { background: var(--navy); color: var(--on-dark-muted); padding: 56px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 64px; padding-bottom: 56px; }
.footer-brand img { width: 200px; margin-bottom: 22px; }
.footer-brand p { max-width: 38ch; }
.footer-title { color: #fff; font-size: .95rem; margin-bottom: 18px; }
.footer-list li { margin-bottom: 14px; }
.footer-list strong { color: #fff; font-weight: 500; }
.footer-list a { color: #fff; text-decoration: none; }
.footer-list a:hover, .footer-bottom a:hover { color: var(--pink-light); text-decoration: underline; }
.footer-list span { margin-left: 6px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; color: #fff; transition: border-color .2s; }
.footer-social a:hover { border-color: #fff; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 28px; font-size: .85rem; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line-dark); }
.footer-bottom a { text-decoration: none; }

/* Clientes: franja continua de logos sobre el azul de la portada */
.clients { padding: 8px 0 48px; overflow: hidden; }
.clients-title { margin: 0 0 22px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.clients-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.clients:hover .clients-track { animation-play-state: paused; }
.clients-list { display: flex; align-items: center; gap: 72px; padding-right: 72px; }
.clients-list img { width: var(--w); height: auto; opacity: .8; transition: opacity .3s; }
.clients-list li:hover img { opacity: 1; }
/* Carrusel de alianzas y certificaciones: va en sentido contrario al de clientes */
.clients-certs { padding: 24px 0; }
.band .stats { margin-top: 24px; }
/* Textura de líneas en las secciones oscuras: retícula morada muy suave que se desvanece */
.section-dark, .band, .site-footer { position: relative; isolation: isolate; }
.section-dark::before, .band::before, .site-footer::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(150, 130, 255, .28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(150, 130, 255, .28) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent);
}
/* Cada sección con su propio recorte, para que no se vea repetida */
.section-dark#metodologia::before { -webkit-mask-image: linear-gradient(120deg, transparent 20%, #000 75%); mask-image: linear-gradient(120deg, transparent 20%, #000 75%); }
.section-dark#eventos::before { -webkit-mask-image: linear-gradient(200deg, #000, transparent 55%); mask-image: linear-gradient(200deg, #000, transparent 55%); }
.band::before { background-size: 48px 48px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
.site-footer::before { -webkit-mask-image: linear-gradient(0deg, transparent 10%, #000 100%); mask-image: linear-gradient(0deg, transparent 10%, #000 100%); }

/* Casos: encabezado a dos columnas y muro de clientes */
.cases-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end; margin-bottom: 48px; }
.cases-head h2 { margin-bottom: 0; }
.cases-head > p { margin: 0; font-size: 1.1rem; max-width: 44ch; }
.client-wall { display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 40px; margin-bottom: 72px; padding: 28px 32px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.client-wall-title { margin: 0; display: grid; gap: 6px; padding-right: 32px; border-right: 1px solid var(--line); }
.client-wall-title strong { font: 600 1.05rem var(--head); color: var(--ink); }
.client-wall-title span { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.client-wall-marquee { min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.client-wall-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.client-wall-marquee:hover .client-wall-track { animation-play-state: paused; }
.client-wall-grid { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.client-wall-grid li { display: grid; place-items: center; min-height: 64px; flex: none; }
.client-wall-grid img { width: min(var(--w), 150px); max-width: none; height: auto; filter: grayscale(1); opacity: .8; transition: opacity .3s, transform .3s; }
.client-wall-grid li:hover img { opacity: 1; transform: translateY(-3px); }
.clients-certs .clients-track { animation-direction: reverse; animation-duration: 70s; }
.clients-certs .clients-list { gap: 64px; padding-right: 64px; }
.clients-certs .clients-list img { width: auto; opacity: 1; transition: transform .3s; }
.clients-certs .clients-list li:hover img { transform: translateY(-4px); }
@keyframes marquee { to { transform: translateX(-50%); } }
.clients { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }

/* En el terreno: mosaico de fotos reales de eventos */
.events { display: grid; grid-template-columns: 1fr 1fr .8fr .8fr; grid-template-rows: 310px 310px; gap: 14px; }
.event { position: relative; margin: 0; overflow: hidden; border-radius: 12px; background: var(--navy-2); }
.event-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.event img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease, ease); }
.event:hover img { transform: scale(1.04); }
.event-3 img, .event-5 img { object-position: center 30%; }
.event figcaption {
    position: absolute; left: 14px; bottom: 14px; right: 14px; display: inline-flex; flex-direction: column; gap: 2px;
    width: fit-content; max-width: calc(100% - 28px); padding: 10px 14px; border-radius: 8px;
    background: rgba(16, 19, 43, .86); color: var(--on-dark); font-size: .8rem; line-height: 1.35;
}
.event figcaption strong { color: #fff; font: 600 .92rem var(--head); }
.event:not(.event-1) figcaption { left: 10px; bottom: 10px; padding: 7px 11px; }
.event:not(.event-1) figcaption strong { font-size: .8rem; }
.event:not(.event-1) figcaption span { display: none; }

/* Galería dentro de una noticia */
.prose .gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 32px 0; }
.prose .gallery-item { grid-column: span 2; margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; }
.prose .gallery-item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.prose .gallery-item:nth-child(2), .prose .gallery-item:nth-child(3) { grid-column: span 3; aspect-ratio: 4 / 3; }
.prose .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.prose .gallery br { display: none; }

/* WhatsApp: botón flotante y panel de asesores */
.wa { position: fixed; right: 24px; bottom: 24px; z-index: 60; }
.wa-float {
    position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
    background: #25d366; color: #fff; text-decoration: none;
    box-shadow: 0 10px 24px -8px rgba(16, 19, 43, .45);
    transition: transform .25s, background-color .25s;
}
.wa-float:hover { background: #1ebe5b; transform: scale(1.06); }
.wa-float:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.wa-float > span:not(.sr-only):not(.wa-float-label) { grid-area: 1 / 1; display: grid; transition: transform .3s, opacity .2s; }
.wa-ico-close { opacity: 0; transform: rotate(-90deg); }
.wa.is-open .wa-ico-open { opacity: 0; transform: rotate(90deg); }
.wa.is-open .wa-ico-close { opacity: 1; transform: none; }
.wa.is-open .wa-float { background: var(--navy); }
.wa-float-label {
    position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%);
    white-space: nowrap; padding: 9px 14px; border-radius: 8px;
    background: var(--navy); color: #fff; font: 500 .88rem var(--body);
    opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.wa:not(.is-open) .wa-float:hover .wa-float-label { opacity: 1; transform: translate(0, -50%); }

.wa-panel {
    position: absolute; right: 0; bottom: calc(100% + 14px); width: 320px;
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 24px 48px -16px rgba(16, 19, 43, .35), 0 0 0 1px rgba(16, 19, 43, .06);
    transform-origin: bottom right; animation: wa-pop .25s cubic-bezier(.2, .7, .2, 1);
}
@keyframes wa-pop { from { transform: translateY(8px) scale(.96); } }
.wa-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 16px 14px 16px 18px; background: #075e54; color: #fff; }
.wa-head-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #25d366; }
.wa-title { margin: 0; font: 600 1rem/1.2 var(--head); }
.wa-sub { margin: 2px 0 0; font-size: .78rem; line-height: 1.35; opacity: .85; }
.wa-close { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; }
.wa-close:hover { background: rgba(255, 255, 255, .14); }
.wa-list { padding: 8px; }
.wa-person { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--ink); transition: background-color .2s; }
.wa-person:hover, .wa-person:focus-visible { background: #eefaf2; }
.wa-person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #25d366; }
.wa-person-text { display: grid; line-height: 1.3; }
.wa-person-text strong { font: 600 .98rem var(--head); }
.wa-person-text span { font-size: .8rem; color: var(--muted); }
.wa-person-go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #25d366; color: #fff; transition: transform .2s; }
.wa-person:hover .wa-person-go { transform: scale(1.08); }

/* Noticias */
.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.news-head .section-head { margin-bottom: 0; }
.news-head .btn { flex: none; }
.news-grid { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: auto auto; gap: 24px; }
.news-grid .is-featured { grid-row: span 2; }
.news-grid-list { grid-template-columns: repeat(3, 1fr); }
.news-grid-list .is-featured { grid-row: auto; }
.news-grid-list .news-media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
.news-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); transition: border-color .3s; }
.news-card:hover { border-color: var(--ink); }
.news-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.news-media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-alt); }
.is-featured .news-media { aspect-ratio: auto; flex: 1; min-height: 300px; }
.is-featured .news-body { flex: none; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease, ease); }
.news-card:hover .news-media img { transform: scale(1.04); }
.news-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; flex: 1; }
.news-date { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); font-weight: 600; }
.news-title { font: 600 1.15rem/1.3 var(--head); color: var(--ink); }
.is-featured .news-title { font-size: 1.6rem; }
.news-excerpt { color: var(--text); }
.news-more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: .92rem; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; }
.news-more::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .2s; }
.news-card:hover .news-more { color: var(--pink); }
.news-card:hover .news-more::after { transform: translateX(4px) rotate(45deg); }

/* Página de noticia */
.article-head { background: var(--navy); color: var(--on-dark); padding: 72px 0 120px; }
.article-head h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-top: 14px; }
.article-lead { font-size: 1.15rem; margin: 0; }
.back-link { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; font-size: .9rem; margin-bottom: 28px; }
.back-link::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); transition: transform .2s; }
.back-link:hover { color: #fff; }
.back-link:hover::before { transform: translateX(-3px) rotate(45deg); }
.article-head .news-date { display: block; color: var(--pink-light); }
.article-photo { margin: -80px auto 0; max-width: calc(var(--wrap) - 2 * 24px); padding: 0; }
.article-photo img { width: 100%; border-radius: 12px; max-height: 640px; object-fit: cover; }
.article-photo.is-tall { max-width: 560px; }
.article-photo.is-tall img { max-height: none; object-fit: contain; box-shadow: 0 1px 0 var(--line); }
.article-body { padding-top: 56px; font-size: 1.08rem; }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; margin-bottom: 96px; padding-top: 32px; border-top: 1px solid var(--line); }
.article-cta p { margin: 0; font: 600 1.15rem var(--head); color: var(--ink); }
.page-news .section-head h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.nav-links { display: flex; gap: 16px; margin-top: 40px; }
.nav-links a, .nav-links span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }

@media (max-width: 900px) {
    .news-head { flex-direction: column; align-items: flex-start; }
    .news-grid, .news-grid-list { grid-template-columns: 1fr; }
    .events { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 280px 280px; }
    .event-1 { grid-column: 1 / -1; grid-row: 1; }
    .event figcaption { left: 10px; right: 10px; bottom: 10px; padding: 8px 10px; }
    .prose .gallery { gap: 6px; }
    .news-grid .is-featured { grid-row: auto; }
    .is-featured .news-media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
    .clients-list { gap: 48px; padding-right: 48px; }
    .clients-list img { width: calc(var(--w) * .8); }
    .article-photo { margin-top: -60px; padding: 0 var(--gutter); }
    .article-cta { flex-direction: column; align-items: flex-start; }
}

/* ===== Movimiento =====
   Todo depende de .js (lo pone el <head>) para que sin JavaScript el contenido se vea completo. */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }

/* Portada: entra en cascada al cargar */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes rise-side { from { opacity: 0; transform: translateX(40px); } }
.js .hero-copy > * { animation: rise .9s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .12s; }
.js .hero-copy > :nth-child(3) { animation-delay: .24s; }
.js .hero-copy > :nth-child(4) { animation-delay: .36s; }
.js .trail { animation: rise-side 1s .3s var(--ease) both; }
.js .trail-steps li { animation: rise .6s var(--ease) both; animation-delay: calc(.55s + var(--i) * .09s); }
.hl { background: linear-gradient(var(--pink), var(--pink)) left 94% / 0 .1em no-repeat; }
.js .hl { animation: hl-in .9s .9s var(--ease) forwards; }
html:not(.js) .hl { background-size: 100% .1em; }
@keyframes hl-in { to { background-size: 100% .1em; } }

/* Aparición al llegar a cada bloque */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }
.js .trust-logos > * { transform: translateY(12px) scale(.94); }
/* Al subir, los bloques entran desde arriba */
.js [data-reveal][data-from="top"]:not(.is-in) { transform: translateY(-32px); }
.js [data-stagger][data-from="top"]:not(.is-in) > * { transform: translateY(-24px); }

/* Metodología: la línea se dibuja y cada paso se enciende en orden */
.js .steps::before { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .2s; }
.js .steps.is-in::before { transform: scaleX(1); }
.js .steps li::before { transform: scale(.4); background: var(--navy-3); transition: transform .5s var(--ease), background-color .5s; transition-delay: calc(.3s + var(--d, 0) * .3s); }
.js .steps.is-in li::before { transform: none; background: var(--pink); }

/* Casos: la barra del resultado crece */
.case-result { position: relative; border-left-color: transparent; }
.case-result::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--pink); transform-origin: top; }
.js .case .case-result::before { transform: scaleY(0); transition: transform 1s var(--ease) .35s; }
.js .case.is-in .case-result::before { transform: scaleY(1); }

/* Hover con intención: indica qué se puede mirar o pulsar */
.cap { transition: background-color .25s; }
.cap img { transition: transform .35s var(--ease); }
.cap:hover { background: var(--bg-alt); }
.cap:hover img { transform: translateY(-5px); }
.case { transition: background-color .3s; }
.case-who, .case-body { transition: transform .4s var(--ease); }
@media (hover: hover) {
    .case:hover .case-body { transform: translateX(6px); }
}
.trust-logos img { transition: transform .3s var(--ease); }
.trust-logos li:hover img { transform: translateY(-4px); }
.certs img { transition: transform .3s var(--ease); }
.certs li:hover img { transform: translateY(-4px) rotate(-3deg); }
.strengths li { transition: padding-left .35s var(--ease); }
.strengths li:hover { padding-left: 8px; }
.contact-list li { transition: padding-left .3s var(--ease); }
.contact-list li:hover { padding-left: 6px; }
.btn { transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.btn:active { transform: scale(.97); }

/* Cambio de pestaña */
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
.js .tab-panel:not([hidden]) { animation: panel-in .5s var(--ease); }
.tab-items li { transition: padding-left .3s var(--ease), color .2s; }
.tab-items li:hover { padding-left: 8px; color: var(--pink); }

/* Cabecera más compacta al bajar */
.header-inner { transition: height .3s var(--ease); }
.brand img { transition: height .3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
@media (min-width: 901px) {
    .site-header.is-scrolled .header-inner { height: 50px; }
    .site-header.is-scrolled .brand img { height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    .trail-steps::after { display: none; }
    .js .hero-copy > *, .js .trail, .js .trail-steps li, .js .hl, .clients-track, .client-wall-track, .js .tab-panel:not([hidden]) { animation: none !important; }
    .hl { background-size: 100% .1em; }
}

/* Tablet */
@media (max-width: 1080px) {
    .caps { grid-template-columns: repeat(4, 1fr); }
    .case { grid-template-columns: 1fr 200px; gap: 20px 40px; }
    .case-who { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 14px; }
    .facts { grid-template-columns: 1fr 1fr; }
    .facts .fact:first-child { grid-column: 1 / -1; }
    .certs img { width: 84px; }
    .tabs { grid-template-columns: 1fr; gap: 24px; }
    .tab-list { grid-auto-flow: column; grid-auto-columns: 1fr; border-top: 0; border-bottom: 1px solid var(--line); }
    .tab { flex-direction: column; gap: 6px; padding: 16px 12px 18px 0; border-bottom: 0; }
    .tab::before { top: auto; bottom: -1px; left: 0; right: 12px; width: auto; height: 3px; transform: scaleX(0); }
    .tab[aria-selected="true"]::before { transform: scaleX(1); }
    .tab-title { font-size: 1.05rem; }
    .trust-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .trust-logos { flex-wrap: wrap; justify-content: flex-start; gap: 20px 32px; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
    .steps::before { display: none; }
}

@media (max-width: 900px) {
    /* Celular y tablet: logo + Hablemos + menú, igual que en el portátil; el menú se abre a pantalla completa */
    .nav-toggle { display: grid; }
    .header-actions .btn-sm { min-height: 40px; padding: 9px 14px; font-size: .84rem; }
    .nav {
        position: fixed; inset: var(--header-h) 0 0 0; margin: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: space-between;
        background: #fff; padding: 20px var(--gutter) calc(28px + env(safe-area-inset-bottom)); overflow-y: auto;
        visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility 0s .25s;
    }
    .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; transition-delay: calc(var(--n) * 45ms); }
    .nav.is-open .nav-list li { opacity: 1; transform: none; }
    .nav-list a { display: flex; align-items: baseline; gap: 14px; padding: 18px 0; font: 600 1.45rem/1.2 var(--head); color: var(--ink) !important; }
    .nav-list a::after { display: none; }
    .nav-list a:active { color: var(--pink) !important; }
    .nav-num { display: inline-block; min-width: 24px; font: 600 .8rem var(--head); color: var(--pink); font-variant-numeric: tabular-nums; }
    .nav-contact { display: grid; gap: 10px; margin-top: 28px; padding: 20px; background: var(--bg-alt); border-radius: 14px; }
    .nav-contact p { margin: 0 0 4px; font-weight: 600; color: var(--ink); font-size: .92rem; }
    .nav-contact a { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: .92rem; }
    .nav-contact .ic { color: var(--pink); }
    body.menu-open { overflow: hidden; }
    body.menu-open .wa { display: none; }
    .nav-toggle[aria-expanded="true"] .when-open { display: inline; }
    .nav-toggle[aria-expanded="true"] .when-closed { display: none; }

    .hero { padding: 48px 0 72px; }
    .hero-grid, .about, .contact { grid-template-columns: 1fr; gap: 48px; }
    .globe-panel { max-height: none; }
    .trail-float { position: relative; left: auto; bottom: auto; width: auto; max-width: 460px; margin: 16px 0 0; }
    .globe-panel { aspect-ratio: 4 / 5; }
    .hero-copy { padding-right: 0; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3) { padding-left: 0; border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
    .caps { grid-template-columns: repeat(3, 1fr); }
    .strengths-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .section { padding: 68px 0; }
    .facts { margin-top: 64px; }
}

/* Celular */
@media (max-width: 600px) {
    :root { --gutter: 16px; --header-h: 64px; }
    .brand img { height: 30px; }
    .stat, .stat + .stat { padding: 24px 12px 28px 0; }
    .stat:nth-child(even) { padding-left: 16px; }
    .stat dt { font-size: 1.9rem; }
    .trail { padding: 22px 20px 18px; }
    .trust-logos img { height: 52px; }
    .trust-logos li:nth-child(2) img { height: 38px; }
    .tab-panel { padding: 28px 22px; }
    .tab-items { grid-template-columns: 1fr; }
    .tab-foot { flex-direction: column; align-items: flex-start; }
    .tab-title { font-size: .95rem; }
    .tab-list { grid-auto-flow: row; grid-template-columns: 1fr 1fr; border-bottom: 0; }
    .tab { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
    .caps-block { margin-top: 56px; }
    .cap { padding: 18px 12px; gap: 12px; font-size: .82rem; line-height: 1.35; }
    .cap img { height: 32px; }
    .case { grid-template-columns: 1fr; padding: 32px 0; }
    .case-who { flex-direction: column; gap: 4px; order: -2; }
    .case-result { order: -1; }
    .steps { grid-template-columns: 1fr; row-gap: 0; }
    /* Línea de tiempo: número a la izquierda, texto a la derecha */
    .steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; padding: 0 0 28px; }
    .steps li::before { grid-row: 1 / 3; margin-bottom: 0; }
    .steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line-dark); }
    .steps h3 { margin: 8px 0 6px; }
    .actions { flex-direction: column; }
    .actions .btn { width: 100%; }
    .facts { grid-template-columns: 1fr; gap: 40px; }
    .certs { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
    .form-wrap { padding: 24px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .btn-submit { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; }
    .contact-list li { flex-wrap: wrap; }
    .clients-certs .clients-list { gap: 40px; padding-right: 40px; }
    .clients-certs .clients-list img { zoom: .78; }
    .cases-head { grid-template-columns: 1fr; gap: 16px; }
    .client-wall { grid-template-columns: 1fr; gap: 20px; padding: 22px 20px; }
    .client-wall-title { padding: 0 0 16px; border-right: 0; border-bottom: 1px solid var(--line); }
    .client-wall-grid { gap: 40px; padding-right: 40px; }
    .client-wall-grid img { width: min(calc(var(--w) * .8), 120px); }
    .wa { right: 16px; bottom: 16px; }
    .wa-float { width: 56px; height: 56px; }
    .wa-float-label { display: none; }
    .wa-panel { width: min(320px, calc(100vw - 32px)); }
}
