/* ==========================================================================
   Villafuerte – Home rediseñado (v2)
   Independiente del template anterior (css2/style.css, css/custom.css).
   ========================================================================== */

:root {
    --navy: #0b3a82;
    --ink: #12306b;
    --muted: #4d5f80;
    --orange: #f26522;
    --green: #2a9d3f;
    --green-text: #1f7f31;
    --green-btn: #218739;
    --green-btn-hover: #1a6f2e;
    --line: #e2e8f1;
    --soft: #f3f5f9;
    --banda: #eef2f8;
    --footer: #0b2559;
    --radius: 16px;
    --shadow: 0 6px 24px rgba(11, 58, 130, 0.07);
    --font: "Montserrat", "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}

.wrap {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 24px;
}

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

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--navy);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

.ico { width: 22px; height: 22px; flex: none; }

/* ---------- Cabecera (franja translúcida con letras blancas) ---------- */

.top {
    background: #fff url("../images/home/hero.webp") center top / cover no-repeat;
}

.site-header {
    position: relative;
    z-index: 20;
    padding-block: 26px;
    background: rgba(46, 60, 88, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.header-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 56px; width: auto; }

.nav ul { display: flex; align-items: center; gap: 30px; }

.nav a,
.sub-toggle {
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 6px 0;
    cursor: pointer;
}

.nav a:hover,
.sub-toggle:hover { color: #ffc9a3; }

.con-sub { position: relative; }

.sub-toggle::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
}

.nav .sub {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 270px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(11, 58, 130, 0.16);
}

.nav .sub a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--navy);
}
.nav .sub a:hover { background: var(--soft); color: var(--orange); }

.con-sub.abierto > .sub { display: flex; }

@media (hover: hover) and (min-width: 961px) {
    .con-sub:hover > .sub { display: flex; }
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav-toggle-barras,
.nav-toggle-barras::before,
.nav-toggle-barras::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
}
.nav-toggle-barras { position: relative; }
.nav-toggle-barras::before,
.nav-toggle-barras::after { content: ""; position: absolute; left: 0; }
.nav-toggle-barras::before { top: -6px; }
.nav-toggle-barras::after { top: 6px; }

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

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-areas:
        "texto form"
        "stats form";
    grid-template-rows: auto 1fr;
    column-gap: 48px;
    align-items: start;
    padding-top: 24px;
    padding-bottom: 40px;
}

.hero-texto { grid-area: texto; padding-top: 44px; }

.hero-kicker {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--orange);
}

.hero h1 {
    max-width: 12em;
    margin-top: 10px;
    font-size: clamp(2.3rem, 3.9vw, 3.1rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--navy);
}

.hero-sub {
    max-width: 30em;
    margin-top: 22px;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--navy);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.95), 0 0 4px rgba(255, 255, 255, 0.85);
}

.checks { margin-top: 36px; display: grid; gap: 14px; }
.checks li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
}
.checks .ico { color: var(--green); width: 24px; height: 24px; }
.checks .estrella { color: var(--orange); }
.link-casos a {
    font-weight: 700;
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.link-casos a:hover { color: #c94c10; }

.form-card {
    grid-area: form;
    align-self: start;
    padding: 26px 26px 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 18px 46px rgba(11, 58, 130, 0.18);
}

.form-card h2 {
    font-size: 1.4rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--navy);
}

.campo { margin-top: 14px; }

.campo label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
}
.campo label span { color: #d32f2f; }

.campo input,
.campo textarea {
    width: 100%;
    padding: 11px 12px;
    font: inherit;
    font-size: 0.92rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d6deeb;
    border-radius: 8px;
}
.campo textarea { resize: vertical; min-height: 96px; }
.campo input:focus,
.campo textarea:focus { border-color: var(--navy); outline: 3px solid rgba(11, 58, 130, 0.2); outline-offset: 0; }

.btn {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 13px 14px;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s;
}
.btn-verde { background: var(--green-btn); }
.btn-verde:hover { background: var(--green-btn-hover); }

.aviso {
    margin-top: 14px;
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
}
/* Campo trampa anti-robots: no debe verse ni ser alcanzable por teclado */
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.aviso-ok { background: #e6f5ea; color: #14532d; }
.aviso-error { background: #fdeaea; color: #8a1c1c; }

/* Indicadores: sin caja, alineados a la izquierda (3 x 2) */
.stats {
    grid-area: stats;
    width: 100%;
    max-width: 560px;
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 16px 38px;
    margin-top: 58px;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.95), 0 0 4px rgba(255, 255, 255, 0.9);
}

.stat { display: flex; flex-direction: column; align-items: flex-start; }
.stat dt {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--navy);
}
.stat dd {
    margin-top: 3px;
    white-space: nowrap;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
}

/* ---------- Secciones ---------- */

.seccion { padding-block: 60px 12px; }
.seccion.centrado { text-align: center; }
#casos { scroll-margin-top: 100px; }

.titulo {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--navy);
}
.titulo span { color: var(--orange); }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.tarjeta {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.tarjeta h3 {
    font-size: 1.3rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--navy);
}

/* Títulos centrados, divisor y botones de acción */
.titulo-centro { text-align: center; }
.titulo-medio { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }

.divisor {
    display: block;
    width: 46px;
    height: 3px;
    margin: 18px auto 0;
    background: var(--orange);
    border-radius: 2px;
}

.cta-wrap { margin-top: 40px; text-align: center; }
.cta {
    display: inline-block;
    min-width: min(100%, 380px);
    padding: 14px 28px;
    font-size: 1.02rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    text-decoration: none;
    background: var(--green-btn);
    border-radius: 10px;
    transition: background-color 0.15s, transform 0.15s;
}
.cta:hover { background: var(--green-btn-hover); transform: translateY(-1px); }

/* Casos de éxito */

.caso { display: flex; flex-direction: column; }
.caso-logo { display: flex; align-items: center; height: 42px; margin-top: 14px; line-height: 0; }
.caso-logo img { display: block; flex: none; width: auto; max-width: 100%; object-fit: contain; }
.caso-persona { margin-top: 16px; font-size: 0.86rem; line-height: 1.35; font-weight: 500; color: var(--navy); }
.caso-persona strong { font-weight: 800; }
.caso-datos { margin-top: 14px; display: grid; gap: 3px; font-size: 0.86rem; line-height: 1.35; color: var(--navy); }
.caso-datos strong { font-weight: 800; }
.caso-datos li { font-weight: 500; }

/* En escritorio, las 3 tarjetas alinean cada bloque entre sí (título, datos, persona, logo y botón) */
@supports (grid-template-rows: subgrid) {
    @media (min-width: 961px) {
        .casos { row-gap: 0; }
        .caso { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
        .caso > * { align-self: start; }
        .caso > .conocer { align-self: end; }
    }
}

.conocer {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 22px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--green-text);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.conocer:hover { color: var(--green-btn-hover); }

/* Metodología */

.metodo-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.metodo-intro .destacado {
    margin-bottom: 18px;
    font-size: clamp(1.45rem, 3.2vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--navy);
}
.metodo-intro .titulo { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

.etiqueta {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--navy);
    border-radius: 4px;
}

/* Etapas en hexágonos */
.etapas {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 8px;
    margin-top: 44px;
}

.etapa {
    position: relative;
    isolation: isolate;
    min-height: 440px;
    padding: 82px 46px 92px;
    background: var(--navy);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.etapa::before {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    background: #edf2fa;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.etapa-num {
    display: block;
    text-align: center;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--navy);
}

.etapa h3 {
    margin-top: 6px;
    padding-bottom: 12px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--navy);
    border-bottom: 1px solid #ccd6e6;
}

.etapa ul { margin-top: 14px; display: grid; gap: 9px; }
.etapa li { font-size: 0.86rem; font-weight: 500; line-height: 1.4; color: var(--ink); }
.etapa li strong { font-weight: 800; }

.etapa-flecha {
    display: flex;
    align-items: center;
    color: var(--orange);
}
.etapa-flecha svg { width: 44px; height: 16px; }

/* Servicios (franja de fondo claro) */

.banda {
    margin-top: 56px;
    padding: 20px 0 64px;
    background: var(--banda);
}
.banda-corta { margin-top: 24px; padding-bottom: 56px; }
.banda-final { margin-top: 40px; padding-bottom: 56px; }

.servicio { display: flex; flex-direction: column; gap: 14px; }
.servicios { align-items: start; }

/* Cada tarjeta crece por su cuenta: al abrir una, las otras no se estiran */
.servicio p { font-weight: 500; color: var(--muted); font-size: 0.95rem; }
.servicio p.fuerte { font-weight: 700; color: var(--navy); }
.servicio .mas-texto p { font-weight: 500; color: var(--muted); font-size: 0.95rem; }

/* Acordeón nativo (<details>): funciona sin JavaScript */
.mas summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--green-text);
    cursor: pointer;
    list-style: none;
}
.mas summary::-webkit-details-marker { display: none; }
.mas summary:hover { color: var(--green-btn-hover); }
.mas summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2.5px solid currentColor;
    border-bottom: 2.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s;
}
.mas[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.mas .ver-menos { display: none; }
.mas[open] .ver-mas { display: none; }
.mas[open] .ver-menos { display: inline; }

.mas-texto {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    animation: mas-entra 0.25s ease-out;
}
.enlace-pagina {
    justify-self: start;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--navy);
}
.enlace-pagina:hover { color: var(--orange); }

@keyframes mas-entra {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/* Por qué confiar */

.razon { display: flex; gap: 16px; align-items: flex-start; }
.ico-razon { width: 42px; height: 42px; flex: none; color: var(--green); }
.razon h3 { font-size: 1.02rem; line-height: 1.25; }
.razon p { margin-top: 8px; font-size: 0.88rem; font-weight: 500; color: var(--muted); }

/* A quién va dirigido */

.dirigido-sub {
    max-width: 38em;
    margin: 16px auto 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
}
.dirigido-sub strong { color: var(--green); font-weight: 800; }

.pildoras {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}
.pildoras li {
    display: flex;
    flex: 1 1 120px;
    max-width: 158px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 10px 16px;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--navy);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.pildoras svg { width: 30px; height: 30px; color: var(--navy); }

/* Problemas */

.problema {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
    gap: 32px;
    align-items: center;
    margin-top: 36px;
}


.escalera { display: grid; gap: 22px; }
.escalera li {
    position: relative;
    padding-left: 30px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--navy);
}
.escalera li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.42em;
    width: 10px;
    height: 10px;
    background: var(--orange);
    border-radius: 50%;
}

/* Entrada con movimiento (solo si hay JS y el visitante no pidió menos movimiento) */
.js .escalera li {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    transition-delay: calc(var(--i) * 120ms);
}
.js .escalera.visible li { opacity: 1; transform: none; }

.problema-img { justify-self: end; display: block; width: 100%; }

.cierre-problema {
    max-width: 52em;
    margin: 18px auto 0;
    text-align: center;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--navy);
}
.cierre-problema .verde { color: var(--green); }

/* Clientes */

.clientes-titulo {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 20px;
    color: var(--navy);
}
.clientes-titulo .verde { font-size: clamp(3rem, 7vw, 5rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--green); }
.clientes-texto {
    flex: 1 1 22em;
    font-size: clamp(1.1rem, 1.9vw, 1.45rem);
    font-weight: 500;
    line-height: 1.35;
}
.clientes-texto b { font-weight: 800; }
.clientes-texto strong { color: var(--orange); font-weight: 800; }

.logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}
.logos li {
    display: grid;
    place-items: center;
    flex: 0 0 calc((100% - 5 * 12px) / 6);
    height: 80px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.logos img {
    display: block;
    max-width: 100%;
    max-height: 46px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.75;
    transition: filter 0.2s, opacity 0.2s;
}
.logos li:hover img { filter: none; opacity: 1; }
.logos img[src$=".svg"] { height: 46px; width: auto; }
.logo-vacio { font-weight: 700; color: #a3aec3; }

/* ---------- Footer ---------- */

.site-footer {
    margin-top: 0;
    padding: 60px 0 28px;
    color: #fff;
    background: var(--footer) url("../images/home/footer-bg.webp") center / cover no-repeat;
}

.site-footer h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.01em; }

.contacto-directo { display: flex; flex-wrap: wrap; gap: 20px 72px; margin-top: 28px; }
.contacto-directo li { display: flex; flex-direction: column; gap: 2px; }
.tel-grande { font-size: 1.2rem; font-weight: 700; color: #fff; text-decoration: none; }
.tel-grande:hover { text-decoration: underline; }
.contacto-directo span { font-size: 0.8rem; color: #b9c6e2; }

.oficinas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 40px;
}
.oficinas address {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-style: normal;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #dbe4f5;
}
.oficinas strong { font-size: 1rem; color: #fff; }
.oficinas a { color: #fff; font-weight: 600; text-decoration: none; }
.oficinas a:hover { text-decoration: underline; }

.legal {
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.8rem;
    color: #b9c6e2;
}
.legal a { color: inherit; }

/* ---------- WhatsApp ---------- */

.whatsapp {
    position: fixed;
    right: 10px;
    bottom: 120px; /* arriba del botón del chat de Cliengo */
    z-index: 999;
    width: 50px;
    height: 50px;
}
.whatsapp img { display: block; width: 100%; height: 100%; }

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

@media (max-width: 1100px) {
    .oficinas { gap: 20px; }
    .logos li { flex-basis: calc((100% - 3 * 12px) / 4); }
    .etapa { padding-inline: 38px; }
}

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

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 12px 24px 20px;
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 18px 30px rgba(11, 58, 130, 0.14);
    }
    .nav.abierto { display: block; }
    .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .nav a,
    .sub-toggle { color: var(--navy); }
    .nav a:hover,
    .sub-toggle:hover { color: var(--orange); }
    .nav > ul > li > a,
    .nav .sub-toggle { display: block; width: 100%; padding: 14px 0; text-align: left; border-bottom: 1px solid var(--line); }
    .nav .sub { position: static; min-width: 0; padding: 4px 0 4px 14px; border: 0; border-radius: 0; box-shadow: none; }

    .top {
        background-image: linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)), url("../images/home/hero.webp");
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "texto" "form" "stats";
        grid-template-rows: auto;
    }
    .hero-texto { padding-top: 24px; }
    .form-card { margin-top: 32px; max-width: 520px; }
    .stats { margin-top: 28px; max-width: 520px; }

    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metodo-intro { grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }

    .etapas { grid-template-columns: minmax(0, 1fr); gap: 4px; justify-items: center; }
    .etapa { width: 100%; max-width: 440px; min-height: 0; }
    .etapa-flecha { justify-content: center; padding-block: 6px; }
    .etapa-flecha svg { transform: rotate(90deg); }

    .problema { grid-template-columns: minmax(0, 1fr); }
    .problema-img { justify-self: center; max-width: 380px; }

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

@media (max-width: 640px) {
    .wrap { padding-inline: 18px; }
    .seccion { padding-block: 44px 8px; }
    .banda { margin-top: 44px; padding-bottom: 48px; }
    .grid-3 { grid-template-columns: minmax(0, 1fr); }
    .stats { grid-template-columns: repeat(2, auto); gap: 14px 32px; }
    .logos li { flex-basis: calc((100% - 12px) / 2); height: 72px; }
    .etapa { padding: 74px 34px 82px; }
    .escalera li:nth-child(n) { margin-left: 0; }
    .escalera li:nth-child(2) { margin-left: 10px; }
    .escalera li:nth-child(3) { margin-left: 20px; }
    .escalera li:nth-child(4) { margin-left: 30px; }
    .escalera li:nth-child(5) { margin-left: 40px; }
    .pildoras li { flex: 0 0 calc(50% - 6px); max-width: none; }
    .brand img { height: 46px; }
}

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