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

:root {
    --navy: #021e3e;
    --navy-soft: #06294f;
    --cyan: #00cafc;
    --cyan-ink: #0a7595;
    --white: #ffffff;
    --off: #f7f7f5;
    --border: rgba(0, 0, 0, 0.08);
    --text: #111111;
    --muted: #6b6b6b;
    --light: #999999;
    --radius-card: 18px;
    --radius-btn: 9px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background: var(--white);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(2, 30, 62, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    padding: 0 32px;
    height: 58px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}

.nav-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: block;
    flex-shrink: 0;
}

.nav-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: -0.01em;
}

.nav-name em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.42);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    justify-self: center;
}

.nav-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.66);
    text-decoration: none;
    transition: color 0.15s;
}

.nav-links a:hover {
    color: var(--white);
}

/* ── grupo derecho del nav: idioma + contacto ── */
.nav-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-btn);
}

.lang-switch button {
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.6);
    background: none;
    border: 0;
    border-radius: calc(var(--radius-btn) - 2px);
    padding: 5px 9px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.lang-switch button:hover {
    color: var(--white);
}

.lang-switch button.is-on {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
}

.nav-cta {
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: var(--radius-btn);
    transition: background 0.15s, border-color 0.15s;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.45);
}

/* ── HERO ── */
.hero {
    padding: 88px 32px 80px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cyan-ink);
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    font-size: 14px;
    font-weight: 500;
    padding: 12px 26px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s;
    display: inline-block;
}

.btn-primary:hover {
    opacity: 0.88;
}

.btn-secondary {
    font-size: 14px;
    font-weight: 400;
    padding: 12px 22px;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--off);
    color: var(--text);
}

/* ── DIVIDER ── */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

/* ── SECTION SHELL ── */
.section {
    padding: 64px 32px;
}

.section-alt {
    background: var(--off);
}

.section-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--light);
    text-align: center;
    margin-bottom: 36px;
}

/* ── BRANDS GRID ── */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    max-width: 860px;
    margin: 0 auto;
}

.brand-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 26px 24px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color 0.15s, transform 0.15s;
}

.brand-card:hover {
    border-color: rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

.brand-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.brand-icon-merci {
    background: #f2ece5;
    color: #7a5a3a;
}

.brand-icon-krama {
    background: #e4eef6;
    color: #2a5a7a;
}

.brand-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    display: block;
}

.brand-cat {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--light);
}

.brand-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 14px;
}

.brand-url {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--light);
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    display: inline-block;
}

/* ── SERVICES GRID ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 700px;
    margin: 0 auto;
}

.svc-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 22px 20px;
}

.svc-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--off);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.svc-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--muted);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.svc-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 5px;
}

.svc-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

/* ── TRABAJOS / PORTFOLIO ── */
.work-filters {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: -18px auto 30px;
    flex-wrap: wrap;
}

.work-filter {
    font: inherit;
    font-size: 12px;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 15px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.work-filter:hover {
    color: var(--text);
    border-color: rgba(0, 0, 0, 0.2);
}

.work-filter[aria-selected="true"] {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.work-filter span {
    opacity: 0.5;
    margin-left: 5px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
    max-width: 1060px;
    margin: 0 auto;
}

.work-card {
    font: inherit;
    text-align: left;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
    width: 100%;
}

/* ventana estilo macOS */
.win {
    display: block;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 1px 2px rgba(2, 30, 62, 0.05);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.work-media {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-media>.win {
    width: 100%;
}

.work-card:hover .win,
.work-card:focus-visible .win {
    border-color: rgba(2, 30, 62, 0.22);
    box-shadow: 0 14px 34px -14px rgba(2, 30, 62, 0.3);
    transform: translateY(-3px);
}

.work-card:focus-visible {
    outline: none;
}

.work-card:focus-visible .win {
    outline: 2px solid var(--cyan-ink);
    outline-offset: 3px;
}

.win-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 34px;
    padding: 0 11px;
    background: #edeef0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.win-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.win-dots i,
.win-dots button {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: block;
    border: none;
    padding: 0;
}

.win-dots :nth-child(1) {
    background: #ff5f57;
}

.win-dots :nth-child(2) {
    background: #febc2e;
}

.win-dots :nth-child(3) {
    background: #28c840;
}

.win-url {
    flex: 1;
    min-width: 0;
    height: 20px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 10.5px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.win-url svg {
    width: 9px;
    height: 9px;
    stroke: #4aa96c;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

/* viewport con scroll al pasar el ratón */
.win-view {
    display: block;
    height: 246px;
    overflow: hidden;
    background: var(--off);
    position: relative;
}

.win-view img {
    display: block;
    width: 100%;
    transform: translateY(0);
    transition: transform 5s cubic-bezier(0.33, 0, 0.15, 1);
}

.work-card:hover .win-view img,
.work-card:focus-visible .win-view img {
    transform: translateY(calc(246px - 100%));
}

/* ── MÓVIL (proyectos de tipo app) ── */
.phone {
    --ph: 300px;
    --bez: 6px;
    display: block;
    width: calc(var(--ph) * 0.478);
    height: var(--ph);
    padding: var(--bez);
    border-radius: 26px;
    background: #0a1626;
    box-shadow: 0 1px 2px rgba(2, 30, 62, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}

.work-card:hover .phone,
.work-card:focus-visible .phone {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px -14px rgba(2, 30, 62, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.work-card:focus-visible .phone {
    outline: 2px solid var(--cyan-ink);
    outline-offset: 3px;
}

.phone::after {
    /* isla dinámica */
    content: "";
    position: absolute;
    top: calc(var(--bez) + 5px);
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 9px;
    border-radius: 999px;
    background: #0a1626;
    z-index: 2;
}

.phone-screen {
    display: block;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
}

.phone-screen img {
    display: block;
    width: 100%;
    transform: translateY(0);
    transition: transform 5s cubic-bezier(0.33, 0, 0.15, 1);
}

.work-card:hover .phone-screen img,
.work-card:focus-visible .phone-screen img {
    transform: translateY(calc(var(--ph) - var(--bez) * 2 - 100%));
}

.work-media::after {
    content: "Ver proyecto";
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translate(-50%, 8px);
    font-size: 11px;
    font-weight: 500;
    color: var(--white);
    background: rgba(2, 30, 62, 0.88);
    backdrop-filter: blur(6px);
    padding: 6px 14px;
    border-radius: 999px;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.work-card:hover .work-media::after,
.work-card:focus-visible .work-media::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.work-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 13px 2px 0;
}

.work-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.work-cat {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--light);
}

.work-more {
    text-align: center;
    margin-top: 30px;
}

.work-more[hidden] {
    display: none;
}

.work-more-btn {
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 11px 26px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.work-more-btn:hover {
    border-color: rgba(0, 0, 0, 0.24);
    background: var(--off);
}

.work-empty {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 13px;
    color: var(--light);
    padding: 30px 0;
}

/* ── LIGHTBOX ── */
.lb[hidden] {
    display: none !important;
}

.lb {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
}

.lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 30, 62, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    padding: 0;
    cursor: zoom-out;
}

.lb-win {
    position: relative;
    width: min(920px, 100%);
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.5);
    transition: width 0.25s, transform 0.25s;
}

.lb-win .win-bar {
    height: 40px;
}

.lb-win .win-dots button {
    cursor: pointer;
    transition: filter 0.15s;
}

.lb-win .win-dots button:hover {
    filter: brightness(0.88);
}

.lb-win.is-max {
    width: min(1200px, 100%);
}

.lb-arrows {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.lb-arrows button {
    font: inherit;
    font-size: 13px;
    line-height: 1;
    width: 24px;
    height: 22px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.85);
    color: var(--muted);
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.lb-arrows button:hover {
    color: var(--text);
    background: var(--white);
}

.lb-view {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: min(64vh, 620px);
    background: var(--off);
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lb-view::-webkit-scrollbar,
.lb-phone-screen::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.lb-view>img {
    display: block;
    width: 100%;
}

.lb-view>img[hidden] {
    display: none;
}

.lb-view.is-app {
    overflow: hidden;
    display: flex;
    justify-content: center;
    padding: 26px 0;
    background: linear-gradient(160deg, #eef1f5, #dfe5ec);
}

.lb-phone {
    --ph: min(56vh, 560px);
    --bez: 10px;
    width: calc(var(--ph) * 0.478);
    height: var(--ph);
    padding: var(--bez);
    border-radius: 42px;
    background: #0a1626;
    box-shadow: 0 24px 50px -18px rgba(2, 30, 62, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    flex-shrink: 0;
}

.lb-phone::after {
    content: "";
    position: absolute;
    top: calc(var(--bez) + 9px);
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 15px;
    border-radius: 999px;
    background: #0a1626;
    z-index: 2;
}

.lb-phone-screen {
    height: 100%;
    border-radius: 32px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    background: var(--white);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lb-phone-screen img {
    display: block;
    width: 100%;
}

.lb-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.lb-foot h3 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.lb-foot p {
    font-size: 13px;
    color: var(--muted);
    flex: 1;
    min-width: 180px;
}

/* minimizar (botón amarillo) */
.lb-win.is-min {
    width: 320px;
    align-self: flex-end;
    transform: translateY(0);
}

.lb-win.is-min .lb-view,
.lb-win.is-min .lb-foot,
.lb-win.is-min .lb-arrows {
    display: none;
}

/* ── DIAGNÓSTICO ── */
.diag {
    --leak: #ff8f76;
}

.diag-head {
    max-width: 640px;
    margin: 0 auto 44px;
    text-align: center;
}

.diag-head h1 {
    font-size: clamp(30px, 4.6vw, 48px);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 20px;
}

.diag-head p {
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--muted);
}

/* la sección abre la página: respira como una hero */
.diag-hero {
    padding-top: 76px;
}

.diag-hero .diag-head {
    max-width: 660px;
    margin-bottom: 52px;
}

.diag-hero .hero-actions {
    margin-top: 30px;
}

.diag-sub {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--light);
    text-align: center;
    margin-bottom: 16px;
}

/* las cuatro frases con las que el visitante se reconoce */
.pains {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 760px;
    margin: 0 auto 64px;
    list-style: none;
}

.pains li {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 22px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--text);
    background: var(--off);
    border: 1px solid var(--border);
    border-radius: 12px;
}

/* panel oscuro: el recorrido, con los puntos de fuga marcados */
.journey {
    max-width: 1060px;
    margin: 0 auto 56px;
    padding: 38px 38px 34px;
    background: var(--navy);
    border-radius: 24px;
}

.journey-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

.journey-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan);
}

.journey-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.dot-leak {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--leak);
    display: inline-block;
}

.journey-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    list-style: none;
}

.journey-steps li {
    position: relative;
    padding-top: 26px;
}

/* la línea que une las etapas se va apagando: la energía se pierde por el camino */
.journey-steps li::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    right: -26px;
    height: 1px;
    background: linear-gradient(90deg, var(--cyan), rgba(0, 202, 252, 0.22));
}

.journey-steps li:nth-child(2)::before {
    background: linear-gradient(90deg, rgba(0, 202, 252, 0.7), rgba(0, 202, 252, 0.16));
}

.journey-steps li:nth-child(3)::before {
    background: linear-gradient(90deg, rgba(0, 202, 252, 0.45), rgba(0, 202, 252, 0.1));
}

.journey-steps li:last-child::before {
    right: 0;
    background: linear-gradient(90deg, rgba(0, 202, 252, 0.25), rgba(0, 202, 252, 0));
}

.journey-steps li::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--cyan);
}

.journey-steps li:nth-child(2)::after {
    background: rgba(0, 202, 252, 0.7);
}

.journey-steps li:nth-child(3)::after {
    background: rgba(0, 202, 252, 0.45);
}

.journey-steps li:last-child::after {
    background: rgba(0, 202, 252, 0.28);
}

.j-num {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.32);
    margin-bottom: 8px;
}

.journey-steps h3 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--white);
    margin-bottom: 8px;
}

.journey-steps p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
}

.j-leak {
    display: flex;
    gap: 9px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--leak) !important;
}

.j-leak::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--leak);
    flex-shrink: 0;
}

/* método y entregables */
.diag-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1060px;
    margin: 0 auto;
}

.diag-h3 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--light);
    margin-bottom: 22px;
}

.steps {
    list-style: none;
    counter-reset: paso;
}

.steps li {
    counter-increment: paso;
    position: relative;
    padding-left: 44px;
    padding-bottom: 24px;
}

.steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 30px;
    bottom: 4px;
    width: 1px;
    background: var(--border);
}

.steps li::before {
    content: counter(paso, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--cyan-ink);
}

.steps strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    padding-top: 5px;
}

.steps span {
    display: block;
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
}

.checks {
    list-style: none;
    margin-bottom: 28px;
}

.checks li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.checks li::before {
    content: "";
    width: 17px;
    height: 17px;
    margin-top: 3px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--cyan-ink);
    -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
    mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}

.diag-cta {
    display: inline-block;
    padding: 14px 28px;
    font-size: 14.5px;
    font-weight: 600;
}

.diag-note {
    font-size: 12.5px;
    color: var(--light);
    margin-top: 12px;
}

@media (max-width: 900px) {
    .journey-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 26px;
    }

    .journey-steps li:nth-child(2)::before {
        right: 0;
    }

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

@media (max-width: 680px) {
    .pains {
        grid-template-columns: 1fr;
        margin-bottom: 44px;
    }

    .journey {
        padding: 26px 20px 22px;
        border-radius: 18px;
    }

    .journey-steps {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .journey-steps li::before {
        right: 0;
    }
}

/* ── CTA DARK ── */
.cta-section {
    background: var(--navy);
    padding: 80px 32px;
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.25;
}

.cta-section p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto 32px;
}

.btn-cyan {
    font-size: 14px;
    font-weight: 600;
    padding: 13px 28px;
    background: var(--cyan);
    color: var(--navy);
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.15s;
}

.btn-cyan:hover {
    opacity: 0.88;
}

.cta-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.28);
    margin-top: 14px;
}

/* ── FOOTER ── */
footer {
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.footer-logo .nav-mark {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.footer-name {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.28);
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
    nav {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .nav-right {
        gap: 8px;
    }

    .lang-switch button {
        padding: 5px 7px;
    }

    .nav-name em {
        display: none;
    }

    .hero {
        padding: 64px 20px 56px;
    }

    .section {
        padding: 48px 20px;
    }

    .cta-section {
        padding: 60px 20px;
    }

    footer {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

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

    .work-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .lb {
        padding: 14px;
    }

    .lb-view {
        max-height: 58vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-card {
        transition: border-color 0.15s;
    }

    .brand-card:hover {
        transform: none;
    }

    .win,
    .phone,
    .win-view img,
    .phone-screen img {
        transition: none;
    }

    .work-card:hover .win,
    .work-card:hover .phone {
        transform: none;
    }

    .work-card:hover .win-view img,
    .work-card:focus-visible .win-view img,
    .work-card:hover .phone-screen img,
    .work-card:focus-visible .phone-screen img {
        transform: translateY(0);
    }
}

/* ── PÁGINA DE GRACIAS ── */
.hero-sub a {
    color: var(--cyan-ink);
    text-decoration: none;
    border-bottom: 1px solid rgba(10, 117, 149, 0.3);
}

.hero-sub a:hover {
    border-bottom-color: var(--cyan-ink);
}

/* ── FORMULARIO DE CONTACTO ── */
.lead-card {
    max-width: 660px;
    margin: 40px auto 0;
    padding: 34px 34px 30px;
    background: var(--white);
    border-radius: 22px;
    text-align: left;
    box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.6);
}

/* la sección de contacto centra y estrecha sus <p>; dentro del formulario no */
.lead-card p {
    max-width: none;
    margin: 0;
    text-align: left;
    color: var(--text);
}

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

.lead-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 16px;
}

.field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.field-wide {
    grid-column: 1 / -1;
}

.field label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text);
    margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
    font: inherit;
    font-size: 14px;
    width: 100%;
    padding: 12px 14px;
    color: var(--text);
    background: var(--off);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.field textarea {
    resize: vertical;
    min-height: 104px;
    line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #b4b4b0;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: rgba(0, 0, 0, 0.2);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    background: var(--white);
    border-color: var(--cyan-ink);
    box-shadow: 0 0 0 3px rgba(10, 117, 149, 0.12);
}

.field select {
    appearance: none;
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 38px;
}

/* teléfono: prefijo + número como un solo control */
.phone-row {
    display: flex;
    gap: 8px;
}

.phone-row select {
    width: 152px;
    flex-shrink: 0;
}

.phone-row input {
    flex: 1;
    min-width: 0;
    letter-spacing: 0.04em;
}

/* errores de validación */
.field-error {
    font-size: 11.5px;
    color: #c0392b;
    margin-top: 6px;
    display: none;
}

.field-error.is-on {
    display: block;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-color: #d9534f;
    background: #fdf6f5;
}

.lead-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--muted);
    cursor: pointer;
}

.lead-consent input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--cyan-ink);
    flex-shrink: 0;
}

.lead-captcha {
    margin-top: 20px;
}

.lead-captcha:empty {
    margin-top: 0;
}

.lead-submit {
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
    margin-top: 22px;
    padding: 15px 26px;
    color: var(--white);
    background: var(--navy);
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: opacity 0.15s;
}

.lead-submit:hover {
    opacity: 0.9;
}

.lead-submit[disabled] {
    opacity: 0.55;
    cursor: progress;
}

.lead-card .lead-status {
    font-size: 13px;
    line-height: 1.6;
    margin: 14px 0 0;
    color: var(--muted);
    max-width: none;
}

.lead-card .lead-status.is-error {
    color: #c0392b;
}

.cta-note a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.cta-note a:hover {
    color: var(--white);
}

@media (max-width: 620px) {
    .lead-card {
        padding: 26px 20px 24px;
        border-radius: 18px;
    }

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

    .phone-row select {
        width: 128px;
    }
}

/* obligatorio */
.req {
    color: var(--cyan-ink);
    margin-left: 3px;
    font-weight: 600;
}

/* aviso solo en vista local: Netlify inyecta el reCAPTCHA al publicar */
.captcha-hint {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px 16px;
    border: 1px dashed var(--border);
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--light);
    background: var(--off);
}

.captcha-hint::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid #c9c9c4;
    border-radius: 4px;
    flex-shrink: 0;
}
