/* =========================================================================
   Immigration Lawyers Spain · «The Gateway to Spain» (octubre 2026)
   Se carga después de expediente.css y sustituye su mundo visual:
   petróleo para lo que recibe (cabecera, portadas, pie), marfil para leer,
   terracota solo como acento (nunca como color de texto largo).
   Tipos gratuitos: Gambetta (titulares) y Switzer (texto), de Fontshare;
   IBM Plex Mono para cifras y coordenadas.
   ========================================================================= */

:root {
    --petrol: #07161b;
    --petrol-2: #0c2129;
    --petrol-3: #123039;
    --ivory: #f3efe7;
    --ivory-2: #ebe5d9;
    --stone: #b9b3a7;
    --terra: #9e3f32;
    --terra-lt: #c8604f;

    --folder: #0f3a46;
    --folder-deep: #07161b;
    --g-nacionalidad: #7a3a30;
    --g-arraigo: #3b4a3f;
    --g-familia: #6a4f42;
    --g-residencia: #24505c;
    --g-documentos: #4f5d61;
    --g-recursos: #3a3f42;
    --g-uge: #0f3a46;

    --stamp: #9e3f32;
    --stamp-soft: rgba(158, 63, 50, .10);
    --ink: #07161b;
    --ink-2: #33444a;
    --ink-3: #5e6b6f;
    --paper: #f3efe7;
    --folio: #ebe5d9;
    --rule: #07161b;
    --hair: #d8d0c2;

    --f-display: 'Gambetta', 'Iowan Old Style', Georgia, serif;
    --f-text: 'Switzer', 'Helvetica Neue', Arial, sans-serif;
    --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

body.x-site { background: var(--ivory); color: var(--ink); font-size: 1.05rem; }
html { background: var(--petrol); scrollbar-color: var(--ink-3) var(--ivory-2); }
.x-site a { color: var(--ink); text-decoration-color: var(--terra); }
.x-site a:hover { color: var(--terra); }
.x-site ::selection { background: var(--terra); color: var(--ivory); }
.x-site :focus-visible { outline-color: var(--terra-lt); }

/* Titulares: serif editorial, sin mayúsculas forzadas */
.x-site h1, .x-site h2, .x-site h3, .x-site h4 { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.015em; }
.x-h2, .x-cover h1, .x-hubhead h1, .x-page__title, .x-hero h1 {
    font-family: var(--f-display); font-weight: 300; font-stretch: normal; text-transform: none; letter-spacing: -0.02em; line-height: 1;
}
.x-h2 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
.x-h2 em, .x-cover h1 em { font-style: italic; color: var(--stone); }
.x-article h2, .x-folio__title, .x-summary__head h2, .x-ledger__row h3, .x-split h3, .x-done h3, .x-cabinet__label {
    font-family: var(--f-display); font-weight: 400; font-stretch: normal; text-transform: none; letter-spacing: -0.01em;
}
.x-article h2 { font-size: clamp(1.7rem, 2.6vw, 2.25rem); line-height: 1.1; }
.x-folio__title { font-size: 1.7rem; }
.x-summary__head h2 { font-size: 1.5rem; }
.x-index__name, .x-file__sheet strong, .x-box__v, .x-fact__v, .x-steps strong, .x-note footer strong, .x-cities--list strong {
    font-family: var(--f-display); font-weight: 400; font-stretch: normal;
}
.x-index__name { font-size: 1.35rem; }
.x-faq summary { font-family: var(--f-display); font-weight: 400; font-stretch: normal; font-size: 1.3rem; }
.x-faq summary:hover { color: var(--terra); }
.x-faq details[open] summary .x-plus { background: var(--petrol); border-color: var(--petrol); color: var(--ivory); }
.x-mono { font-family: var(--f-mono); }

/* Botones: rectos, finos, sin mayúsculas */
.x-btn, .x-link {
    font-family: var(--f-text); font-weight: 500; font-stretch: normal; text-transform: none; letter-spacing: .02em;
}
.x-btn { border: 1px solid var(--petrol); background: var(--petrol); color: var(--ivory); padding: .95rem 1.5rem; }
.x-btn:hover { background: transparent; color: var(--petrol); border-color: var(--petrol); }
.x-site a.x-btn { color: var(--ivory); }
.x-site a.x-btn:hover { color: var(--petrol); }
.x-btn--paper, .x-site a.x-btn--paper { background: var(--ivory); color: var(--petrol); border-color: var(--ivory); }
.x-btn--paper:hover, .x-site a.x-btn--paper:hover { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.x-btn--ghost { background: transparent; color: var(--ivory); border-color: rgba(243,239,231,.6); }
.x-site a.x-btn--ghost { color: var(--ivory); }
.x-btn--ghost:hover, .x-site a.x-btn--ghost:hover { background: var(--ivory); color: var(--petrol); }
.x-link { border-bottom: 1px solid var(--terra); }

/* ---------- Cabecera ---------- */
.x-head { background: rgba(7, 22, 27, .96); border-bottom: 1px solid rgba(243,239,231,.12); color: var(--ivory); }
.x-head__in { min-height: 76px; }
.x-site a.x-brand, .x-site a.x-brand:hover { color: var(--ivory); }
.x-brand { gap: .85rem; }
.x-brand .x-mark { font: 500 .78rem/1 var(--f-text); letter-spacing: .3em; border: 1px solid var(--stone); padding: .5rem .45rem .5rem .7rem; color: var(--ivory); }
.x-brand__name { font-family: var(--f-text); font-weight: 500; font-stretch: normal; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; line-height: 1.3; color: var(--stone); }
.x-brand__sub { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: .86rem; letter-spacing: .01em; text-transform: none; color: var(--ivory); margin-top: 2px; }
.x-nav > a, .x-nav__btn { font-family: var(--f-text); font-weight: 400; font-stretch: normal; font-size: .93rem; color: rgba(243,239,231,.72); }
.x-nav > a:hover, .x-nav__btn:hover, .x-nav > a[aria-current="page"] { color: var(--ivory); }
.x-nav > a::after, .x-nav__btn::after { background: var(--terra-lt); height: 1px; }
.x-lang { color: var(--ivory); border-color: rgba(243,239,231,.35); font-family: var(--f-mono); font-weight: 400; }
.x-site a.x-lang { color: var(--ivory); }
.x-lang:hover, .x-site a.x-lang:hover { background: var(--ivory); color: var(--petrol); }
.x-nav > a.x-btn { background: var(--ivory); color: var(--petrol); border: 1px solid var(--ivory); padding: .6rem 1.05rem; }
.x-nav > a.x-btn:hover { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.x-menu-toggle { border-color: rgba(243,239,231,.4); color: var(--ivory); }
.x-mega { background: var(--petrol-2); border-bottom: 1px solid rgba(243,239,231,.12); box-shadow: 0 30px 50px -30px rgba(0,0,0,.7); }
.x-mega__col { border-left-color: rgba(243,239,231,.1); }
.x-mega__tab { background: none; color: var(--stone); font-family: var(--f-text); font-weight: 500; font-stretch: normal; font-size: .7rem; letter-spacing: .2em; padding: 0; margin-bottom: .8rem; }
.x-mega__col a { color: rgba(243,239,231,.86); font-size: .95rem; }
.x-mega__col a:hover { color: var(--ivory); }
.x-mega__all { border-top-color: rgba(243,239,231,.1); }
.x-mega__all .x-link, .x-site .x-mega__all a { color: var(--ivory); }

/* ---------- Portadas de página (tramite, guía, ciudad, páginas premium) ---------- */
.x-cover, .x-hubhead { background: var(--petrol); background-image: radial-gradient(90% 120% at 85% 0%, var(--petrol-3) 0%, var(--petrol) 60%); color: var(--ivory); }
.x-cover h1 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); }
.x-hubhead h1 { font-size: clamp(3rem, 7vw, 5.6rem); }
.x-cover__lead, .x-hubhead p { color: rgba(243,239,231,.78); }
.x-crumbs.x-cap, .x-crumbs.x-cap a { color: var(--stone); letter-spacing: .14em; font-weight: 500; }
.x-cover .x-btn--paper:hover { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.x-summary { background: var(--ivory); color: var(--ink); box-shadow: none; border: 1px solid rgba(243,239,231,.2); }
.x-summary__head { border-bottom-color: var(--ink); }
.x-cover__tabs { background: var(--petrol); }

/* Pestañas de grupo: etiquetas sobrias */
.x-tab { clip-path: none; font-family: var(--f-text); font-weight: 500; font-stretch: normal; font-size: .72rem; letter-spacing: .18em; padding: .45rem .8rem; transform: none; }
.x-tab__n { font-family: var(--f-mono); }
.g-residencia { --tab-ink: #fff; }

/* Catálogo y fichas */
.x-cabinet__panel { background: var(--petrol); }
.x-cabinet__panel::before, .x-cabinet__panel::after { display: none; }
.x-cabinet__sheet { background: var(--ivory); padding-right: clamp(1.25rem, 3vw, 2.25rem); }
.x-index { border-top-color: var(--ink); }
.x-index a:hover { background: var(--ivory-2); }
.x-file__body { background: var(--petrol); padding: 0; }
.x-file__sheet { background: var(--ivory); border: 1px solid var(--hair); border-top: 2px solid var(--tab, var(--petrol)); }
.x-site a.x-file:hover strong { color: var(--terra); }
.x-file .x-tab { display: none; }

/* Folio / formulario */
.x-folio { background: #fbf9f4; border: 1px solid var(--ink); box-shadow: 0 30px 60px -36px rgba(7,22,27,.55); }
.x-folio__head { border-bottom-color: var(--ink); }
.x-input { background: #fff; border-color: rgba(7,22,27,.5); }
.x-input:focus { border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(15,58,70,.15); }
.x-check input:checked { background: var(--petrol); border-color: var(--petrol); }
.x-stamp { border-color: var(--terra); color: var(--terra); font-family: var(--f-mono); }
.x-stamp--done strong { font-family: var(--f-display); font-stretch: normal; font-weight: 400; }

/* Secciones */
.x-sec--folio { background: var(--ivory-2); }
.x-ticks .x-ico { color: var(--terra); }
.x-split { border-color: var(--ink); }
.x-split__col + .x-split__col { background: var(--ivory-2); }
.x-ledger { border-top: 1px solid var(--ink); }
.x-note__sheet { background: var(--ivory-2); }
.x-note .x-tab { display: none; }
.x-close { background: var(--petrol); }
.x-close p { color: rgba(243,239,231,.72); }
.x-close__contact a { font-family: var(--f-display); font-weight: 400; font-stretch: normal; font-size: 1.5rem; }
.x-callout { background: var(--ivory-2); border-left: 2px solid var(--terra); }
.x-toc a.is-active .x-mono { color: var(--terra); }
.x-table th { background: var(--ivory-2); }

/* ---------- Pie ---------- */
.x-foot { background: var(--petrol); color: rgba(243,239,231,.62); }
.x-foot h3 { color: var(--stone); font-family: var(--f-text); font-weight: 500; letter-spacing: .2em; font-size: .7rem; }
.x-foot a { color: rgba(243,239,231,.86); }
.x-foot a:hover { color: var(--ivory); }
.x-foot__bottom { border-top-color: rgba(243,239,231,.1); color: rgba(243,239,231,.5); }
.x-foot__firm { border-top: 1px solid rgba(243,239,231,.1); }
.x-foot__firm .x-wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 2rem; padding-top: 1.6rem; padding-bottom: 1.6rem; }
.x-foot__firm p { margin: 0; font-family: var(--f-display); font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--ivory); font-weight: 300; }
.x-foot__firm p em { color: var(--stone); }

/* Móvil: el menú abierto también es petróleo */
@media (max-width: 991.98px) {
    .x-head.is-open .x-nav { background: var(--petrol); border-bottom-color: rgba(243,239,231,.12); }
    .x-head.is-open .x-nav > a, .x-head.is-open .x-nav__btn { border-bottom-color: rgba(243,239,231,.1); color: var(--ivory); }
    .x-brand__name { font-size: .64rem; letter-spacing: .2em; }
}

/* =========================================================================
   Portada (g-*)
   ========================================================================= */
.g-dark { background: var(--petrol); color: var(--ivory); }
.g-hero { position: relative; overflow: hidden; background: radial-gradient(80% 90% at 80% 10%, var(--petrol-3) 0%, var(--petrol) 58%); }
.g-hero__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.g-word { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.5rem, 5.5vw, 6rem); line-height: .9; letter-spacing: -.025em; text-transform: uppercase; margin: 0; color: var(--ivory); }
.g-word span { display: block; }
.g-word span:last-child { color: var(--stone); }
@media (prefers-reduced-motion: no-preference) {
    .g-word span { opacity: 0; transform: translateY(22px); animation: gIn 1.1s var(--ease-out) forwards; }
    .g-word span:nth-child(2) { animation-delay: .1s; }
    .g-word span:nth-child(3) { animation-delay: .2s; }
}
@keyframes gIn { to { opacity: 1; transform: none; } }
.g-endorse { margin: 1.6rem 0 0; font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(1.2rem, 1.8vw, 1.45rem); color: var(--stone); }
.g-endorse a, .x-site .g-endorse a { color: var(--ivory); text-decoration: none; border-bottom: 1px solid var(--terra-lt); }
.g-claim { margin: 1rem 0 2rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: rgba(243,239,231,.72); max-width: 32rem; }
.g-claim strong { color: var(--ivory); font-weight: 500; }
.g-actions { display: flex; flex-wrap: wrap; gap: .9rem 1rem; align-items: center; }
.g-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin-top: 2.2rem; font: 400 .72rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(243,239,231,.6); }
.g-meta i { display: inline-block; width: 7px; height: 7px; background: var(--terra-lt); margin-right: .55rem; vertical-align: 1px; }
.g-proof { border-top: 1px solid rgba(243,239,231,.12); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.4rem; padding: 1.2rem 0 1.6rem; }
.g-proof .x-cap { color: var(--stone); font-weight: 500; letter-spacing: .14em; }
.g-proof img { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: .75; }
.g-proof__item { display: inline-flex; align-items: center; gap: .55rem; color: rgba(243,239,231,.85); font-size: .92rem; }
.g-proof .x-stars { color: var(--ivory); }
.g-hero .x-map { position: relative; top: 0; }

/* Buscador «Find your route» */
.g-finder { background: var(--petrol); color: var(--ivory); border-top: 1px solid rgba(243,239,231,.1); padding: clamp(4rem, 8vw, 7rem) 0; scroll-margin-top: 76px; }
.g-finder__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.g-finder h2 { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.6rem, 5.6vw, 5rem); line-height: .96; letter-spacing: -.02em; }
.g-finder h2 em { color: var(--stone); }
.g-finder__intro { color: rgba(243,239,231,.68); margin: 0; }
.g-rail { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-bottom: 2rem; font: 400 .68rem var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(243,239,231,.32); }
.g-rail span { display: inline-flex; align-items: center; gap: .6rem; transition: color .4s; }
.g-rail span::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.g-rail span.is-on { color: var(--ivory); }
.g-q__label { display: flex; justify-content: space-between; gap: 1rem; font: 400 .72rem var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: rgba(243,239,231,.6); margin-bottom: 1rem; }
.g-opts { border-top: 1px solid rgba(243,239,231,.14); }
.g-opt { width: 100%; display: grid; grid-template-columns: 4rem minmax(0, 1fr) 2rem; align-items: center; text-align: left; background: none; border: 0; border-bottom: 1px solid rgba(243,239,231,.14); color: var(--ivory); padding: 1.35rem 0; cursor: pointer; position: relative; overflow: hidden; font-family: var(--f-display); font-weight: 300; font-size: clamp(1.6rem, 3.2vw, 2.9rem); line-height: 1.05; letter-spacing: -.01em; }
.g-opt small { font: 400 .72rem var(--f-mono); letter-spacing: .18em; color: rgba(243,239,231,.5); }
.g-opt__d { display: block; font-family: var(--f-text); font-size: .95rem; line-height: 1.4; letter-spacing: 0; color: rgba(243,239,231,.6); margin-top: .45rem; }
.g-opt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(158,63,50,.22), transparent 60%); transform: translateX(-101%); transition: transform .6s var(--ease-out); pointer-events: none; }
.g-opt:hover::after, .g-opt:focus-visible::after { transform: none; }
.g-opt .x-ico { width: 1.6rem; height: 1.6rem; opacity: .5; transition: transform .45s var(--ease-out), opacity .3s; }
.g-opt:hover .x-ico { transform: translateX(6px); opacity: 1; }
.g-back { background: none; border: 0; color: rgba(243,239,231,.6); font: 400 .72rem var(--f-mono); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; padding: 0; }
.g-back:hover { color: var(--ivory); }
.g-result { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.g-dossier { border: 1px solid rgba(243,239,231,.16); background: var(--petrol-2); }
.g-dossier__top { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.2rem; border-bottom: 1px solid rgba(243,239,231,.14); font: 400 .68rem var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(243,239,231,.6); }
.g-dossier h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.02; padding: 1.4rem 1.2rem .4rem; margin: 0; }
.g-dossier__sub { padding: 0 1.2rem 1.3rem; color: rgba(243,239,231,.7); margin: 0; }
.g-dossier dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid rgba(243,239,231,.14); }
.g-dossier dl div { padding: .95rem 1.2rem; border-bottom: 1px solid rgba(243,239,231,.14); }
.g-dossier dl div:nth-child(odd) { border-right: 1px solid rgba(243,239,231,.14); }
.g-dossier dt { font: 400 .66rem var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(243,239,231,.55); margin-bottom: .35rem; }
.g-dossier dd { margin: 0; font-size: .98rem; line-height: 1.4; }
.g-dossier__more { display: inline-block; margin: 1rem 1.2rem 1.2rem; }
.x-site .g-dossier__more { color: var(--ivory); }
.g-steps { list-style: none; padding: 0; margin: 0 0 1.8rem; border-left: 1px solid rgba(243,239,231,.2); }
.g-steps li { position: relative; padding: 0 0 1.4rem 1.6rem; color: rgba(243,239,231,.62); font-size: .98rem; }
.g-steps li b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; color: var(--ivory); margin-bottom: .2rem; }
.g-steps li::before { content: ""; position: absolute; left: -4px; top: .55rem; width: 7px; height: 7px; background: var(--ivory); }
.g-steps li:first-child::before { background: var(--terra-lt); }
.g-who { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.5rem; color: rgba(243,239,231,.68); font-size: .92rem; }
.g-who__faces { display: flex; }
.g-who__faces span, .g-who__faces img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--petrol); margin-right: -10px; object-fit: cover; background: var(--petrol-3); color: var(--stone); display: grid; place-items: center; font: 500 .72rem var(--f-text); }
.g-fade { animation: gFade .6s var(--ease-out); }
@keyframes gFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Caminos (catálogo) */
.g-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.g-path { padding: 1.6rem 1.6rem 1.8rem 0; border-bottom: 1px solid var(--hair); }
.g-path + .g-path { padding-left: 1.6rem; border-left: 1px solid var(--hair); }
.g-path:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.g-path__k { font: 400 .7rem var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.g-path h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.85rem; line-height: 1.05; margin: .5rem 0 .6rem; }
.g-path p { color: var(--ink-2); font-size: .95rem; margin-bottom: 1rem; }
.g-path ul { list-style: none; padding: 0; margin: 0; }
.g-path li a { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--hair); text-decoration: none; color: var(--ink); font-size: .98rem; }
.g-path li a:hover { color: var(--terra); }
.g-path li a .x-ico { color: var(--ink-3); }

/* Proceso: línea de progreso */
.g-process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem; position: relative; }
.g-process::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--ink); }
.g-process li { position: relative; padding-top: 2rem; }
.g-process li::before { content: ""; position: absolute; top: 3px; left: 0; width: 9px; height: 9px; background: var(--ink); }
.g-process li:first-child::before { background: var(--terra); }
.g-process .x-mono { color: var(--ink-3); }
.g-process h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.55rem; margin: .4rem 0 .5rem; }
.g-process p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* Equipo */
.g-team { padding: clamp(4rem, 8vw, 7rem) 0; }
.g-team h2 { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1; letter-spacing: -.02em; max-width: 52rem; }
.g-team h2 em { color: var(--stone); }
.g-team__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3.5fr) minmax(0, 3.5fr); gap: clamp(1.2rem, 2.4vw, 2rem); align-items: end; margin-top: 3rem; }
.g-person figure { margin: 0; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(160deg, var(--petrol-3), var(--petrol-2)); border: 1px solid rgba(243,239,231,.12); display: grid; place-items: center; }
.g-person img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: grayscale(.2) contrast(1.03); }
.g-person__ini { font-family: var(--f-display); font-weight: 300; font-size: clamp(3rem, 6vw, 5rem); color: rgba(243,239,231,.22); letter-spacing: .02em; }
.g-person h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; margin: 1rem 0 .2rem; color: var(--ivory); }
.g-person p { margin: 0; color: rgba(243,239,231,.62); font-size: .92rem; }
.g-person__tag { display: inline-block; margin-top: .8rem; padding-top: .55rem; border-top: 1px solid var(--terra-lt); font: 400 .66rem var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--stone); }

/* Banda de la firma */
.g-firm { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; background: var(--ivory); color: var(--petrol); padding: clamp(1.8rem, 4vw, 3.4rem); margin-top: clamp(3rem, 6vw, 5rem); }
.g-firm__mark { width: 104px; height: 104px; border: 1px solid var(--petrol); display: grid; place-items: center; font-family: var(--f-display); font-weight: 300; font-size: 2.6rem; letter-spacing: .06em; }
.g-firm__k { font: 500 .7rem var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.g-firm h2 { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1; margin: .5rem 0 .8rem; color: var(--petrol); }
.g-firm p { margin: 0; max-width: 40rem; color: var(--ink-2); }

/* Cierre con formulario */
.g-close { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }

@media (max-width: 991.98px) {
    .g-hero__in, .g-finder__head, .g-result, .g-close { grid-template-columns: 1fr; }
    .g-paths { grid-template-columns: 1fr; }
    .g-path, .g-path + .g-path { padding-left: 0; border-left: 0; }
    .g-process { grid-template-columns: 1fr; }
    .g-process::before { left: 4px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
    .g-process li { padding: 0 0 0 1.8rem; }
    .g-team__grid { grid-template-columns: 1fr 1fr; }
    .g-team__grid .g-person:first-child { grid-column: 1 / -1; }
    .g-firm { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .g-opt { grid-template-columns: 2.6rem minmax(0, 1fr) 1.6rem; }
    .g-dossier dl { grid-template-columns: 1fr; }
    .g-dossier dl div:nth-child(odd) { border-right: 0; }
}

/* Pestañas de grupo en contorno: sin bloques de color */
.x-tab, .x-site a.x-tab, .x-site a.x-tab:hover { background: transparent; color: inherit; border: 1px solid currentColor; opacity: .85; }
.x-tab:hover, .x-tab[aria-selected="true"] { opacity: 1; background: rgba(158,63,50,.12); }
.x-hubhead .x-tab, .x-cover__tabs .x-tab { color: var(--ivory); }
.x-stack .x-tab { color: var(--ink); }
/* Catálogo: carpetas sin marco oscuro, solo filete */
.x-cabinet__panel { background: transparent; padding: 0; border-top: 1px solid var(--ink); }
.x-cabinet__sheet { background: transparent; padding: 1.6rem 0 0; }

/* Confianza: precios, promesas, respuesta en 24 h */
.g-path li a { align-items: baseline; }
.g-path__fee { flex: none; font: 400 .72rem var(--f-mono); letter-spacing: .04em; color: var(--ink-3); white-space: nowrap; }
.g-path li a:hover .g-path__fee { color: var(--terra); }
.x-fact--fee .x-fact__v { font-size: 1.05rem; }
.x-fact--fee .x-label { color: var(--terra) !important; }
.x-reply-promise { margin: .7rem 0 0; font-size: .85rem; color: var(--ink-3); text-align: center; }
.g-promise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.g-promise li { padding: 1.4rem 1.4rem 1.6rem 0; border-bottom: 1px solid var(--hair); }
.g-promise li + li { padding-left: 1.4rem; border-left: 1px solid var(--hair); }
.g-promise li:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.g-promise .x-mono { color: var(--terra); }
.g-promise h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; margin: .4rem 0 .4rem; }
.g-promise p { margin: 0; color: var(--ink-2); font-size: .96rem; }
.g-promise__no { margin-top: 2.2rem; padding: 1.6rem 1.8rem; background: var(--ivory-2); border-left: 2px solid var(--terra); max-width: 60rem; }
.g-promise__no h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; margin: 0 0 .5rem; }
.g-promise__no p { color: var(--ink-2); }
@media (max-width: 991.98px) { .g-promise { grid-template-columns: 1fr; } .g-promise li, .g-promise li + li { padding-left: 0; border-left: 0; } }

/* Reseñas: nota agregada de Google, sin citar clientes */
.g-reviews { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; border-top: 1px solid var(--ink); padding-top: 2rem; }
.g-reviews__score { margin: 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(4.5rem, 10vw, 8rem); line-height: .9; }
.g-reviews__of { font-size: .3em; color: var(--ink-3); margin-left: .2em; }
.g-reviews p { max-width: 40rem; }
.g-reviews__note { font-size: .9rem; color: var(--ink-3); }
@media (max-width: 575.98px) { .g-reviews { grid-template-columns: 1fr; } }

/* Contraste AA tras auditoría */
:root { --ink-3: #4c585d; }
.g-rail { color: rgba(243,239,231,.55); }
.x-sec .x-h2 em, .g-promise h2 em { color: var(--ink-3); }
.g-dark h2 em, .g-finder h2 em, .x-cover h1 em, .g-team h2 em { color: var(--stone); }
.cookie-banner { background: var(--petrol) !important; border-top: 1px solid rgba(243,239,231,.15); }
.x-site a.cookie-banner__link, .x-site a.cookie-banner__link:hover { color: var(--ivory); }
.cookie-banner__btn { font-family: var(--f-text) !important; font-stretch: normal !important; text-transform: none !important; font-weight: 500 !important; }

/* Fondos oscuros heredados (contacto, cierre): texto y enlaces en marfil */
.x-board { background: var(--petrol); background-image: radial-gradient(80% 90% at 85% 0%, var(--petrol-3) 0%, var(--petrol) 60%); color: var(--ivory); }
.x-board .x-hero__lead { color: rgba(243,239,231,.78); }
.x-board .x-page__title { margin-bottom: 1.4rem; }
.x-site .x-board .x-close__contact a, .x-site .x-close .x-close__contact a { color: var(--ivory); }
.x-board .x-mono { color: var(--stone) !important; }
/* El sello «pendiente de registro» era del diseño anterior */
.x-folio__head .x-stamp { display: none; }
.x-done .x-stamp { border-color: var(--terra); color: var(--terra); }

/* ── Mapa integrado en la página, sin recuadro (decisión de David, 03/10/2026) ── */
.x-map {
    --m-ink: var(--petrol); --m-stone: var(--ink-3); --m-acc: var(--terra);
    --m-line: rgba(7,22,27,.14); --m-bg: var(--ivory);
    --m-dot: rgba(7,22,27,.32); --m-nb: rgba(7,22,27,.045); --m-grid: rgba(7,22,27,.07); --m-coast: rgba(7,22,27,.7);
    background: none; border: 0; padding: 0; overflow: visible; color: var(--m-ink);
}
.x-sec--folio .x-map { --m-bg: var(--ivory-2); }
.g-dark .x-map, .g-hero .x-map, .x-cover .x-map {
    --m-ink: var(--ivory); --m-stone: var(--stone); --m-acc: var(--terra-lt);
    --m-line: rgba(243,239,231,.14); --m-bg: var(--petrol);
    --m-dot: rgba(243,239,231,.38); --m-nb: rgba(243,239,231,.035); --m-grid: rgba(243,239,231,.07); --m-coast: rgba(243,239,231,.8);
}
.x-map::before, .x-map::after { display: none; }
.x-map__hud { padding: 0 0 .6rem; }
.x-map__readout { padding: .7rem 0 0; }
.x-map__dotfill { fill: var(--m-dot); }
.x-map__nb { fill: var(--m-nb); }
.x-map__grid { stroke: var(--m-grid); }
.x-map__coast { stroke: var(--m-coast); }
.x-map__inset rect { fill: none; stroke: var(--m-line); }
.x-map:not(.g-dark .x-map):not(.g-hero .x-map) .x-map__coast { filter: none; }
.x-map__city text { stroke: var(--m-bg); }

/* Mapa más grande (03/10/2026) */
.g-hero__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.g-word { font-size: clamp(2.5rem, 4.7vw, 5.2rem); }
.x-local { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.x-local--hub { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
@media (max-width: 991.98px) { .g-hero__in, .x-local, .x-local--hub { grid-template-columns: 1fr; } }
.x-map svg { color: var(--m-ink); }
.x-map__city text { fill: var(--m-stone); }
.x-map__city:hover text, .x-map__city:focus text, .x-map__city.is-hover text, .x-map__city.is-on text { fill: var(--m-ink); }
.x-map__node { fill: var(--m-ink); }
.x-map__ring, .x-map__pulse { stroke: var(--m-ink); }
/* En fondo claro: sin barrido ni países vecinos (dejaban bloques grises) */
.x-map:not(.g-dark .x-map):not(.g-hero .x-map) .x-map__scan,
.x-map:not(.g-dark .x-map):not(.g-hero .x-map) .x-map__nb { display: none; }

/* ── Primera vista centrada en el cliente, con persona real (04/10/2026) ── */
.g-hero__in--photo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
.g-kick { font: 500 .74rem var(--f-text); letter-spacing: .22em; text-transform: uppercase; color: var(--stone); margin: 0 0 1.4rem; }
.g-kick span { margin: 0 .4rem; }
.g-kick em { font-family: var(--f-display); font-style: italic; text-transform: none; letter-spacing: .01em; font-size: 1.05rem; color: var(--ivory); }
.g-kick em a, .x-site .g-kick em a { color: var(--ivory); text-decoration: none; border-bottom: 1px solid var(--terra-lt); }
.g-h1 { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.6rem, 5.4vw, 5.2rem); line-height: 1; letter-spacing: -.02em; margin: 0; color: var(--ivory); max-width: 16ch; }
.g-h1 em { font-style: italic; color: var(--stone); }
.g-portrait { margin: 0; position: relative; }
.g-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; filter: grayscale(.12) contrast(1.03); }
.g-portrait figcaption { margin-top: .8rem; font-size: .88rem; color: rgba(243,239,231,.72); border-left: 2px solid var(--terra-lt); padding-left: .8rem; }
.g-cover-map { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.g-cover-map .x-map { position: relative; top: 0; max-width: 720px; justify-self: end; width: 100%; }
.g-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.g-case { border-top: 1px solid var(--ink); padding-top: 1rem; }
.g-case__k { font-family: var(--f-display); font-size: 1.35rem; margin-bottom: .8rem; }
.g-case dt { font: 500 .7rem var(--f-text); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.g-case dd { margin: 0 0 .8rem; color: var(--ink-2); }
.x-mega__all { display: flex; flex-wrap: wrap; gap: .6rem 2rem; }
@media (max-width: 991.98px) {
    .g-hero__in--photo, .g-cover-map { grid-template-columns: 1fr; }
    .g-portrait { max-width: 420px; }
}
@media (max-width: 575.98px) { .g-portrait { max-width: 260px; } }
.g-h1 + .g-claim { margin-top: 1.4rem; }
