/* =========================================================
   JD SERVICIO DE INGENIERÍA — Tema 2.0
   ========================================================= */

:root {
    --jd-blue: #153174;
    --jd-blue-2: #1b4bb8;
    --jd-cyan: #28bfe7;
    --jd-gold: #c98a2e;
    --jd-gold-light: #e1a84a;
    --jd-dark: #0b1118;
    --jd-dark-2: #111a24;
    --jd-dark-3: #192431;
    --jd-text: #17202b;
    --jd-muted: #66717f;
    --jd-line: #dfe5eb;
    --jd-light: #f4f6f8;
    --jd-white: #ffffff;
    --jd-container: 1240px;
    --jd-header-height: 86px;
    --hero-progress: 0;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    background: var(--jd-white);
    color: var(--jd-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

img,
video {
    display: block;
    max-width: 100%;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(calc(100% - 48px), var(--jd-container));
    margin-inline: auto;
}

.section-pad {
    padding: clamp(88px, 10vw, 150px) 0;
}

.section-dark {
    background: var(--jd-dark);
    color: var(--jd-white);
}

.section-kicker {
    margin: 0 0 16px;
    color: var(--jd-gold);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .22em;
}

.display-title {
    max-width: 930px;
    margin: 0;
    font-size: clamp(2.4rem, 5.2vw, 5.5rem);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 690;
    text-wrap: balance;
}

.display-title--light {
    color: var(--jd-white);
}

.lead {
    max-width: 700px;
    margin: 28px 0 0;
    color: var(--jd-muted);
    font-size: clamp(1.08rem, 1.45vw, 1.35rem);
    line-height: 1.75;
}

.lead--light {
    color: rgba(255,255,255,.65);
}

.text-link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    white-space: nowrap;
    transition: opacity .25s ease, transform .25s ease;
}

.text-link:hover {
    opacity: .7;
    transform: translateX(3px);
}

.narrow-content {
    width: min(100%, 820px);
}

.narrow-content p,
.narrow-content li {
    color: #4f5c69;
    font-size: 1.08rem;
    line-height: 1.85;
}

.narrow-content h2,
.narrow-content h3 {
    margin-top: 2em;
    letter-spacing: -.03em;
}

/* Header */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--jd-header-height);
    transition:
        background-color .35s ease,
        box-shadow .35s ease,
        backdrop-filter .35s ease;
}

body.admin-bar .site-header {
    top: 32px;
}

.site-header.is-scrolled,
body:not(.home) .site-header {
    background: rgba(11,17,24,.91);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 35px rgba(0,0,0,.12);
}

.site-header__inner {
    width: min(calc(100% - 48px), var(--jd-container));
    height: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.site-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.site-brand .custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.site-brand .custom-logo {
    width: auto;
    height: 58px;
    max-width: 180px;
    object-fit: contain;
}

.site-brand__text {
    color: var(--jd-white);
    font-weight: 800;
    letter-spacing: .03em;
}

.site-brand__text span {
    font-weight: 500;
}

.site-nav {
    margin-left: auto;
}

.site-nav__menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 31px;
    margin: 0;
    padding: 0;
}

.site-nav__menu a {
    position: relative;
    color: rgba(255,255,255,.92);
    font-size: .92rem;
    font-weight: 650;
    transition: color .25s ease;
}

.site-nav__menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 1px;
    background: var(--jd-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s ease;
}

.site-nav__menu a:hover::after,
.site-nav__menu .current-menu-item > a::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    width: 18px;
    height: 1px;
    background: var(--jd-white);
    transition: transform .3s ease;
}

.menu-toggle.is-open span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

/* Menú móvil */

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 990;
    background: rgba(8,13,19,.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}

.mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav__inner {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 32px 52px;
}

.mobile-nav__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav__menu li {
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.mobile-nav__menu a {
    display: block;
    padding: 18px 0;
    color: var(--jd-white);
    font-size: clamp(2rem, 9vw, 4rem);
    font-weight: 650;
    letter-spacing: -.045em;
}

.mobile-nav__cta {
    margin-top: 36px;
    color: var(--jd-gold-light);
    font-weight: 750;
}

/* Hero */

.hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    display: grid;
    place-items: center;
    isolation: isolate;
    background:
        radial-gradient(circle at 75% 35%, rgba(21,49,116,.5), transparent 35%),
        linear-gradient(135deg, #071018, #101b2c 70%, #142b60);
}

.hero__video {
    position: absolute;
    inset: 0;
    z-index: -4;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform:
        scale(calc(1.035 + (var(--hero-progress) * .045)))
        translateY(calc(var(--hero-progress) * 10px));
    filter:
        saturate(.9)
        contrast(1.08)
        brightness(.82);
    will-change: transform;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(
            90deg,
            rgba(5,9,14,.88) 0%,
            rgba(6,12,20,.72) 38%,
            rgba(7,18,34,.42) 70%,
            rgba(9,26,62,.28) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0,0,0,.23) 0%,
            rgba(0,0,0,.06) 52%,
            rgba(3,7,12,.58) 100%
        );
}

.hero__noise {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .11;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,.55) .65px, transparent .75px);
    background-size: 5px 5px;
    mix-blend-mode: soft-light;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 32%;
    background: linear-gradient(180deg, transparent, rgba(5,9,14,.64));
}

.hero__content {
    width: min(calc(100% - 48px), var(--jd-container));
    padding-top: var(--jd-header-height);
    color: var(--jd-white);
    opacity: calc(1 - (var(--hero-progress) * .82));
    transform: translateY(calc(var(--hero-progress) * -34px));
}

.hero__eyebrow {
    margin: 0 0 20px;
    color: var(--jd-gold-light);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .24em;
    opacity: 0;
    transform: translateY(20px);
    animation: jd-hero-in .8s .08s ease forwards;
}

.hero__title {
    max-width: 940px;
    margin: 0;
    font-size: clamp(3.4rem, 7.2vw, 7.6rem);
    line-height: .93;
    letter-spacing: -.065em;
    font-weight: 690;
    text-wrap: balance;
    opacity: 0;
    transform: translateY(28px);
    animation: jd-hero-in .95s .18s cubic-bezier(.2,.7,.2,1) forwards;
}

.hero__subtitle {
    max-width: 820px;
    margin: 30px 0 0;
    color: rgba(255,255,255,.84);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.65;
    opacity: 0;
    transform: translateY(22px);
    animation: jd-hero-in .9s .34s ease forwards;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
    opacity: 0;
    transform: translateY(18px);
    animation: jd-hero-in .85s .50s ease forwards;
}

@keyframes jd-hero-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    font-weight: 750;
    transition:
        transform .25s ease,
        background-color .25s ease,
        border-color .25s ease,
        color .25s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    background: var(--jd-gold);
    color: #111;
}

.button--primary:hover {
    background: var(--jd-gold-light);
}

.button--ghost {
    color: var(--jd-white);
    border-color: rgba(255,255,255,.36);
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(8px);
}

.button--ghost:hover {
    border-color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.12);
}

.button--dark {
    background: var(--jd-dark);
    color: var(--jd-white);
}

.button--large {
    min-height: 58px;
    padding-inline: 30px;
}

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 28px;
    width: 28px;
    height: 48px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 20px;
    transform: translateX(-50%);
    opacity: calc(1 - var(--hero-progress));
}

.hero__scroll span {
    position: absolute;
    top: 9px;
    left: 50%;
    width: 4px;
    height: 8px;
    border-radius: 99px;
    background: var(--jd-white);
    transform: translateX(-50%);
    animation: jd-scroll 1.8s ease-in-out infinite;
}

@keyframes jd-scroll {
    0% { transform: translate(-50%,0); opacity: 0; }
    25% { opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translate(-50%,18px); opacity: 0; }
}

/* Statement */

.statement {
    background: var(--jd-white);
}

.statement-grid {
    display: grid;
    grid-template-columns: minmax(130px, .35fr) 1.65fr;
    gap: 60px;
    align-items: start;
}

/* Home services */

.services-home {
    background: #0e151d;
}

.service-panel {
    position: relative;
    min-height: 52vh;
    display: grid;
    grid-template-columns: minmax(80px, 12vw) 1fr;
    align-items: end;
    gap: 30px;
    padding: clamp(48px, 6vw, 92px) max(24px, calc((100vw - var(--jd-container)) / 2));
    color: var(--jd-white);
    border-top: 1px solid rgba(255,255,255,.09);
    overflow: hidden;
    isolation: isolate;
}

.service-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(90deg, rgba(8,13,19,.96), rgba(10,16,24,.72) 58%, rgba(10,16,24,.15));
    transition: background .45s ease;
}

.service-panel:hover::after {
    background:
        linear-gradient(90deg, rgba(8,13,19,.92), rgba(10,16,24,.58) 55%, rgba(10,16,24,.08));
}

.service-panel__number {
    align-self: start;
    color: rgba(255,255,255,.24);
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 250;
    line-height: .85;
    letter-spacing: -.07em;
}

.service-panel__content {
    max-width: 850px;
    position: relative;
    z-index: 2;
}

.service-panel__content p {
    margin: 0 0 14px;
    color: var(--jd-gold-light);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.service-panel__content h3 {
    margin: 0;
    max-width: 900px;
    font-size: clamp(2.4rem, 5vw, 5.6rem);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 630;
    text-wrap: balance;
}

.service-panel__content span {
    display: inline-block;
    margin-top: 28px;
    color: rgba(255,255,255,.72);
    font-weight: 650;
}

.service-panel__glow {
    position: absolute;
    right: -8vw;
    top: 50%;
    width: 45vw;
    height: 45vw;
    border-radius: 50%;
    z-index: -4;
    filter: blur(120px);
    opacity: .33;
    transform: translateY(-50%) scale(.9);
    transition: opacity .5s ease, transform .5s ease;
}

.service-panel:hover .service-panel__glow {
    opacity: .52;
    transform: translateY(-50%) scale(1.04);
}

.service-panel__glow--blue { background: #164fd8; }
.service-panel__glow--steel { background: #95a8b8; }
.service-panel__glow--cyan { background: #12bfe9; }
.service-panel__glow--gold { background: #d48c20; }

/* Secciones / headings */

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    align-items: end;
    margin-bottom: 58px;
}

.section-heading > .lead {
    margin: 0;
}

/* Proceso */

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255,255,255,.12);
}

.process-step {
    min-height: 320px;
    padding: 38px 36px 20px 0;
    border-right: 1px solid rgba(255,255,255,.12);
}

.process-step + .process-step {
    padding-left: 36px;
}

.process-step:last-child {
    border-right: 0;
}

.process-step span {
    color: var(--jd-gold-light);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.process-step h3 {
    margin: 88px 0 14px;
    font-size: clamp(1.65rem, 2.7vw, 2.8rem);
    letter-spacing: -.04em;
}

.process-step p {
    max-width: 310px;
    margin: 0;
    color: rgba(255,255,255,.60);
    line-height: 1.7;
}

/* Proyectos */

.projects-home {
    background: var(--jd-light);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.project-grid--archive {
    row-gap: 52px;
}

.project-card {
    display: block;
}

.project-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #d9e0e6;
}

.project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2,.7,.2,1);
}

.project-card:hover .project-card__media img {
    transform: scale(1.035);
}

.project-card__placeholder {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, #101822, #1d2d3d 48%, #163e7a);
}

.project-card__meta {
    padding-top: 18px;
}

.project-card__meta > span {
    color: var(--jd-gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.project-card__meta h2,
.project-card__meta h3 {
    margin: 7px 0 0;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.project-card__meta p {
    margin: 10px 0 0;
    color: var(--jd-muted);
    line-height: 1.6;
}

.projects-empty {
    border: 1px solid #d6dde3;
    padding: 48px;
    background: var(--jd-white);
}

.projects-empty p {
    margin: 0 0 24px;
    color: var(--jd-muted);
}

.projects-empty--page {
    max-width: 780px;
}

.projects-empty--page h2 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 5rem);
    line-height: .98;
    letter-spacing: -.05em;
}

.projects-empty--page > p:last-child {
    max-width: 660px;
    margin-top: 24px;
    font-size: 1.1rem;
    line-height: 1.75;
}

/* Keywords */

.keywords {
    overflow: hidden;
    background: var(--jd-white);
    border-top: 1px solid var(--jd-line);
    border-bottom: 1px solid var(--jd-line);
}

.keywords-track {
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 3vw, 50px);
    padding-inline: 28px;
    white-space: nowrap;
}

.keywords-track span {
    font-size: clamp(.82rem, 1.5vw, 1rem);
    font-weight: 800;
    letter-spacing: .16em;
}

.keywords-track i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--jd-gold);
}

/* CTA */

.home-cta {
    background: linear-gradient(135deg, #10244b 0%, #153174 55%, #10224a 100%);
    color: var(--jd-white);
}

.home-cta__inner {
    min-height: 450px;
    padding: 84px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.home-cta h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.7rem, 5vw, 5.7rem);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 650;
}

.home-cta p:not(.section-kicker) {
    max-width: 650px;
    margin: 20px 0 0;
    color: rgba(255,255,255,.7);
    font-size: 1.08rem;
    line-height: 1.7;
}

/* Page hero */

.interior-page {
    background: var(--jd-white);
}

.page-hero {
    min-height: 72vh;
    display: flex;
    align-items: end;
    padding: calc(var(--jd-header-height) + 100px) 0 90px;
    color: var(--jd-white);
    background:
        radial-gradient(circle at 80% 28%, rgba(37,91,195,.42), transparent 30%),
        linear-gradient(135deg, #09111b, #122033 58%, #142d62);
}

.page-hero--services {
    background:
        radial-gradient(circle at 78% 30%, rgba(34,178,226,.22), transparent 34%),
        linear-gradient(135deg, #09111b, #172330 58%, #14316e);
}

.page-hero--about {
    background:
        radial-gradient(circle at 76% 35%, rgba(201,138,46,.17), transparent 34%),
        linear-gradient(135deg, #0b1118, #19232e 58%, #1b2c48);
}

.page-hero--simple {
    min-height: 48vh;
}

.page-hero__inner {
    width: 100%;
}

.page-hero h1 {
    max-width: 1000px;
    margin: 0;
    font-size: clamp(3.6rem, 8vw, 8rem);
    line-height: .92;
    letter-spacing: -.065em;
    font-weight: 650;
    text-wrap: balance;
}

.page-hero p:not(.section-kicker) {
    max-width: 730px;
    margin: 28px 0 0;
    color: rgba(255,255,255,.7);
    font-size: clamp(1.05rem, 1.55vw, 1.3rem);
    line-height: 1.7;
}

/* Servicios detalle */

.service-detail {
    border-bottom: 1px solid var(--jd-line);
    background: var(--jd-white);
    scroll-margin-top: 90px;
}

.service-detail--alt {
    background: var(--jd-light);
}

.service-detail__grid {
    min-height: 72vh;
    padding: 105px 0;
    display: grid;
    grid-template-columns: .22fr 1fr .82fr;
    gap: clamp(30px, 5vw, 80px);
    align-items: start;
}

.service-detail__index {
    color: #bec7d0;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 250;
    line-height: .9;
    letter-spacing: -.06em;
}

.service-detail h2 {
    margin: 0;
    max-width: 610px;
    font-size: clamp(2.5rem, 5vw, 5.4rem);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 650;
}

.service-detail__copy > p {
    margin: 0;
    color: var(--jd-muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.clean-list {
    list-style: none;
    margin: 34px 0 0;
    padding: 0;
}

.clean-list li {
    position: relative;
    padding: 15px 0 15px 24px;
    border-top: 1px solid var(--jd-line);
    color: #33404d;
    line-height: 1.5;
}

.clean-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 23px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--jd-gold);
}

/* Nosotros */

.about-intro__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 90px;
    align-items: start;
}

.about-copy p {
    margin: 0 0 26px;
    color: var(--jd-muted);
    font-size: 1.13rem;
    line-height: 1.85;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    border-top: 1px solid rgba(255,255,255,.12);
}

.principle {
    min-height: 300px;
    padding: 35px 28px 20px 0;
    border-right: 1px solid rgba(255,255,255,.12);
}

.principle + .principle {
    padding-left: 28px;
}

.principle:last-child {
    border-right: 0;
}

.principle span {
    color: var(--jd-gold-light);
    font-size: .75rem;
    font-weight: 800;
}

.principle h3 {
    margin: 90px 0 12px;
    font-size: 1.8rem;
    letter-spacing: -.035em;
}

.principle p {
    margin: 0;
    color: rgba(255,255,255,.58);
    line-height: 1.65;
}

/* Contacto */

.contact-page {
    min-height: 100svh;
    padding: calc(var(--jd-header-height) + 95px) 0 100px;
    background:
        linear-gradient(90deg, #0d151e 0%, #111c28 45%, #f5f7f9 45%, #f5f7f9 100%);
}

.contact-page__grid {
    display: grid;
    grid-template-columns: .78fr 1.22fr;
    gap: clamp(60px, 8vw, 120px);
    align-items: start;
}

.contact-intro {
    color: var(--jd-white);
    padding-top: 34px;
}

.contact-intro h1 {
    margin: 0;
    max-width: 620px;
    font-size: clamp(3.2rem, 6vw, 6.5rem);
    line-height: .94;
    letter-spacing: -.06em;
    font-weight: 650;
}

.contact-intro > p:not(.section-kicker) {
    max-width: 570px;
    margin: 26px 0 0;
    color: rgba(255,255,255,.65);
    font-size: 1.08rem;
    line-height: 1.75;
}

.contact-direct {
    margin-top: 64px;
    display: grid;
    gap: 0;
}

.contact-direct a,
.contact-direct > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 17px 0;
    border-top: 1px solid rgba(255,255,255,.11);
}

.contact-direct span {
    color: rgba(255,255,255,.45);
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.contact-direct strong {
    font-size: 1rem;
    font-weight: 600;
}

.contact-form-wrap {
    background: var(--jd-white);
    padding: clamp(34px, 5vw, 64px);
    box-shadow: 0 35px 90px rgba(14,23,34,.10);
}

.contact-form {
    display: grid;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-field {
    display: grid;
    gap: 9px;
}

.form-field label {
    color: #283442;
    font-size: .82rem;
    font-weight: 750;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #cbd3dc;
    border-radius: 0;
    padding: 12px 0 13px;
    background: transparent;
    color: var(--jd-text);
    outline: none;
    transition: border-color .2s ease;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--jd-blue);
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.form-notice {
    margin-bottom: 24px;
    padding: 14px 16px;
    font-size: .92rem;
    line-height: 1.5;
}

.form-notice--success {
    background: #e8f6ed;
    color: #176336;
}

.form-notice--error {
    background: #fff0f0;
    color: #8f2929;
}

/* Single proyecto */

.project-single__hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: end;
    overflow: hidden;
    background: var(--jd-dark);
    color: var(--jd-white);
}

.project-single__image {
    position: absolute;
    inset: 0;
}

.project-single__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-single__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7,11,16,.25), rgba(7,11,16,.86)),
        linear-gradient(90deg, rgba(7,11,16,.56), transparent 70%);
}

.project-single__title {
    position: relative;
    z-index: 2;
    padding-bottom: 76px;
}

.project-single__title h1 {
    max-width: 1050px;
    margin: 0;
    font-size: clamp(3.5rem, 7vw, 7.5rem);
    line-height: .93;
    letter-spacing: -.06em;
    font-weight: 650;
}

/* Footer */

.site-footer {
    background: #080d13;
    color: var(--jd-white);
}

.site-footer__top {
    padding: 80px 0 62px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .55fr .75fr;
    gap: 70px;
}

.footer-eyebrow {
    margin: 0 0 13px;
    color: var(--jd-gold-light);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .18em;
}

.footer-brand h2 {
    max-width: 540px;
    margin: 0;
    font-size: clamp(2.3rem, 4vw, 4.7rem);
    line-height: 1;
    letter-spacing: -.05em;
    font-weight: 630;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
    color: rgba(255,255,255,.62);
    font-size: .94rem;
    transition: color .2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--jd-white);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.09);
}

.footer-bottom {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: rgba(255,255,255,.37);
    font-size: .78rem;
}

/* Error */

.error-page {
    min-height: 100svh;
    display: grid;
    place-items: center;
    background: var(--jd-dark);
    color: var(--jd-white);
}

.error-page__inner {
    text-align: center;
}

.error-page h1 {
    margin: 0;
    font-size: clamp(3rem, 8vw, 8rem);
    letter-spacing: -.06em;
}

.error-page p:not(.section-kicker) {
    margin: 20px auto 30px;
    color: rgba(255,255,255,.6);
}

/* Reveal */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity .8s cubic-bezier(.2,.7,.2,1),
        transform .8s cubic-bezier(.2,.7,.2,1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */

@media (max-width: 980px) {
    .site-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

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

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

    .process-step,
    .process-step + .process-step {
        min-height: auto;
        padding: 30px 0 42px;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }

    .process-step h3 {
        margin-top: 44px;
    }

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

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

    .principle:nth-child(2) {
        border-right: 0;
    }

    .about-intro__grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }

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

    .service-detail__copy {
        grid-column: 2;
    }

    .contact-page {
        background:
            linear-gradient(180deg, #0d151e 0%, #111c28 42%, #f5f7f9 42%, #f5f7f9 100%);
    }

    .contact-page__grid {
        grid-template-columns: 1fr;
    }

    .contact-intro {
        padding-bottom: 55px;
    }

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

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

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 720px) {
    :root {
        --jd-header-height: 74px;
    }

    .container,
    .site-header__inner,
    .hero__content {
        width: min(calc(100% - 32px), var(--jd-container));
    }

    .site-brand .custom-logo {
        height: 48px;
        max-width: 150px;
    }

    .hero__video {
        object-position: 58% center;
    }

    .hero__title {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .hero__subtitle {
        font-size: .98rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-panel {
        min-height: 46vh;
        grid-template-columns: 1fr;
        align-content: end;
    }

    .service-panel__number {
        position: absolute;
        top: 30px;
        right: 24px;
        font-size: 4rem;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 26px;
    }

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

    .project-card__media {
        aspect-ratio: 16 / 11;
    }

    .keywords-track {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .home-cta__inner {
        min-height: 430px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .service-detail__grid {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 75px 0;
    }

    .service-detail__copy {
        grid-column: auto;
    }

    .service-detail__index {
        font-size: 3.5rem;
    }

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

    .principle,
    .principle + .principle {
        min-height: auto;
        padding: 28px 0 34px;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }

    .principle h3 {
        margin-top: 42px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 30px 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        padding: 22px 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .page-hero {
        min-height: 64vh;
        padding-bottom: 60px;
    }

    .page-hero h1 {
        font-size: clamp(3.3rem, 15vw, 5.4rem);
    }
}

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

    .hero__video,
    .hero__content {
        transform: none !important;
    }

    .hero__eyebrow,
    .hero__title,
    .hero__subtitle,
    .hero__actions,
    .reveal {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }

    .hero__scroll span {
        animation: none;
    }
}


/* =========================================================
   JD 2.1 — Refinamientos visuales, móvil y nuevas capacidades
   ========================================================= */

/* Sangría / respiración horizontal */
@media (min-width: 721px) {
    .container,
    .site-header__inner,
    .hero__content {
        width: min(calc(100% - 112px), 1280px);
    }
}

/* Corrige el ancho heredado que pegaba el hero interior al borde */
.page-hero__inner {
    width: auto;
}

/* Enfoque sectorial */
.industry-focus {
    position: relative;
    overflow: hidden;
}

.industry-focus::before {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    right: -240px;
    top: -260px;
    border-radius: 50%;
    background: rgba(26, 83, 190, .19);
    filter: blur(100px);
    pointer-events: none;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(255,255,255,.12);
}

.industry-card {
    position: relative;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px 42px 36px 0;
    border-right: 1px solid rgba(255,255,255,.12);
}

.industry-card + .industry-card {
    padding-left: 42px;
    border-right: 0;
}

.industry-card > span {
    color: var(--jd-gold-light);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .18em;
}

.industry-card p {
    margin: 0 0 12px;
    color: rgba(255,255,255,.42);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.industry-card h3 {
    max-width: 560px;
    margin: 0;
    color: var(--jd-white);
    font-size: clamp(1.9rem, 3vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -.045em;
    font-weight: 620;
}

/* Home: catálogo compacto de capacidades */
.capabilities {
    background: var(--jd-light);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #cfd7df;
    border-left: 1px solid #cfd7df;
}

.capability-card {
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    padding: 28px 28px 30px;
    background: rgba(255,255,255,.55);
    border-right: 1px solid #cfd7df;
    border-bottom: 1px solid #cfd7df;
    overflow: hidden;
    transition:
        background-color .35s ease,
        color .35s ease,
        transform .35s ease;
}

.capability-card::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--jd-blue), var(--jd-cyan), var(--jd-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}

.capability-card:hover {
    background: var(--jd-dark);
    color: var(--jd-white);
    transform: translateY(-3px);
    z-index: 2;
}

.capability-card:hover::before {
    transform: scaleX(1);
}

.capability-card > span {
    color: var(--jd-gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.capability-card h3 {
    margin: auto 0 12px;
    font-size: clamp(1.35rem, 2vw, 1.95rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    font-weight: 680;
}

.capability-card p {
    margin: 0;
    color: var(--jd-muted);
    font-size: .92rem;
    line-height: 1.6;
    transition: color .35s ease;
}

.capability-card:hover p {
    color: rgba(255,255,255,.62);
}

/* 4 pasos */
.process-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-grid--four .process-step {
    min-height: 300px;
}

.process-grid--four .process-step h3 {
    margin-top: 72px;
}

/* Servicios: catálogo profesional y compacto */
.service-catalog {
    background: var(--jd-light);
}

.service-catalog__intro {
    display: grid;
    grid-template-columns: .42fr 1fr;
    column-gap: 54px;
    margin-bottom: 58px;
}

.service-catalog__intro > .section-kicker {
    grid-row: 1 / span 2;
}

.service-catalog__intro h2 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2.7rem, 5vw, 5.5rem);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 650;
}

.service-catalog__intro > p:last-child {
    max-width: 700px;
    margin: 22px 0 0;
    color: var(--jd-muted);
    font-size: 1.06rem;
    line-height: 1.72;
}

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

.service-card {
    scroll-margin-top: 110px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    padding: clamp(32px, 4vw, 52px);
    background: var(--jd-white);
    border: 1px solid #d9e0e6;
    transition:
        border-color .3s ease,
        box-shadow .3s ease,
        transform .3s ease;
}

.service-card:hover {
    border-color: #bec8d2;
    box-shadow: 0 24px 60px rgba(19,33,49,.08);
    transform: translateY(-3px);
}

.service-card__top {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 20px;
    align-items: start;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--jd-line);
}

.service-card__top > span {
    color: #aeb8c2;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.service-card h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1;
    letter-spacing: -.045em;
    font-weight: 660;
}

.service-card > p {
    margin: 30px 0 0;
    color: var(--jd-muted);
    font-size: 1.02rem;
    line-height: 1.78;
}

.service-card ul {
    list-style: none;
    margin: auto 0 0;
    padding: 30px 0 0;
}

.service-card li {
    position: relative;
    padding: 12px 0 12px 22px;
    border-top: 1px solid var(--jd-line);
    color: #3d4955;
    font-size: .92rem;
    line-height: 1.45;
}

.service-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--jd-gold);
}

.industry-strip {
    padding: 72px 0;
}

.industry-strip__inner {
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: 70px;
    align-items: end;
}

.industry-strip h2 {
    margin: 0;
    color: var(--jd-white);
    font-size: clamp(2.8rem, 5vw, 5.2rem);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 640;
}

.industry-strip__inner > p {
    margin: 0;
    color: rgba(255,255,255,.62);
    font-size: 1.05rem;
    line-height: 1.72;
}

/* Contacto / WhatsApp */
.form-notice--info {
    background: #edf4fb;
    color: #244b72;
}

.form-privacy {
    margin: -8px 0 0;
    color: var(--jd-muted);
    font-size: .78rem;
    line-height: 1.5;
}

/* Hero desktop: fallback visual estable si el video tarda */
.hero {
    background:
        radial-gradient(circle at 78% 28%, rgba(31, 91, 211, .32), transparent 32%),
        linear-gradient(135deg, #071018 0%, #101b2c 62%, #142f68 100%);
}

.hero__video {
    background: transparent;
}

/* ===== Tablet ===== */
@media (max-width: 1100px) {
    .capabilities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .process-grid--four .process-step:nth-child(2) {
        border-right: 0;
    }

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

    .industry-card,
    .industry-card + .industry-card {
        min-height: 260px;
        padding: 28px 0 34px;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }
}

/* ===== Móvil optimizado para visitas desde QR ===== */
@media (max-width: 720px) {
    :root {
        --jd-header-height: 68px;
    }

    .section-pad {
        padding: 68px 0;
    }

    .site-header__inner {
        width: calc(100% - 28px);
    }

    .container,
    .hero__content {
        width: calc(100% - 32px);
    }

    .site-brand .custom-logo {
        height: 44px;
        max-width: 132px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .hero {
        min-height: 88svh;
        place-items: end start;
    }

    .hero__content {
        padding: calc(var(--jd-header-height) + 62px) 0 72px;
    }

    .hero__eyebrow {
        margin-bottom: 14px;
        font-size: .68rem;
        letter-spacing: .18em;
    }

    .hero__title {
        max-width: 520px;
        font-size: clamp(2.85rem, 13.3vw, 4.65rem);
        line-height: .95;
        letter-spacing: -.06em;
    }

    .hero__subtitle {
        max-width: 520px;
        margin-top: 20px;
        font-size: .96rem;
        line-height: 1.55;
    }

    .hero__actions {
        width: 100%;
        margin-top: 26px;
        flex-direction: row;
        gap: 8px;
    }

    .hero__actions .button {
        flex: 1 1 0;
        min-height: 47px;
        padding-inline: 13px;
        font-size: .78rem;
        text-align: center;
    }

    .hero__scroll {
        display: none;
    }

    .statement-grid {
        gap: 18px;
    }

    .display-title {
        font-size: clamp(2.35rem, 10.4vw, 3.9rem);
        line-height: 1;
    }

    .lead {
        margin-top: 20px;
        font-size: 1rem;
        line-height: 1.65;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .industry-card h3 {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
        border-left: 0;
    }

    .capability-card {
        min-height: 0;
        padding: 23px 20px 24px;
        border-left: 1px solid #cfd7df;
    }

    .capability-card h3 {
        margin: 48px 0 9px;
        font-size: 1.55rem;
    }

    .capability-card p {
        max-width: 520px;
        font-size: .9rem;
    }

    .process-grid--four {
        grid-template-columns: 1fr;
    }

    .process-grid--four .process-step,
    .process-grid--four .process-step + .process-step {
        min-height: 0;
        padding: 24px 0 30px;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }

    .process-grid--four .process-step h3 {
        margin-top: 34px;
    }

    .projects-empty {
        padding: 28px 22px;
    }

    .home-cta__inner {
        min-height: 0;
        padding: 66px 0;
        gap: 30px;
    }

    .home-cta h2 {
        font-size: clamp(2.5rem, 10.8vw, 4rem);
    }

    /* Hero interior compacto: elimina el vacío excesivo */
    .page-hero,
    .page-hero--simple {
        min-height: 0;
        padding: calc(var(--jd-header-height) + 62px) 0 58px;
        align-items: flex-end;
    }

    .page-hero h1 {
        max-width: 100%;
        font-size: clamp(3rem, 13.5vw, 4.8rem);
        line-height: .95;
    }

    .page-hero p:not(.section-kicker) {
        margin-top: 20px;
        font-size: .98rem;
        line-height: 1.6;
    }

    .service-catalog__intro {
        display: block;
        margin-bottom: 36px;
    }

    .service-catalog__intro h2 {
        font-size: clamp(2.45rem, 10.5vw, 3.9rem);
    }

    .service-catalog__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-card {
        min-height: 0;
        padding: 28px 22px;
    }

    .service-card__top {
        grid-template-columns: 44px 1fr;
        gap: 10px;
        padding-bottom: 20px;
    }

    .service-card h2 {
        font-size: clamp(1.85rem, 8vw, 2.55rem);
    }

    .service-card > p {
        margin-top: 22px;
        font-size: .96rem;
        line-height: 1.65;
    }

    .service-card ul {
        margin-top: 24px;
        padding-top: 0;
    }

    .industry-strip {
        padding: 58px 0;
    }

    .industry-strip__inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .industry-strip h2 {
        font-size: clamp(2.4rem, 10vw, 3.8rem);
    }

    .about-intro__grid {
        gap: 28px;
    }

    .principle h3 {
        margin-top: 32px;
    }

    /* Contacto móvil: sin división larga, lectura inmediata */
    .contact-page {
        min-height: 0;
        padding: calc(var(--jd-header-height) + 50px) 0 58px;
        background:
            linear-gradient(180deg, #0d151e 0, #111c28 43%, #f5f7f9 43%, #f5f7f9 100%);
    }

    .contact-page__grid {
        gap: 36px;
    }

    .contact-intro {
        padding: 0 0 28px;
    }

    .contact-intro h1 {
        font-size: clamp(3rem, 13vw, 4.8rem);
    }

    .contact-intro > p:not(.section-kicker) {
        margin-top: 20px;
        font-size: .98rem;
        line-height: 1.6;
    }

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

    .contact-form-wrap {
        margin-inline: -4px;
        padding: 28px 20px;
        box-shadow: 0 18px 48px rgba(14,23,34,.12);
    }

    .form-row {
        gap: 18px;
    }

    .button--large {
        min-height: 52px;
        width: 100%;
    }

    .site-footer__top {
        padding: 58px 0 44px;
    }

    .footer-grid {
        gap: 30px;
    }

    .footer-brand h2 {
        font-size: clamp(2.2rem, 9vw, 3.5rem);
    }
}

@media (max-width: 420px) {
    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .button {
        width: 100%;
        flex: auto;
    }
}


/* =========================================================
   JD — Servicios estilo Twenty Seventeen
   Imagen fija detrás de una ventana que la página va barriendo
   ========================================================= */

.services-intro--seventeen {
    background: var(--jd-white);
    padding: clamp(74px, 8vw, 118px) 0;
}

.services-intro--seventeen .services-intro__inner {
    display: grid;
    grid-template-columns: .34fr 1.08fr .78fr;
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.services-intro--seventeen h2 {
    margin: 0;
    max-width: 800px;
    font-size: clamp(2.6rem, 5vw, 5.4rem);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 650;
}

.services-intro--seventeen .services-intro__inner > p:last-child {
    margin: 0;
    color: var(--jd-muted);
    font-size: 1.04rem;
    line-height: 1.75;
}

.seventeen-services {
    background: var(--jd-white);
}

.seventeen-service {
    scroll-margin-top: 86px;
    background: var(--jd-white);
}

/*
 * Efecto exacto de la referencia:
 * la foto queda fijada al viewport y la sección funciona como una ventana
 * que la revela/oculta conforme avanza el scroll.
 */
.seventeen-service__image {
    --service-image: none;
    position: relative;
    min-height: 68vh;
    background-image:
        linear-gradient(rgba(4, 8, 12, .07), rgba(4, 8, 12, .07)),
        var(--service-image),
        radial-gradient(circle at 74% 34%, #284f8a, transparent 38%),
        linear-gradient(135deg, #111a23, #1d2d3d 58%, #14316d);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    overflow: hidden;
    isolation: isolate;
}

.seventeen-service__image-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5,9,14,.04), rgba(5,9,14,.08) 50%, rgba(5,9,14,.42)),
        linear-gradient(90deg, rgba(5,9,14,.30), transparent 55%);
}

.seventeen-service__image-meta {
    position: absolute;
    z-index: 2;
    inset: auto 0 0;
    width: min(calc(100% - 112px), 1280px);
    padding-bottom: 34px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--jd-white);
}

.seventeen-service__image-meta span {
    color: var(--jd-gold-light);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .18em;
}

.seventeen-service__image-meta p {
    margin: 0;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.seventeen-service__content {
    position: relative;
    z-index: 3;
    background: var(--jd-white);
    border-bottom: 1px solid var(--jd-line);
}

.seventeen-service__grid {
    min-height: 380px;
    padding-top: clamp(66px, 7vw, 105px);
    padding-bottom: clamp(70px, 8vw, 118px);
    display: grid;
    grid-template-columns: .22fr 1fr .82fr;
    gap: clamp(28px, 5vw, 78px);
    align-items: start;
}

.seventeen-service__number {
    color: #c3ccd5;
    font-size: clamp(3.2rem, 6vw, 6.5rem);
    font-weight: 230;
    line-height: .86;
    letter-spacing: -.07em;
}

.seventeen-service__heading h2 {
    margin: 0;
    max-width: 640px;
    color: var(--jd-text);
    font-size: clamp(2.7rem, 5vw, 5.3rem);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 650;
    text-wrap: balance;
}

.seventeen-service__copy > p {
    margin: 0;
    color: var(--jd-muted);
    font-size: 1.04rem;
    line-height: 1.78;
}

.seventeen-service__details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.seventeen-service__details span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid #d4dce3;
    border-radius: 999px;
    color: #44515e;
    font-size: .75rem;
    font-weight: 650;
}

/* Dispositivos táctiles: fixed nativo es inconsistente en iOS/Android */
@media (hover: none), (pointer: coarse) {
    .seventeen-service__image {
        background-attachment: scroll;
    }
}

@media (max-width: 980px) {
    .services-intro--seventeen .services-intro__inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .seventeen-service__image {
        min-height: 56vh;
    }

    .seventeen-service__grid {
        grid-template-columns: .18fr 1fr;
        min-height: 0;
    }

    .seventeen-service__copy {
        grid-column: 2;
    }
}

/* Móvil optimizado para visitas desde QR */
@media (max-width: 720px) {
    .services-intro--seventeen {
        padding: 58px 0;
    }

    .services-intro--seventeen h2 {
        font-size: clamp(2.4rem, 10.5vw, 3.8rem);
    }

    .services-intro--seventeen .services-intro__inner > p:last-child {
        font-size: .95rem;
        line-height: 1.64;
    }

    .seventeen-service__image {
        min-height: 42svh;
        background-attachment: scroll;
        background-position: center 50%;
    }

    .seventeen-service__image-meta {
        width: calc(100% - 32px);
        padding-bottom: 18px;
    }

    .seventeen-service__image-meta p {
        font-size: .64rem;
    }

    .seventeen-service__grid {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 36px;
        padding-bottom: 46px;
    }

    .seventeen-service__number {
        font-size: 3rem;
    }

    .seventeen-service__heading h2 {
        max-width: 100%;
        font-size: clamp(2.35rem, 10.5vw, 3.75rem);
    }

    .seventeen-service__copy {
        grid-column: auto;
    }

    .seventeen-service__copy > p {
        font-size: .94rem;
        line-height: 1.62;
    }

    .seventeen-service__details {
        gap: 6px;
        margin-top: 20px;
    }

    .seventeen-service__details span {
        min-height: 29px;
        padding-inline: 10px;
        font-size: .67rem;
    }
}


/* =========================================================
   JD 2.2 — Seis capacidades principales
   ========================================================= */

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

.capabilities-grid--six .capability-card {
    min-height: 310px;
}

@media (max-width: 1100px) {
    .capabilities-grid--six {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .capabilities-grid--six {
        grid-template-columns: 1fr;
    }

    .capabilities-grid--six .capability-card {
        min-height: 0;
    }
}


/* =========================================================
   JD 2.2.1 — Barrido real de imágenes en móvil
   ========================================================= */

/*
 * En iOS/Android background-attachment: fixed es inconsistente.
 * En móvil, la fotografía se coloca en una capa independiente (::before)
 * y JavaScript la desplaza con transform para crear el barrido real.
 */
@media (max-width: 720px) {

    .seventeen-service__image {
        --seventeen-mobile-shift: 0px;
        position: relative;
        isolation: isolate;
        overflow: hidden;

        /* Dejamos solamente el fondo de respaldo en el contenedor. */
        background-image:
            radial-gradient(circle at 74% 34%, #284f8a, transparent 38%),
            linear-gradient(135deg, #111a23, #1d2d3d 58%, #14316d) !important;

        background-attachment: scroll !important;
        background-position: center !important;
    }

    .seventeen-service__image::before {
        content: "";
        position: absolute;
        z-index: 0;
        left: 0;
        right: 0;
        top: -16%;
        height: 132%;

        background-image: var(--service-image);
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;

        transform:
            translate3d(0, var(--seventeen-mobile-shift), 0)
            scale(1.055);

        transform-origin: center center;
        will-change: transform;
        pointer-events: none;
    }

    .seventeen-service__image-shade {
        z-index: 1;
    }

    .seventeen-service__image-meta {
        z-index: 2;
    }
}

/*
 * Usuarios que prefieren menos movimiento:
 * se conserva la foto, pero sin desplazamiento.
 */
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
    .seventeen-service__image::before {
        transform: scale(1.055) !important;
    }
}


/* =========================================================
   JD 2.2.2 — Identidad visual / nuevo logo
   ========================================================= */

.site-header--brand {
    background: rgba(248, 249, 251, .94);
    border-bottom: 1px solid rgba(15, 27, 42, .08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header--brand.is-scrolled,
body:not(.home) .site-header--brand {
    background: rgba(248, 249, 251, .98);
    box-shadow: 0 12px 34px rgba(13, 25, 40, .09);
}

.site-header--brand .site-header__inner {
    min-height: var(--jd-header-height);
}

.site-brand__logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.site-brand__logo picture {
    display: block;
}

.site-brand__logo img {
    display: block;
    width: auto;
    height: 58px;
    max-width: 330px;
    object-fit: contain;
}

.site-header--brand .site-nav__menu a {
    color: #172333;
}

.site-header--brand .site-nav__menu a::after {
    background: var(--jd-gold);
}

.site-header--brand .menu-toggle {
    border-color: rgba(16, 30, 48, .16);
    background: rgba(16, 30, 48, .04);
}

.site-header--brand .menu-toggle span {
    background: #172333;
}

/* En el inicio compensamos el header claro sin alterar el hero. */
.home .hero__content {
    padding-top: calc(var(--jd-header-height) + 14px);
}

/* Móvil: isotipo únicamente para mantener el header compacto */
@media (max-width: 720px) {
    .site-brand__logo img {
        width: 46px;
        height: 46px;
        max-width: 46px;
        object-fit: contain;
    }

    .site-header--brand .site-header__inner {
        width: calc(100% - 28px);
    }
}


/* =========================================================
   JD 2.2.3 — Contacto escritorio
   Corrige proporciones, desbordamiento del título y espacio vacío.
   Móvil y tablet conservan su comportamiento actual.
   ========================================================= */

@media (min-width: 981px) {

    .contact-page {
        min-height: calc(100svh - var(--jd-header-height));
        padding:
            calc(var(--jd-header-height) + 58px)
            0
            72px;

        display: flex;
        align-items: center;

        background:
            linear-gradient(
                90deg,
                #0d151e 0%,
                #111c28 48%,
                #f5f7f9 48%,
                #f5f7f9 100%
            );
    }

    /*
     * En contacto usamos un contenedor un poco más amplio que el resto
     * para aprovechar monitores 1440/1920 sin dejar una gran zona vacía.
     */
    .contact-page .contact-page__grid {
        width: min(calc(100% - 112px), 1500px);
        margin-inline: auto;

        grid-template-columns:
            minmax(0, .90fr)
            minmax(560px, 1.10fr);

        gap: clamp(76px, 7vw, 132px);
        align-items: center;
    }

    .contact-intro {
        width: 100%;
        max-width: 610px;
        padding-top: 0;
        justify-self: end;
    }

    .contact-intro h1 {
        max-width: 590px;

        /*
         * El tamaño anterior dependía demasiado del ancho del viewport y
         * atravesaba la división central en monitores grandes.
         */
        font-size: clamp(3.75rem, 4.55vw, 5.55rem);
        line-height: .95;
        letter-spacing: -.055em;
    }

    .contact-intro > p:not(.section-kicker) {
        max-width: 530px;
        margin-top: 25px;
        font-size: 1.04rem;
        line-height: 1.72;
    }

    .contact-direct {
        width: min(100%, 520px);
        margin-top: 46px;
    }

    .contact-direct a,
    .contact-direct > div {
        padding: 15px 0;
    }

    /*
     * El formulario crece y queda centrado dentro de la mitad clara.
     */
    .contact-form-wrap {
        width: min(100%, 650px);
        max-width: 650px;
        justify-self: center;

        padding: clamp(42px, 3.2vw, 58px);
        background: rgba(255,255,255,.98);

        border: 1px solid rgba(20, 35, 52, .055);
        box-shadow:
            0 26px 70px rgba(14, 23, 34, .11),
            0 2px 8px rgba(14, 23, 34, .04);
    }

    .contact-form {
        gap: 22px;
    }

    .form-row {
        gap: 22px;
    }

    .form-field label {
        font-size: .80rem;
    }

    .form-field input,
    .form-field select {
        min-height: 48px;
    }

    .form-field textarea {
        min-height: 128px;
    }

    .contact-form .button--large {
        min-height: 56px;
        margin-top: 2px;
    }

    .form-privacy {
        max-width: 520px;
    }
}

/* Pantallas de escritorio medianas: evita que la composición se comprima. */
@media (min-width: 981px) and (max-width: 1280px) {

    .contact-page .contact-page__grid {
        width: min(calc(100% - 64px), 1180px);
        grid-template-columns:
            minmax(0, .92fr)
            minmax(500px, 1.08fr);
        gap: 58px;
    }

    .contact-intro h1 {
        font-size: clamp(3.45rem, 5vw, 4.65rem);
    }

    .contact-form-wrap {
        max-width: 590px;
        padding: 40px;
    }
}
