/* nataliasikora · sistema común: lámina de filetes con la marca Natalia Sikora.
   Sikora Display en titulares y rótulos, en caja alta y baja salvo firma y rótulos;
   Instrument Sans en texto, botones y datos (fonts/local.css).
   Cada color sale de los cinco de marca. Las láminas redefinen las mismas variables,
   así el marcado y sitio.js no cambian. */

:root {
    --menta: #A2C1B1;
    --burdeos: #5A030B;
    --negro: #0E0E0E;
    --marfil: #E7DED6;
    --oro: #C39A4E;

    /* Lámina general: menta, tinta negra, acentos burdeos */
    --paper: var(--menta);
    --paper-2: #B7CFC2;
    --paper-3: #C5D6CB;
    --ink: var(--negro);
    --ink-2: #18201C;
    --mute: #2F3D36;
    --unlit: #3B4C43;
    --line: rgba(14, 14, 14, 0.36);
    --line-soft: rgba(14, 14, 14, 0.18);
    --gold: var(--burdeos);
    --gold-2: var(--negro);
    --green: var(--burdeos);
    --green-2: var(--negro);
    --panel: var(--menta);

    /* Láminas de dibujo (alzado, plano y arte de tarjetas): cambiar aquí los cambia juntos */
    --plano-fondo: var(--burdeos);
    --plano-trazo: var(--oro);
    --plano-fino: var(--marfil);
    --plano-acento: var(--marfil);
    --plano-cota: #E0D3C8;
    --plano-relleno: rgba(231, 222, 214, 0.07);
    --plano-muro: var(--oro);
    --arte-trazo: var(--ink-2);
    --arte-acento: var(--burdeos);

    --sans: 'Instrument Sans', Arial, sans-serif;
    --display: 'Sikora Display', Georgia, serif;
    --serif: 'Sikora Display', Georgia, serif;
    --mono: 'Instrument Sans', Arial, sans-serif;
    --gut: 8px;
    --head: 64px;
    /* Escala corta: etiqueta, pequeño, texto, lectura, entrada; tres niveles de h3 */
    --t-etiqueta: 13px;
    --tr-etiqueta: 0.06em;
    --t-peq: 15px;
    --t-texto: 17px;
    --t-lectura: 18px;
    --t-entrada: clamp(19px, 1.45vw, 21px);
    --t-h3-s: clamp(21px, 1.7vw, 26px);
    --t-h3: clamp(24px, 2vw, 28px);
    --t-h3-g: clamp(27px, 2.3vw, 34px);
    --pad: 28px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Lámina burdeos: alzado de portada, plano del método, cierre */
.ph-stage, .ph-plan-wrap, .ph-close {
    --paper: var(--burdeos);
    --paper-2: #6A0F17;
    --paper-3: #761A22;
    --ink: var(--marfil);
    --ink-2: var(--marfil);
    --mute: #E0D3C8;
    --unlit: #D6C8BC;
    --line: rgba(231, 222, 214, 0.34);
    --line-soft: rgba(231, 222, 214, 0.18);
    --gold: var(--oro);
    --gold-2: var(--marfil);
    --green: var(--oro);
    --green-2: var(--marfil);
    --panel: var(--burdeos);
    background-color: var(--paper);
    color: var(--ink);
}

/* Lámina negra: pie con oro */
.ph-foot {
    --paper: var(--negro);
    --paper-2: #1B1A18;
    --paper-3: #26241F;
    --ink: var(--marfil);
    --ink-2: var(--marfil);
    --mute: #C4BAB0;
    --line: rgba(195, 154, 78, 0.42);
    --line-soft: rgba(195, 154, 78, 0.22);
    --gold: var(--oro);
    --gold-2: var(--marfil);
    --green: var(--oro);
    --green-2: var(--marfil);
    --panel: var(--negro);
    color: var(--ink);
}

/* Lámina marfil: el texto largo se lee sobre papel (artículos, páginas legales, quiz, calculadoras, cookies, servicios, casos, equipo, lista del blog) */
.ph-header, .ph-menu, .ph-doc, .ph-legacy, .ph-body .cookie-consent, .ph-lam-marfil,
.ph-sec:has(> .ph-grid.c2 > .ph-service), .ph-sec:has(> .ph-method), .ph-sec:has(> .ph-cases), .ph-sec:has(> .ph-grid > .ph-person), .ph-sec:has(> .ph-posts), .ph-sec.ph-calc {
    --paper: var(--marfil);
    --paper-2: #DAD0C7;
    --paper-3: #CFC4BA;
    --ink: var(--negro);
    --ink-2: #1F1C19;
    --mute: #4F4841;
    --unlit: #4F4841;
    --line: rgba(14, 14, 14, 0.3);
    --line-soft: rgba(14, 14, 14, 0.16);
    --gold: var(--burdeos);
    --gold-2: var(--negro);
    --green: var(--burdeos);
    --green-2: var(--negro);
    --panel: #DAD0C7;
    --color-bg: var(--marfil);
    --color-surface: #DAD0C7;
    --color-text: var(--negro);
    --color-text-muted: #4F4841;
    --color-accent: var(--burdeos);
    --color-accent-2: var(--negro);
    --color-on-accent: var(--marfil);
    background-color: var(--paper);
    color: var(--ink);
}

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

html { font-synthesis: none; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 24px); }

body.ph-body {
    margin: 0;
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    font-size: var(--t-texto);
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
.ph-body::after { display: none !important; }
.ph-body ::selection { background: var(--green); color: var(--paper); }
.ph-body img { max-width: 100%; }
/* Ni Sikora Display ni la Instrument Sans alojada tienen cursiva: el énfasis va en color. */
.ph-body i, .ph-body cite, .ph-body address { font-style: normal; }
.ph-body em { font-style: normal; color: var(--gold); }
.ph-body ::placeholder { color: var(--mute); opacity: 1; }
.ph-body :is(code, kbd, samp, pre) { font-family: var(--mono); font-size: 0.94em; }
a { color: inherit; }
.ph-body :focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Lámina: los bloques llevan los filetes laterales */
.ph-header, .ph-main, .ph-foot {
    margin-left: var(--gut);
    margin-right: var(--gut);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

/* ---------- Cabecera ---------- */
.ph-header {
    position: sticky;
    top: 0;
    z-index: 80;
    display: flex;
    align-items: stretch;
    height: var(--head);
    margin-top: var(--gut);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}
.ph-header::before {
    content: '';
    position: absolute;
    left: -1px; right: -1px; bottom: 100%;
    height: calc(var(--gut) + 1px);
    background: var(--paper);
}
.ph-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
    margin-right: auto;
    min-width: 0;
    text-decoration: none;
    color: var(--ink);
}
.ph-mark { flex: none; display: block; width: auto; height: 38px; }
.ph-brand-txt { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; white-space: nowrap; }
.ph-brand-txt b { font-family: var(--display); font-weight: 400; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; }
.ph-brand-txt i {
    font-style: normal; font-size: var(--t-etiqueta); color: var(--mute); margin-top: 3px;
}
.ph-nav { display: flex; }
.ph-nav a, .ph-contact {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-left: 1px solid var(--line);
    font-size: var(--t-peq);
    font-weight: 400;
    color: var(--ink-2);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.ph-nav a::after {
    content: '';
    position: absolute;
    left: 20px; right: 20px; bottom: 16px;
    height: 1px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}
.ph-nav a:hover, .ph-nav a[aria-current="page"] { color: var(--ink); }
.ph-nav a:hover::after, .ph-nav a[aria-current="page"]::after { transform: scaleX(1); }
.ph-lang { display: flex; border-left: 1px solid var(--line); }
.ph-lang a {
    display: flex; align-items: center; justify-content: center;
    width: 50px;
    font-family: var(--mono);
    font-size: var(--t-etiqueta);
    color: var(--mute);
    text-decoration: none;
}
.ph-lang a + a { border-left: 1px solid var(--line-soft); }
.ph-lang a.is-on { color: var(--ink); background: var(--paper-2); }
.ph-contact { gap: 10px; background: var(--green); color: var(--paper); border-left-color: var(--green); }
.ph-contact:hover { background: var(--ink); color: var(--paper); }
.ph-burger { display: none; }

/* Menú móvil */
.ph-menu {
    position: fixed;
    inset: calc(var(--head) + var(--gut)) var(--gut) var(--gut);
    z-index: 79;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 0;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s 0.3s;
}
.ph-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s ease, transform 0.3s var(--ease); }
.ph-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 18px;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-size: 25px;
    font-weight: 400;
    letter-spacing: 0;
    text-decoration: none;
    color: var(--ink);
}
.ph-menu a span { font-family: var(--mono); font-size: var(--t-etiqueta); color: var(--mute); font-variant-numeric: tabular-nums; }
.ph-menu .ph-menu-cta { margin-top: auto; background: var(--green); color: var(--paper); border-bottom: 0; }
.ph-menu .ph-menu-cta span { color: var(--paper); }

/* ---------- Primitivas ---------- */
.ph-main { display: block; }
.ph-sec { position: relative; border-bottom: 1px solid var(--line); }
.ph-label {
    display: block;
    margin: 0;
    font-family: var(--sans);
    font-size: var(--t-etiqueta);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: var(--tr-etiqueta);
    text-transform: uppercase;
    color: var(--mute);
}
.ph-head {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 24px 48px;
    align-items: end;
    padding: 30px var(--pad) 40px;
    border-bottom: 1px solid var(--line);
}
.ph-head .ph-label { grid-column: 1 / -1; }
.ph-title {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(32px, 3.7vw, 60px);
    line-height: 1.1;
    letter-spacing: -0.005em;
    text-wrap: balance;
    color: var(--ink);
}
.ph-side { margin: 0; max-width: 30em; justify-self: end; font-size: var(--t-texto); font-weight: 400; color: var(--ink-2); }
.ph-h1-t { display: block; }

.ph-btn, .ph-btn-line {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 52px;
    padding: 10px 20px;
    font-family: var(--mono);
    font-size: var(--t-etiqueta);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--green);
    overflow: hidden;
    isolation: isolate;
    transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.ph-btn { background: var(--green); color: var(--paper) !important; }
.ph-btn-line { background: transparent; color: var(--ink) !important; border-color: var(--ink); }
.ph-btn::before, .ph-btn-line::before {
    content: '';
    position: absolute; inset: 0;
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s var(--ease);
}
.ph-btn::before { background: var(--ink); }
.ph-btn-line::before { background: var(--ink); }
.ph-btn:hover::before, .ph-btn-line:hover::before { transform: scaleY(1); }
.ph-btn:hover { border-color: var(--ink); }
.ph-btn-line:hover { color: var(--paper) !important; }
.ph-btn b, .ph-btn-line b { font-weight: 400; font-size: var(--t-texto); transition: transform 0.3s var(--ease); }
.ph-btn:hover b, .ph-btn-line:hover b { transform: translateX(4px); }

/* ---------- Portada: alzado ---------- */
.ph-stage {
    position: relative;
    height: clamp(420px, calc(100vh - var(--head) - 230px), 720px);
    overflow: hidden;
    cursor: crosshair;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    border-bottom: 1px solid var(--line);
}
.ph-ruler {
    position: absolute; left: 30px; right: 30px; height: 8px;
    background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10px);
    opacity: 0.8;
    pointer-events: none;
}
.ph-ruler.top { top: 12px; }
.ph-ruler.bot { bottom: 12px; }
.ph-plus { position: absolute; width: 11px; height: 11px; pointer-events: none; }
.ph-plus::before, .ph-plus::after { content: ''; position: absolute; background: var(--ink-2); }
.ph-plus::before { left: 5px; top: 0; width: 1px; height: 11px; }
.ph-plus::after { top: 5px; left: 0; height: 1px; width: 11px; }
.ph-plus.tl { left: 11px; top: 10px; } .ph-plus.tr { right: 11px; top: 10px; }
.ph-plus.bl { left: 11px; bottom: 10px; } .ph-plus.br { right: 11px; bottom: 10px; }

.ph-draw {
    position: absolute;
    left: 50%; top: 53%;
    width: min(1040px, calc(100% - 96px), calc((100% - 60px) * 1.923));
    aspect-ratio: 1000 / 520;
    transform: translate(-50%, -50%);
}
.ph-building { display: block; width: 100%; height: 100%; overflow: visible; }
.ph-building :is(line, rect, path, ellipse) {
    fill: none;
    stroke: var(--plano-trazo);
    stroke-width: 1.1;
    vector-effect: non-scaling-stroke;
}
.ph-building .t { stroke-width: 0.55; stroke: var(--plano-fino); }
.ph-building .g { fill: var(--plano-relleno); }
.ph-building .gr { stroke-width: 1.5; }
.ph-building .ck { stroke: var(--plano-acento); stroke-width: 1.3; }
.ph-building .sh { fill: url(#ph-hatch); stroke: none; }
.ph-building .dim line { stroke: var(--plano-cota); stroke-width: 0.55; }
.ph-building .dim text { fill: var(--plano-cota); font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; }
.ph-building pattern line { stroke: var(--plano-fino); stroke-width: 0.6; }

.ph-spot {
    position: absolute;
    width: 26px; height: 26px;
    margin: -13px 0 0 -13px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 3;
}
.ph-spot::before {
    content: '';
    position: absolute; left: 8px; top: 8px;
    width: 10px; height: 10px;
    background: var(--green);
    transition: transform 0.3s var(--ease);
}
.ph-spot::after { content: ''; position: absolute; inset: -10px; }
.ph-spot:hover::before, .ph-spot.is-hit::before { transform: scale(1.4); }
.ph-tag {
    position: absolute;
    left: 28px; top: 50%;
    transform: translate(-6px, -50%);
    padding: 8px 11px;
    background: var(--gold);
    color: var(--paper);
    font-family: var(--mono);
    font-size: var(--t-etiqueta);
    letter-spacing: var(--tr-etiqueta);
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.35s var(--ease), visibility 0s 0.25s;
}
.ph-spot.flip .ph-tag { left: auto; right: 28px; transform: translate(6px, -50%); }
.ph-spot:hover .ph-tag, .ph-spot:focus-visible .ph-tag, .ph-spot.is-hit .ph-tag {
    opacity: 1; visibility: visible; transform: translate(0, -50%);
    transition: opacity 0.25s ease, transform 0.35s var(--ease);
}
.ph-cross-v, .ph-cross-h, .ph-chip, .ph-box {
    position: absolute; left: 0; top: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: transform;
}
.ph-stage.is-live .ph-cross-v, .ph-stage.is-live .ph-cross-h, .ph-stage.is-live .ph-chip { opacity: 1; }
.ph-cross-v { width: 1px; height: 100%; background: rgba(195, 154, 78, 0.55); }
.ph-cross-h { height: 1px; width: 100%; background: rgba(195, 154, 78, 0.55); }
.ph-chip {
    display: flex;
    font-family: var(--mono);
    font-size: var(--t-etiqueta);
    letter-spacing: var(--tr-etiqueta);
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 4;
}
.ph-chip i { font-style: normal; padding: 6px 8px; color: var(--marfil); background: var(--negro); border: 1px solid var(--line-soft); }
.ph-chip b { font-weight: 700; padding: 6px 9px; color: var(--paper); background: var(--gold); }
.ph-chip b:empty { display: none; }
.ph-box {
    border: 1px solid var(--green);
    background: rgba(195, 154, 78, 0.12);
    z-index: 2;
}
.ph-stage.is-drag .ph-box { opacity: 1; transition: none; }
.ph-hint-m {
    display: none;
    position: absolute; left: 50%; bottom: 30px;
    transform: translateX(-50%);
    font-family: var(--mono); font-size: var(--t-etiqueta); font-weight: 700; letter-spacing: var(--tr-etiqueta); text-transform: uppercase;
    color: var(--mute);
    white-space: nowrap;
}

.ph-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) minmax(300px, 0.55fr);
}
.ph-h1 {
    margin: 0;
    padding: 26px var(--pad) 30px;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(36px, 3.5vw, 60px);
    line-height: 1.1;
    letter-spacing: -0.005em;
}
.ph-h1 .ph-label { margin-bottom: 18px; line-height: 1.5; color: var(--gold); }
.ph-lead {
    margin: 0;
    padding: 28px var(--pad);
    border-left: 1px solid var(--line);
    font-family: var(--sans);
    font-size: var(--t-entrada);
    line-height: 1.45;
    font-weight: 400;
    color: var(--gold);
}
.ph-ctas {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 24px 22px;
    border-left: 1px solid var(--line);
}
.ph-ctas .ph-btn { width: 100%; }
.ph-case { font-size: var(--t-peq); line-height: 1.4; color: var(--ink-2); text-decoration: none; }
.ph-case:hover { color: var(--green); }

/* Manifiesto */
.ph-manifesto { padding: 70px var(--pad) 64px; display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 2fr); gap: 40px; }
.ph-manifesto p {
    margin: 0;
    max-width: 24em;
    font-family: var(--serif);
    font-size: clamp(27px, 2.7vw, 44px);
    line-height: 1.22;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--ink);
}
.ph-manifesto p + p { margin-top: 0.7em; font-family: var(--sans); color: var(--ink-2); font-size: var(--t-entrada); line-height: 1.4; max-width: 34em; }
.ph-js .ph-words {
    background-image: linear-gradient(180deg, var(--ink) 0, var(--ink) var(--p, 0%), var(--unlit) var(--p, 0%), var(--unlit) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ph-creds {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0; padding: 0; list-style: none;
    border-top: 1px solid var(--line);
}
.ph-creds li {
    display: flex; align-items: center; gap: 14px;
    min-height: 88px;
    padding: 0 var(--pad);
    border-right: 1px solid var(--line);
    font-family: var(--sans); font-size: var(--t-etiqueta); font-weight: 700; line-height: 1.35; text-transform: uppercase; letter-spacing: var(--tr-etiqueta);
}
.ph-creds li:last-child { border-right: 0; }
.ph-creds li::before { content: ''; flex: none; width: 7px; height: 7px; background: var(--green); }

/* Celdas numeradas */
.ph-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ph-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ph-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ph-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.ph-grid > .ph-card:last-child { border-right: 0; }
a.ph-card:hover { background: var(--paper-2); }
.ph-card-top {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--line-soft);
}
.ph-card-art {
    display: block;
    width: 48%; max-width: 190px;
    margin: 34px auto 18px;
    fill: none;
    stroke: var(--arte-trazo);
    stroke-width: 1;
}
.ph-card-art * { vector-effect: non-scaling-stroke; }
.ph-card-art .a { stroke: var(--arte-acento); stroke-dasharray: 3 4; }
a.ph-card:hover .ph-card-art .a { animation: ph-dash 1.1s linear infinite; }
@keyframes ph-dash { to { stroke-dashoffset: -14; } }
.ph-card-body { padding: 4px 22px 26px; margin-top: auto; }
.ph-card h3 {
    margin: 0 0 12px;
    font-family: var(--serif);
    font-size: var(--t-h3);
    line-height: 1.16;
    font-weight: 400;
    letter-spacing: 0;
}
.ph-card p { margin: 0; font-size: var(--t-texto); font-weight: 400; color: var(--ink-2); }
.ph-card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.ph-card li {
    position: relative;
    padding: 9px 0 9px 18px;
    border-top: 1px solid var(--line-soft);
    font-size: var(--t-peq); font-weight: 400; color: var(--ink-2); line-height: 1.4;
}
.ph-card li::before { content: ''; position: absolute; left: 0; top: 17px; width: 6px; height: 1px; background: var(--ink-2); }
.ph-card-note {
    margin-top: auto;
    padding: 16px 22px 18px;
    border-top: 1px solid var(--line);
    font-size: var(--t-peq); font-weight: 400; color: var(--ink);
}
.ph-card-go {
    display: flex; justify-content: space-between;
    padding: 15px 22px 17px;
    border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: var(--t-etiqueta); font-weight: 700; letter-spacing: var(--tr-etiqueta); text-transform: uppercase;
    color: var(--green);
}
.ph-card-go b { font-weight: 400; transition: transform 0.3s var(--ease); }
a.ph-card:hover .ph-card-go b { transform: translateX(5px); }

/* Barra de «ver más» */
.ph-more { display: flex; justify-content: flex-end; padding: 18px var(--pad); border-top: 1px solid var(--line); }

/* Servicios: dos paneles grandes */
.ph-service .ph-card-art { width: 34%; max-width: 200px; margin: 34px auto 22px; }
.ph-service h3 { font-family: var(--display); font-weight: 400; font-size: var(--t-h3-g); line-height: 1.14; letter-spacing: 0; }

/* Método: plano fijo + pasos */
.ph-method { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.ph-plan-wrap { border-right: 1px solid var(--line); }
.ph-plan-pin {
    position: sticky;
    top: var(--head);
    height: calc(100vh - var(--head) - var(--gut));
    max-height: 760px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.ph-plan { width: 100%; max-width: 620px; height: auto; overflow: visible; }
.ph-plan :is(line, rect, path, circle) { fill: none; stroke: var(--plano-trazo); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ph-plan .wall { fill: var(--plano-muro); stroke: none; }
.ph-plan .t { stroke: var(--plano-fino); stroke-width: 0.6; }
.ph-plan .dim line { stroke: var(--plano-cota); stroke-width: 0.55; }
.ph-plan text { fill: var(--plano-cota); stroke: none; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; }
.ph-plan .pt { fill: var(--plano-acento); stroke: none; }
.ph-plan .shade { fill: url(#ph-hatch-p); stroke: none; }
.ph-plan pattern line { stroke: var(--plano-trazo); stroke-width: 0.5; }
.ph-plan .lyr { transition: opacity 0.7s ease, transform 0.7s var(--ease); }
.ph-js .ph-plan .lyr { opacity: 0; transform: translateY(6px); }
.ph-js .ph-plan .lyr.l1 { opacity: 1; transform: none; }
.ph-plan[data-step="2"] .l2, .ph-plan[data-step="3"] .l2, .ph-plan[data-step="4"] .l2, .ph-plan[data-step="5"] .l2,
.ph-plan[data-step="3"] .l3, .ph-plan[data-step="4"] .l3, .ph-plan[data-step="5"] .l3,
.ph-plan[data-step="4"] .l4, .ph-plan[data-step="5"] .l4,
.ph-plan[data-step="5"] .l5 { opacity: 1 !important; transform: none !important; }
.ph-plan-cap {
    position: absolute; left: 24px; bottom: 20px;
    font-family: var(--mono); font-size: var(--t-etiqueta); font-weight: 700; letter-spacing: var(--tr-etiqueta); text-transform: uppercase; color: var(--mute);
}
.ph-steps { margin: 0; padding: 0; list-style: none; }
.ph-step {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 62vh;
    padding: 40px var(--pad);
    border-bottom: 1px solid var(--line);
    transition: opacity 0.5s ease;
}
.ph-step:last-child { border-bottom: 0; }
.ph-js .ph-step :is(h3, p) { transition: color 0.5s ease; }
.ph-js .ph-step:not(.is-on) h3 { color: var(--mute); }
.ph-js .ph-step:not(.is-on) p { color: var(--mute); }
.ph-step .ph-label { margin-bottom: 18px; color: var(--green); }
.ph-step h3 { margin: 0 0 14px; font-family: var(--display); font-size: var(--t-h3-g); line-height: 1.14; font-weight: 400; letter-spacing: 0; }
.ph-step p { margin: 0; max-width: 30em; font-size: var(--t-texto); font-weight: 400; color: var(--ink-2); }

/* Casos: acordeón */
.ph-cases { margin: 0; padding: 0; list-style: none; }
.ph-case-i { border-bottom: 1px solid var(--line); }
.ph-case-i:last-child { border-bottom: 0; }
.ph-case-i summary {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 190px 40px;
    align-items: center;
    gap: 20px;
    padding: 24px var(--pad);
    list-style: none;
    cursor: pointer;
    transition: background-color 0.25s ease;
}
.ph-case-i summary::-webkit-details-marker { display: none; }
.ph-case-i summary:hover { background: var(--paper-2); }
.ph-case-i summary .n { font-family: var(--mono); font-size: var(--t-etiqueta); color: var(--mute); }
.ph-case-i summary h3 { margin: 0; font-family: var(--serif); font-size: var(--t-h3-s); line-height: 1.25; font-weight: 400; letter-spacing: 0; }
.ph-case-i summary .k { font-family: var(--mono); font-size: var(--t-etiqueta); font-weight: 700; letter-spacing: var(--tr-etiqueta); text-transform: uppercase; color: var(--green); }
.ph-case-i summary .x { position: relative; width: 16px; height: 16px; justify-self: end; }
.ph-case-i summary .x::before, .ph-case-i summary .x::after {
    content: ''; position: absolute; left: 0; top: 7.5px; width: 16px; height: 1px; background: var(--ink);
    transition: transform 0.35s var(--ease);
}
.ph-case-i summary .x::after { transform: rotate(90deg); }
.ph-case-i[open] summary .x::after { transform: rotate(0deg); }
.ph-case-body {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 230px;
    gap: 20px;
    padding: 0 var(--pad) 32px;
}
.ph-case-body > div { grid-column: 2; max-width: 46em; }
.ph-case-body p { margin: 0 0 14px; font-size: var(--t-texto); font-weight: 400; color: var(--ink-2); }
.ph-case-body .ph-btn-line { grid-column: 3; align-self: end; }

/* Equipo */
.ph-person { padding: 30px var(--pad) 34px; border-right: 1px solid var(--line); }
.ph-grid > .ph-person:last-child { border-right: 0; }
.ph-person .ph-label { color: var(--green); margin-bottom: 18px; }
.ph-person h3 { margin: 0 0 10px; font-family: var(--display); font-size: var(--t-h3-g); font-weight: 400; letter-spacing: 0; line-height: 1.12; }
.ph-person .cr { margin: 0 0 18px; font-family: var(--sans); font-size: var(--t-peq); font-weight: 700; line-height: 1.5; color: var(--mute); letter-spacing: 0; }
.ph-person p { margin: 0; max-width: 34em; font-size: var(--t-texto); font-weight: 400; color: var(--ink-2); }
.ph-person a { display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: var(--t-etiqueta); color: var(--green); text-transform: uppercase; letter-spacing: var(--tr-etiqueta); }

/* Honorarios */
.ph-tier { padding: 0; }
.ph-tier .ph-card-top .ph-label:last-child { color: var(--ink); }
.ph-tier .price {
    display: block;
    padding: 34px 22px 8px;
    font-family: var(--mono);
    font-size: clamp(28px, 2.4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}
.ph-tier.is-main { background: var(--paper-2); box-shadow: inset 0 3px 0 var(--green); }
.ph-tier .ph-card-body { margin-top: 0; padding-top: 18px; }

/* Blog en portada */
.ph-posts { margin: 0; padding: 0; list-style: none; }
.ph-posts a {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 40px;
    gap: 20px;
    align-items: center;
    padding: 22px var(--pad);
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    transition: background-color 0.25s ease, padding-left 0.35s var(--ease);
}
.ph-posts li:last-child a { border-bottom: 0; }
.ph-posts a:hover { background: var(--paper-2); }
.ph-posts .n { font-family: var(--mono); font-size: var(--t-etiqueta); color: var(--mute); }
.ph-posts .t { font-family: var(--serif); font-size: var(--t-h3-s); line-height: 1.3; font-weight: 400; letter-spacing: 0; }
.ph-posts .g { justify-self: end; color: var(--green); transition: transform 0.3s var(--ease); }
.ph-posts a:hover .g { transform: translateX(5px); }

/* Cierre */
.ph-close {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.62fr);
    gap: 40px;
    padding: 80px var(--pad) 74px;
    background-color: var(--panel);
    background-image: linear-gradient(90deg, #5A030B 0%, #5A030B 66%, rgba(90, 3, 11, 0.82) 80%, rgba(90, 3, 11, 0.62) 100%), url('/images/hero-bg.webp');
    background-size: auto 125%;
    background-position: right top 18%;
    background-repeat: no-repeat;
    color: var(--ink);
    border-bottom: 0;
}
.ph-close .ph-label { color: var(--gold); margin-bottom: 22px; }
.ph-close .ph-title { color: var(--ink); font-size: clamp(36px, 3.9vw, 70px); }
.ph-close p { margin: 0 0 12px; font-size: var(--t-lectura); font-weight: 400; color: var(--ink-2); max-width: 30em; }
.ph-close-r { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.ph-close .ph-btn { background: var(--gold); color: var(--paper) !important; border-color: var(--gold); }
.ph-close .ph-btn::before { background: var(--ink); }
.ph-close .ph-btn:hover { color: var(--paper) !important; border-color: var(--ink); }
.ph-close .ph-btn-line { color: var(--ink) !important; border-color: var(--ink); }
.ph-close .ph-btn-line::before { background: var(--ink); }
.ph-close .ph-btn-line:hover { color: var(--paper) !important; }

/* ---------- Páginas interiores ---------- */
.ph-page-head { padding: 34px var(--pad) 42px; border-bottom: 1px solid var(--line); }
.ph-page-head .ph-label { margin-bottom: 22px; }
.ph-page-head .ph-label a { color: inherit; text-decoration: none; }
.ph-page-head .ph-label a:hover { color: var(--green); }
.ph-page-head h1 {
    margin: 0;
    max-width: 18em;
    font-family: var(--display);
    font-size: clamp(34px, 4.2vw, 66px);
    line-height: 1.08;
    font-weight: 400;
    letter-spacing: -0.005em;
    text-wrap: balance;
}
.ph-page-head h1.is-long { font-size: clamp(29px, 3.1vw, 48px); line-height: 1.14; letter-spacing: 0; max-width: 24em; }
.ph-page-head .sub { margin: 22px 0 0; max-width: 36em; font-family: var(--sans); font-size: var(--t-entrada); line-height: 1.42; font-weight: 400; color: var(--gold); }

.ph-doc { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 2fr); border-bottom: 1px solid var(--line); }
.ph-doc-aside { border-right: 1px solid var(--line); }
.ph-doc-aside .in { position: sticky; top: calc(var(--head) + 24px); padding: 26px var(--pad); }
.ph-doc-aside .ph-label { margin-bottom: 12px; }
.ph-doc-aside p { margin: 0 0 22px; font-size: var(--t-peq); font-weight: 400; color: var(--ink-2); }
.ph-doc-aside .ph-btn { width: 100%; }
.ph-prose { padding: 34px var(--pad) 60px; max-width: 860px; }

.ph-prose h1 { display: none; }
.ph-prose h2, .ph-prose h3 { color: var(--ink); font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
.ph-prose h4 { color: var(--ink); font-family: var(--sans); font-weight: 700; }
.ph-prose h2 { margin: 2.2em 0 0.6em; font-size: clamp(24px, 2vw, 32px); line-height: 1.12; }
.ph-prose h3 { margin: 2em 0 0.55em; font-size: var(--t-h3-s); line-height: 1.2; }
.ph-prose h4 { margin: 1.4em 0 0.4em; font-size: var(--t-lectura); }
.ph-prose > :first-child, .ph-prose > :first-child > :first-child { margin-top: 0; }
.ph-prose p, .ph-prose li { font-size: var(--t-lectura); line-height: 1.65; font-weight: 400; color: var(--ink-2); }
.ph-prose p { margin: 0 0 1.05em; }
.ph-prose strong, .ph-prose b { color: var(--ink); font-weight: 700; }
.ph-prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ph-prose a:hover { color: var(--gold-2); }
.ph-prose ul, .ph-prose ol { margin: 0 0 1.3em; padding-left: 0; list-style: none; }
.ph-prose ol { counter-reset: li; }
.ph-prose ul li, .ph-prose ol li { position: relative; padding: 8px 0 8px 26px; border-top: 1px solid var(--line-soft); margin: 0; }
.ph-prose ul li::before { content: ''; position: absolute; left: 4px; top: 21px; width: 7px; height: 7px; background: var(--green); }
.ph-prose ol li { counter-increment: li; }
.ph-prose ol li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: 10px; font-family: var(--mono); font-size: var(--t-etiqueta); color: var(--mute); }
.ph-prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0 1.8em; font-size: var(--t-peq); font-variant-numeric: tabular-nums; }
.ph-prose th, .ph-prose td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink-2); }
.ph-prose th { font-family: var(--mono); font-size: var(--t-etiqueta); font-weight: 700; letter-spacing: var(--tr-etiqueta); text-transform: uppercase; color: var(--ink); border-bottom-color: var(--ink); }
.ph-prose .tw { overflow-x: auto; }
.ph-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.ph-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--green); }
.ph-prose .highlight-box, .ph-prose .blog-entry-highlight, .ph-prose .article-highlight, .ph-prose .article-quote {
    margin: 1.8em 0;
    padding: 20px 22px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-left: 2px solid var(--green);
    font-size: var(--t-texto); font-weight: 400; line-height: 1.6; color: var(--ink);
}
.ph-prose .data-box, .ph-prose .blog-article-data {
    margin: 1.6em 0;
    padding: 20px 22px;
    border: 1px solid var(--line);
    font-size: var(--t-texto); font-weight: 400; line-height: 1.6; color: var(--ink-2);
}
.ph-prose .faq-item { padding: 18px 0; border-top: 1px solid var(--line); }
.ph-prose .faq-item h4 { margin: 0 0 8px; }
.ph-prose .faq-item p { margin: 0; }
.ph-prose .article-source-link, .ph-prose .source-link {
    display: inline-block; margin: 0.4em 0 1.4em;
    font-family: var(--mono); font-size: var(--t-etiqueta); font-weight: 700; letter-spacing: var(--tr-etiqueta); text-transform: uppercase; text-decoration: none;
}
.ph-prose .article-source-link:hover, .ph-prose .source-link:hover { text-decoration: underline; }
.ph-prose .article-cta, .ph-prose a.blog-post-cta, .ph-prose .blog-post-cta a, .ph-prose a.cta-btn {
    display: inline-flex; align-items: center; gap: 14px;
    min-height: 50px; padding: 10px 20px;
    background: var(--green); color: var(--paper) !important;
    font-family: var(--mono); font-size: var(--t-etiqueta); font-weight: 700; line-height: 1.3; letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none;
    border: 0; cursor: pointer;
}
.ph-prose .article-cta:hover, .ph-prose a.blog-post-cta:hover, .ph-prose .blog-post-cta a:hover { background: var(--gold-2); }
.ph-prose a svg, .ph-prose button svg { width: 18px; height: 18px; flex: none; }
.ph-prose .blog-post-cta-section, .ph-prose .blog-cta-section, .ph-prose .article-cta-section {
    margin: 2.4em 0 1em; padding: 24px 22px; border: 1px solid var(--line); background: var(--paper-2);
}
.ph-prose .aviso-fiscal-blog { margin-top: 2.4em; padding-top: 18px; border-top: 1px solid var(--line); font-size: var(--t-peq); line-height: 1.55; color: var(--mute); }
.ph-prose .article-hero, .ph-prose .blog-back { display: none; }
.ph-prose img { height: auto; }

/* Blog: índice */
.ph-index-list { margin: 0; padding: 0; list-style: none; }

/* Calculadora de honorarios (página propia) */
.ph-calc { border-bottom: 1px solid var(--line); }
.ph-calc-step { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 2fr); border-bottom: 1px solid var(--line); }
.ph-calc-step > .ph-label { padding: 24px var(--pad); border-right: 1px solid var(--line); line-height: 1.5; }
.ph-calc-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ph-calc-opts button {
    min-height: 84px;
    padding: 16px 20px;
    border: 0;
    border-right: 1px solid var(--line-soft);
    background: transparent;
    color: var(--ink-2);
    font-family: var(--sans);
    font-size: var(--t-peq);
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.ph-calc-opts button:hover { background: var(--paper-2); color: var(--ink); }
.ph-calc-opts button.active { background: var(--gold); color: var(--paper); font-weight: 700; }
.ph-calc-out { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; }
.ph-calc-out > .ph-label { padding: 28px var(--pad); border-right: 1px solid var(--line); }
.ph-calc-out .v { padding: 22px var(--pad); font-family: var(--mono); font-size: clamp(28px, 2.8vw, 46px); font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: var(--gold); }
.ph-calc-out .ph-btn { margin: 0 var(--pad); }

/* Páginas heredadas (quiz, calculadoras): contenedor */
.ph-legacy { padding: 34px var(--pad) 60px; }

/* ---------- Pie ---------- */
.ph-foot { margin-bottom: var(--gut); border-bottom: 1px solid var(--line); }
.ph-foot .ph-label { color: var(--gold); }
.ph-foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.ph-foot-col { padding: 28px var(--pad) 32px; border-right: 1px solid var(--line); }
.ph-foot-col:last-child { border-right: 0; }
.ph-foot-col .ph-label { display: block; margin-bottom: 16px; }
.ph-foot-col > a, .ph-foot-col > span:not(.ph-label), .ph-foot-brand span { display: block; margin: 0 0 9px; font-size: var(--t-peq); font-weight: 400; color: var(--ink-2); text-decoration: none; }
.ph-foot-col a:hover { color: var(--green); }
.ph-foot-brand { display: flex; gap: 22px; align-items: flex-start; }
.ph-foot-brand img { flex: none; width: 104px; height: auto; }
.ph-foot-brand b { display: block; font-family: var(--display); font-size: 18px; font-weight: 400; line-height: 1.25; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; color: var(--gold); }
.ph-foot-brand span { font-size: var(--t-peq); color: var(--mute); }
.ph-foot-big a { font-size: var(--t-entrada); color: var(--ink); }
.ph-foot-legal { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 30px; padding: 22px var(--pad) 24px; }
.ph-foot-legal p { margin: 0; font-size: var(--t-peq); line-height: 1.55; color: var(--mute); max-width: 60em; }
.ph-foot-legal p strong { color: var(--ink-2); font-weight: 700; }
.ph-foot-legal .r { text-align: right; }
.ph-foot-legal .r a { color: var(--mute); }

/* ---------- Aviso de cookies ---------- */
.ph-body .cookie-consent {
    position: fixed;
    left: auto;
    right: calc(var(--gut) + 16px);
    bottom: calc(var(--gut) + 16px);
    z-index: 9999;
    display: block;
    max-width: 540px;
    padding: 0;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-top: 0;
    box-shadow: 0 18px 40px -20px rgba(14, 14, 14, 0.6);
    color: var(--ink);
    font-family: var(--sans);
}
.ph-body .cookie-consent[hidden] { display: none; }
.ph-body .cc-box { display: grid; grid-template-columns: 1fr auto; gap: 0; max-width: none; align-items: stretch; }
.ph-body .cc-title {
    grid-column: 1 / -1;
    margin: 0;
    padding: 9px 14px;
    background: var(--panel);
    color: var(--gold);
    font-family: var(--mono);
    font-size: var(--t-etiqueta);
    letter-spacing: var(--tr-etiqueta);
    text-transform: uppercase;
    white-space: normal;
}
.ph-body .cc-text { margin: 0; padding: 13px 14px; color: var(--ink-2); font-size: var(--t-peq); line-height: 1.5; min-width: 0; }
.ph-body .cc-text a { color: var(--green); }
.ph-body .cc-buttons { display: flex; flex-direction: column; gap: 0; border-left: 1px solid var(--line); }
.ph-body .cc-btn {
    flex: 1;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--mono);
    font-size: var(--t-etiqueta);
    letter-spacing: var(--tr-etiqueta);
    text-transform: uppercase;
    cursor: pointer;
}
.ph-body .cc-accept { background: var(--green); color: var(--paper); }
.ph-body .cc-accept:hover { background: var(--ink); }
.ph-body .cc-reject { border-top: 1px solid var(--line); }
.ph-body .cc-reject:hover { background: var(--paper); }

/* ---------- Entradas ---------- */
@media (prefers-reduced-motion: no-preference) {
    .ph-js .ph-h1-t { opacity: 0; transform: translateY(22px); transition: opacity 0.9s ease 0.2s, transform 1s var(--ease) 0.2s; }
    .ph-js .ph-h1-t.is-in { opacity: 1; transform: none; }
    .ph-js .ph-building :is(line, rect, path, ellipse):not(pattern *) { stroke-dasharray: var(--len, 2400); stroke-dashoffset: var(--len, 2400); }
    .ph-js .is-in .ph-building :is(line, rect, path, ellipse):not(pattern *) { stroke-dashoffset: 0; transition: stroke-dashoffset 1.7s cubic-bezier(0.45, 0, 0.2, 1) var(--d, 0s); }
    .ph-js .ph-building .sh, .ph-js .ph-building .g, .ph-js .ph-building .dim text { opacity: 0; transition: opacity 1s ease 1.4s; }
    .ph-js .is-in .ph-building .sh, .ph-js .is-in .ph-building .g, .ph-js .is-in .ph-building .dim text { opacity: 1; }
    .ph-js .ph-spot { opacity: 0; transition: opacity 0.5s ease 1.9s; }
    .ph-js .is-in .ph-spot { opacity: 1; }
    .ph-js .ph-rise { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.9s var(--ease); }
    .ph-js .ph-rise.is-in { opacity: 1; transform: none; }
}

/* ---------- Tableta ---------- */
@media (max-width: 1260px) {
    .ph-brand-txt { white-space: normal; }
    .ph-brand-txt b { white-space: nowrap; }
    .ph-brand-txt i { max-width: 190px; font-size: 12px; line-height: 1.2; }
}
@media (max-width: 1180px) {
    .ph-nav a { padding: 0 14px; font-size: var(--t-peq); }
    .ph-nav a::after { left: 14px; right: 14px; }
}
@media (max-width: 1060px) {
    :root { --pad: 22px; }
    .ph-nav, .ph-contact { display: none; }
    .ph-brand-txt i { max-width: none; }
    .ph-burger {
        display: flex; align-items: center; justify-content: center; gap: 10px;
        min-width: 110px; padding: 0 18px;
        border: 0; border-left: 1px solid var(--line);
        background: transparent; color: var(--ink);
        font-family: var(--mono); font-size: var(--t-etiqueta); font-weight: 700; letter-spacing: var(--tr-etiqueta); text-transform: uppercase;
        cursor: pointer;
    }
    .ph-burger i { position: relative; width: 16px; height: 9px; }
    .ph-burger i::before, .ph-burger i::after { content: ''; position: absolute; left: 0; width: 16px; height: 1px; background: var(--ink); transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
    .ph-burger i::before { top: 0; } .ph-burger i::after { top: 8px; }
    .ph-burger[aria-expanded="true"] i::before { top: 4px; transform: rotate(45deg); }
    .ph-burger[aria-expanded="true"] i::after { top: 4px; transform: rotate(-45deg); }
    .ph-stage { height: clamp(360px, 62vw, 580px); }
    .ph-draw { width: calc(100% - 44px); }
    .ph-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ph-h1 { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
    .ph-lead { border-left: 0; }
    .ph-manifesto { grid-template-columns: 1fr; gap: 26px; padding: 54px var(--pad) 50px; }
    .ph-creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ph-creds li:nth-child(2) { border-right: 0; }
    .ph-creds li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .ph-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ph-grid.c4 > .ph-card:nth-child(2) { border-right: 0; }
    .ph-grid.c4 > .ph-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .ph-grid:not(.c2):not(.c4) { grid-template-columns: 1fr; }
    .ph-grid:not(.c2):not(.c4) > .ph-card { border-right: 0; border-bottom: 1px solid var(--line); }
    .ph-grid:not(.c2):not(.c4) > .ph-card:last-child { border-bottom: 0; }
    .ph-method { grid-template-columns: 1fr; }
    .ph-plan-wrap { border-right: 0; border-bottom: 1px solid var(--line); position: sticky; top: var(--head); z-index: 2; background: var(--paper); }
    .ph-plan-pin { position: relative; top: 0; height: auto; padding: 18px 22px 34px; }
    .ph-plan { max-width: 440px; }
    .ph-step { min-height: 46vh; }
    .ph-case-i summary { grid-template-columns: 44px minmax(0, 1fr) 28px; }
    .ph-case-i summary .k { display: none; }
    .ph-case-body { grid-template-columns: 44px minmax(0, 1fr); }
    .ph-case-body .ph-btn-line { grid-column: 2; justify-self: start; }
    .ph-close { grid-template-columns: minmax(0, 1fr); padding: 60px var(--pad) 56px; background-image: linear-gradient(180deg, rgba(90, 3, 11, 0.86), rgba(90, 3, 11, 0.96)), url('/images/hero-bg-mobile.webp'); background-size: cover; background-position: center 20%; }
    .ph-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ph-foot-col:nth-child(2) { border-right: 0; }
    .ph-foot-col:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .ph-doc { grid-template-columns: minmax(0, 1fr); }
    .ph-doc-aside { border-right: 0; border-bottom: 1px solid var(--line); }
    .ph-doc-aside .in { position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 20px var(--pad); }
    .ph-doc-aside .in p { margin: 0; }
    .ph-calc-step, .ph-calc-out { grid-template-columns: 1fr; }
    .ph-calc-step > .ph-label, .ph-calc-out > .ph-label { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 16px var(--pad); }
    .ph-calc-out .ph-btn { margin: 0 var(--pad) 24px; }
}

/* ---------- Móvil ---------- */
@media (max-width: 720px) {
    :root { --gut: 6px; --pad: 16px; --t-lectura: 17px; --t-entrada: 18px; }
    body.ph-body { font-size: var(--t-texto); }
    .ph-brand { padding: 0 12px; gap: 10px; }
    .ph-mark { width: auto; height: 32px; }
    .ph-brand-txt { white-space: normal; }
    .ph-brand-txt b { font-size: 13.5px; letter-spacing: 0.05em; white-space: nowrap; }
    .ph-brand-txt i { font-size: 12px; line-height: 1.15; }
    .ph-lang a { width: 42px; }
    .ph-burger { min-width: 0; padding: 0 14px; }
    .ph-burger span { display: none; }
    .ph-stage { height: clamp(320px, 88vw, 440px); cursor: default; }
    .ph-draw { width: 140%; top: 44%; }
    .ph-hint-m { bottom: 26px; }
    .ph-ruler { left: 22px; right: 22px; }
    .ph-hint-m { display: block; }
    .ph-tag { white-space: normal; width: max-content; max-width: 52vw; }
    .ph-strip { grid-template-columns: 1fr; }
    .ph-h1 { padding: 22px var(--pad) 24px; font-size: clamp(28px, 8.4vw, 40px); }
    .ph-lead { padding: 18px var(--pad); border-bottom: 1px solid var(--line); }
    .ph-ctas { border-left: 0; padding: 18px var(--pad) 22px; }
    .ph-head { grid-template-columns: 1fr; gap: 16px; padding: 22px var(--pad) 28px; }
    .ph-side { justify-self: start; font-size: var(--t-peq); }
    .ph-title { font-size: clamp(27px, 7.8vw, 38px); }
    .ph-manifesto { padding: 40px var(--pad) 40px; }
    .ph-manifesto p { font-size: clamp(23px, 6.6vw, 30px); }
    .ph-creds li { min-height: 70px; padding: 0 var(--pad); gap: 10px; }
    .ph-grid.c2, .ph-grid.c4 { grid-template-columns: 1fr; }
    .ph-grid.c2 > *, .ph-grid.c4 > * { border-right: 0 !important; border-bottom: 1px solid var(--line); }
    .ph-grid.c2 > :last-child, .ph-grid.c4 > :last-child { border-bottom: 0; }
    .ph-card-top { padding: 14px var(--pad); }
    .ph-card-body, .ph-card-note, .ph-card-go { padding-left: var(--pad); padding-right: var(--pad); }
    .ph-card-art { width: 38%; margin: 26px auto 20px; }
    .ph-service { min-height: 0; }
    .ph-service .ph-card-art { width: 34%; margin: 28px auto 22px; }
    .ph-plan-pin { padding: 12px var(--pad) 26px; }
    .ph-plan { max-width: 300px; }
    .ph-plan-cap { left: var(--pad); bottom: 8px; }
    .ph-step { min-height: 38vh; padding: 30px var(--pad); }
    .ph-case-i summary { padding: 20px var(--pad); gap: 12px; grid-template-columns: 30px minmax(0, 1fr) 20px; }
    .ph-case-body { padding: 0 var(--pad) 26px; grid-template-columns: 1fr; }
    .ph-case-body > div, .ph-case-body .ph-btn-line { grid-column: 1; }
    .ph-person { padding: 26px var(--pad) 28px; }
    .ph-tier .price { padding: 26px var(--pad) 6px; }
    .ph-posts a { grid-template-columns: 30px minmax(0, 1fr) 20px; gap: 12px; padding: 18px var(--pad); }
    .ph-close { padding: 46px var(--pad) 44px; gap: 28px; }
    .ph-close .ph-title { font-size: clamp(27px, 8.6vw, 44px); }
    .ph-foot-grid { grid-template-columns: 1fr; }
    .ph-foot-col { border-right: 0 !important; border-bottom: 1px solid var(--line); padding: 22px var(--pad); }
    .ph-foot-col:last-child { border-bottom: 0; }
    .ph-foot-legal { grid-template-columns: 1fr; gap: 12px; padding: 18px var(--pad) 22px; }
    .ph-foot-legal .r { text-align: left; }
    .ph-page-head { padding: 24px var(--pad) 30px; }
    .ph-page-head h1 { font-size: clamp(29px, 8.4vw, 40px); }
    .ph-page-head h1.is-long { font-size: clamp(25px, 7vw, 32px); }
    .ph-page-head .sub { font-size: var(--t-lectura); }
    .ph-doc-aside .in { grid-template-columns: 1fr; }
    .ph-prose { padding: 24px var(--pad) 44px; }
    .ph-prose p, .ph-prose li { font-size: var(--t-texto); }
    .ph-prose { overflow-wrap: break-word; }
    .ph-prose table { display: block; overflow-x: auto; }
    .ph-legacy h1 { font-size: clamp(26px, 8vw, 40px) !important; overflow-wrap: break-word; hyphens: manual; }
    .ph-legacy h1.quiz-start-h1, .ph-legacy .quiz-start-h1 { font-size: clamp(19px, 5.8vw, 40px) !important; }
    .ph-legacy .btn-quiz-start { padding: 1rem 1.25rem; font-size: var(--t-peq); line-height: 1.3; letter-spacing: 0.06em; }
    .ph-body .cc-text { padding: 10px 12px; font-size: var(--t-peq); line-height: 1.4; }
    .ph-body .cc-btn { min-height: 42px; }
    .ph-calc-opts { grid-template-columns: 1fr; }
    .ph-calc-opts button { min-height: 58px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
    .ph-legacy { padding: 22px var(--pad) 40px; }
    .ph-body .cookie-consent { left: 6px; right: 6px; bottom: 6px; max-width: none; }
    .ph-body .cc-box { grid-template-columns: 1fr; }
    .ph-body .cc-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
    .ph-body .cc-buttons { flex-direction: row; border-left: 0; border-top: 1px solid var(--line); }
    .ph-body .cc-reject { border-top: 0; border-left: 1px solid var(--line); }
}

/* Normalización de páginas heredadas (quiz, calculadoras) */
.ph-legacy, .ph-legacy * { border-radius: 0 !important; box-shadow: none !important; text-shadow: none !important; }
.ph-legacy :is(h1, h2, h3) { font-weight: 400; text-transform: none; }
.ph-legacy :is(h1, h2, h3) { color: var(--ink) !important; }
.ph-legacy :is(input, select, textarea) { background: var(--paper-2) !important; border: 1px solid var(--line) !important; color: var(--ink) !important; font-size: 16px !important; }
.ph-legacy :is(input, select, textarea):focus { border-color: var(--green) !important; outline: 2px solid var(--green) !important; outline-offset: 1px; }
.ph-legacy button:disabled { opacity: 1 !important; background: var(--paper-2) !important; color: var(--mute) !important; border-color: var(--line) !important; cursor: not-allowed; }
.ph-body .ph-legacy .rv-error, .ph-body .ph-legacy #formError { color: var(--gold); font-weight: 700; }
.ph-legacy button:not([class*="opt"]), .ph-legacy .quiz-btn, .ph-legacy [class*="cta"] { background-image: none !important; }
.ph-legacy > .blog-post-page, .ph-legacy > main { margin-top: 0 !important; }
.ph-legacy .blog-back { display: none !important; }
.ph-legacy .rv-btn-primary, .ph-legacy button[type="submit"] { background: var(--green) !important; color: var(--paper) !important; border: 1px solid var(--green) !important; }
.ph-legacy .rv-btn-primary:hover { background: var(--ink) !important; }
.ph-body .ph-foot, .ph-body .ph-header { background-color: var(--paper); }
.ph-legacy .blog-post-cta { background: var(--gold) !important; color: var(--paper) !important; }
.ph-legacy .blog-post-cta:hover { background: var(--gold-2) !important; }

/* 320 px: el cargo cabe en dos líneas dentro de la cabecera */
@media (max-width: 340px) {
    .ph-brand { padding: 0 8px; gap: 8px; }
    .ph-mark { height: 28px; }
    .ph-lang a { width: 34px; }
    .ph-burger { padding: 0 10px; }
    .ph-legacy h1.quiz-start-h1 { font-size: var(--t-lectura) !important; }
}

/* ---------- Oficio: las páginas interiores hablan la misma marca ---------- */
/* Instrument Sans trae un espacio de 0,2 em: el punto medio se pegaba a las palabras. */
body.ph-body { word-spacing: 0.06em; }
body.ph-body { padding-bottom: 0; } /* styles.css reservaba sitio a una barra fija que ya no existe */
.ph-menu { bottom: 0; }

/* Titulares: Sikora Display lleva acentos altos (Ś, Ż), pide algo más de interlínea */
.ph-page-head h1 { line-height: 1.12; }
.ph-page-head h1.is-long { line-height: 1.16; }
.ph-prose h2 { line-height: 1.18; text-wrap: balance; }
.ph-prose h3 { line-height: 1.22; text-wrap: balance; }
:is(.ph-card h3, .ph-step h3, .ph-person h3, .ph-case-i summary h3, .ph-posts .t, .ph-legacy h1, .ph-legacy h2, .quiz-q-text) { text-wrap: balance; }
:is(.ph-prose p, .ph-prose li, .ph-page-head .sub, .ph-lead, .ph-side, .ph-case, .article-body-light, .rv-hint) { text-wrap: pretty; }
.ph-case { display: inline-block; padding: 4px 0; text-wrap: balance; }

/* Destacados de prosa: doble filete de libro en vez de caja con barra lateral */
.ph-prose :is(.highlight-box, .blog-entry-highlight, .article-highlight, .article-quote), .ph-prose blockquote {
    padding: 18px 2px;
    background: none;
    border: 0;
    border-top: 3px double var(--green);
    border-bottom: 3px double var(--green);
    font-size: var(--t-lectura);
}
.ph-prose :is(.highlight-box, .blog-entry-highlight, .article-highlight, .article-quote, .data-box, .blog-article-data, blockquote, .blog-post-cta-section, .blog-cta-section, .article-cta-section) > :last-child { margin-bottom: 0; }
.ph-prose :is(.blog-post-cta-section, .blog-cta-section, .article-cta-section) { background: none; }
.ph-prose :is(.article-source-link, .source-link) { padding: 5px 0; }
.ph-prose .aviso-no-asesor, .ph-prose p.aviso-no-asesor { font-size: var(--t-peq); line-height: 1.5; color: var(--mute); }
.ph-person a { margin-top: 10px; padding: 6px 0; }
.ph-calc .ph-label[style*="text-transform:none"], .ph-label[style*="text-transform:none"] { font-family: var(--sans); font-size: var(--t-peq); font-weight: 400; letter-spacing: 0 !important; line-height: 1.5; }

/* Aviso legal al final de artículos y calculadoras */
.ph-body .aviso-fiscal-blog {
    margin: 0;
    max-width: none;
    padding: 18px var(--pad) 22px;
    background: var(--marfil);
    border: 0;
    border-bottom: 1px solid var(--line);
    color: #4F4841;
    font-size: var(--t-peq);
    line-height: 1.55;
}
.ph-body .aviso-fiscal-blog strong { color: var(--negro); font-size: inherit; font-weight: 700; letter-spacing: 0; text-transform: none; }
.ph-body .ph-legacy .aviso-fiscal-blog {
    max-width: 732px;
    margin: 0 auto;
    padding: 18px 0 0;
    background: none;
    border: 0;
    border-top: 1px solid var(--line);
}

/* Contenedor heredado: conserva el aire de la base */
.ph-legacy > .blog-post-page { min-height: 0; }
.ph-legacy .article-body-light { font-size: var(--t-lectura); line-height: 1.65; color: var(--ink-2); }
.ph-legacy .blog-post-page h2 { line-height: 1.18; }

/* Calculadora */
.ph-legacy .calc-box { padding: clamp(20px, 3vw, 40px); margin: 2em 0; background: none; border: 1px solid var(--line); }
.ph-legacy .calc-step { border-bottom-color: var(--line-soft); }
.ph-legacy .calc-step-title { align-items: baseline; gap: 12px; color: var(--ink); font-family: var(--sans); font-size: var(--t-etiqueta); font-weight: 700; letter-spacing: var(--tr-etiqueta); line-height: 1.35; }
.ph-legacy .calc-step-title::before { width: auto; height: auto; background: none; border-radius: 0; box-shadow: none; color: var(--gold); font-size: var(--t-etiqueta); letter-spacing: var(--tr-etiqueta); }
.ph-legacy .rv-field label { color: var(--ink-2); font-size: var(--t-peq); }
.ph-legacy .rv-hint { color: var(--mute); line-height: 1.5; margin: 8px 0 0; }
.ph-legacy .rv-field input { padding: 12px 14px; min-height: 48px; }
.ph-legacy .rv-btn {
    min-height: 50px;
    padding: 10px 20px;
    font-size: var(--t-etiqueta);
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.3;
    text-align: left;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--ink);
    color: var(--ink);
    transition: color 0.25s ease, background-color 0.25s ease;
}
.ph-legacy .rv-btn:hover { background: var(--ink); color: var(--paper); }
.ph-legacy .rv-btn-primary { font-weight: 700; }
.ph-legacy .rv-btn-primary:hover { border-color: var(--ink) !important; }
.ph-legacy .calc-output {
    display: block;
    margin-top: 2em;
    padding: 22px 2px;
    text-align: left;
    background: none;
    border: 0;
    border-top: 3px double var(--green);
    border-bottom: 3px double var(--green);
}
.ph-legacy .calc-val { margin-top: 10px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.ph-legacy .rv-detail { color: var(--ink-2); line-height: 1.5; }
.ph-legacy .blog-post-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 52px;
    padding: 10px 20px;
    font-family: var(--mono);
    font-size: var(--t-etiqueta);
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.3;
    text-transform: uppercase;
    text-decoration: none;
}
.ph-legacy .blog-post-cta svg { flex: none; width: 18px; height: 18px; }

/* Quiz */
.ph-legacy .quiz-progress-bar { top: var(--head); background: var(--paper); border-bottom-color: var(--line-soft); }
.ph-legacy .quiz-progress-track { background: var(--line-soft); height: 2px; }
.ph-legacy .quiz-progress-label { color: var(--mute); font-size: var(--t-etiqueta); }
.ph-legacy .quiz-start-tag { padding: 0; background: none; border: 0; color: var(--gold); font-family: var(--sans); font-size: var(--t-etiqueta); font-weight: 700; letter-spacing: var(--tr-etiqueta); line-height: 1.4; }
.ph-legacy .quiz-start-h1 { line-height: 1.14; }
.ph-legacy .quiz-start-sub { color: var(--ink-2); font-size: var(--t-lectura); line-height: 1.6; text-wrap: pretty; }
.ph-legacy .quiz-disclaimer-box { background: none; border: 1px solid var(--line); color: var(--mute); font-size: var(--t-peq); line-height: 1.55; }
.ph-legacy .quiz-q-text { color: var(--ink); font-size: clamp(23px, 2.4vw, 30px); line-height: 1.22; margin-bottom: 10px; }
.ph-legacy .quiz-q-sub { color: var(--mute); font-size: var(--t-peq); }
.ph-legacy .quiz-opt { min-height: 54px; padding: 12px 16px; background: transparent; border: 1px solid var(--line); color: var(--ink-2); font-size: var(--t-texto); line-height: 1.4; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
@media (hover: hover) { .ph-legacy .quiz-opt:hover { background: var(--paper-2); border-color: var(--ink); } }
.ph-legacy .opt-dot { width: 16px; height: 16px; border: 1px solid var(--ink); }
.ph-legacy .quiz-opt.selected { background: var(--burdeos); border-color: var(--burdeos); color: var(--marfil); font-weight: 700; }
.ph-legacy .quiz-opt.selected .opt-dot { background: var(--marfil); border-color: var(--marfil); color: var(--burdeos); }
.ph-legacy :is(.btn-quiz-start, .btn-q-next, .btn-q-back, .btn-submit) {
    min-height: 52px;
    padding: 12px 26px;
    font-family: var(--mono);
    font-size: var(--t-etiqueta);
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.3;
    text-transform: uppercase;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.ph-legacy :is(.btn-quiz-start, .btn-q-next, .btn-submit):hover { background: var(--ink); color: var(--paper); transform: none; }
.ph-legacy .btn-q-back { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.ph-legacy .btn-q-back:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ph-legacy .form-group label { color: var(--ink-2); font-size: var(--t-peq); line-height: 1.4; }
.ph-legacy .result-badge { background: none; border: 1px solid var(--green); color: var(--gold); line-height: 1.4; }
.ph-legacy .result-title { line-height: 1.16; text-wrap: balance; }
.ph-legacy .result-body { color: var(--ink-2); text-wrap: pretty; }
.ph-legacy .result-wrap > div { padding: clamp(18px, 3vw, 30px) !important; background: none !important; border-color: var(--line) !important; }
.ph-legacy .result-wrap > div h3 { font-family: var(--display); font-size: var(--t-entrada) !important; line-height: 1.22; }
.ph-legacy .result-wrap > div ul { padding-left: 0 !important; list-style: none; color: var(--ink-2) !important; font-size: var(--t-peq) !important; line-height: 1.55 !important; }
.ph-legacy .result-wrap > div li { padding: 8px 0; border-top: 1px solid var(--line-soft); }

/* Página del método: pasos, equipo y contacto dentro de la prosa */
.process-number { color: var(--gold); font-family: var(--sans); font-size: var(--t-etiqueta); font-weight: 700; letter-spacing: var(--tr-etiqueta); }
.ph-prose .article-title { margin: 0 0 0.7em; font-size: clamp(27px, 2.4vw, 36px); line-height: 1.14; }
.team-role-tag { color: var(--gold); font-family: var(--sans); font-size: var(--t-etiqueta); font-weight: 700; letter-spacing: var(--tr-etiqueta); line-height: 1.4; text-transform: uppercase; }
.ph-prose .team-member-creds { color: var(--mute); font-size: var(--t-peq); line-height: 1.45; }
.ph-prose .process-contact-link { display: inline-block; padding: 4px 0; }

/* Honorarios: el filete del rótulo llega de arriba abajo */
.ph-calc-out { align-items: stretch; }
.ph-calc-out .v, .ph-calc-out .ph-btn { align-self: center; }
.ph-calc-out > .ph-label { display: flex; align-items: center; }

/* Aviso de cookies */
.ph-body .cookie-consent { border-top: 1px solid var(--line); }

/* Lateral de artículo en tableta: rótulo arriba, texto y botón en una línea */
@media (min-width: 721px) and (max-width: 1060px) {
    .ph-doc-aside .in .ph-label { grid-column: 1 / -1; margin: 0; }
    .ph-doc-aside .in .ph-btn { width: auto; white-space: nowrap; }
}

@media (max-width: 720px) {
    /* Pie: zona táctil de 44 px sin cambiar el ritmo */
    .ph-foot-col > a { display: flex; align-items: center; min-height: 44px; margin: 0; padding: 6px 0; line-height: 1.3; }
    .ph-foot-col .ph-label { margin-bottom: 6px; }
    /* Tablas de artículo: cada fila, una ficha con el rótulo de su columna (sitio.js pone data-label) */
    .ph-prose table.ph-apila { display: block; overflow: visible; margin: 1.2em 0 1.6em; border-bottom: 1px solid var(--ink); font-size: var(--t-peq); }
    .ph-apila :is(thead, tbody, tr, td, th) { display: block; }
    .ph-apila tr:first-child:has(th) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .ph-apila thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .ph-apila tr { padding: 12px 0 14px; border-top: 1px solid var(--ink); }
    .ph-prose .ph-apila td { padding: 7px 0 0; border: 0; line-height: 1.5; }
    .ph-prose .ph-apila td:first-child { padding-top: 0; color: var(--ink-2); }
    .ph-prose .ph-apila td:first-child:not(:has(strong)), .ph-prose .ph-apila td:first-child strong { display: block; margin-bottom: 2px; font-family: var(--display); font-size: var(--t-entrada); font-weight: 400; line-height: 1.22; color: var(--ink); }
    .ph-prose .ph-apila td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; color: var(--mute); font-size: var(--t-etiqueta); font-weight: 700; letter-spacing: 0.1em; line-height: 1.5; text-transform: uppercase; }
    .ph-legacy :is(.quiz-start-hero, .quiz-q-wrap, .quiz-form-wrap, .result-wrap, .quiz-bottom-nav) { padding-left: 0; padding-right: 0; }
    .ph-legacy .quiz-start-hero { padding-top: 10px; padding-bottom: 10px; }
    .ph-legacy .quiz-q-wrap, .ph-legacy .quiz-form-wrap, .ph-legacy .result-wrap { padding-top: 22px; }
    .ph-legacy .quiz-progress-bar { padding-left: 0; padding-right: 0; }
    .ph-legacy .btn-quiz-start { padding: 12px 18px; }
    .ph-legacy > .blog-post-page { padding-left: 0; padding-right: 0; }
    .ph-legacy .calc-box { padding: 18px var(--pad); margin-left: 0; margin-right: 0; }
    .ph-legacy .article-body-light { font-size: var(--t-texto); }
    .ph-body .cc-btn { min-height: 46px; }
    .ph-body .cookie-consent { bottom: calc(6px + env(safe-area-inset-bottom)); }
}

/* planos:inicio (generado por generar_planos.py; no editar a mano) */
.ph-stage, .ph-plan {
    --lam-fondo: var(--burdeos, #5A030B);
    --lam-oro: var(--oro, #C39A4E);
    --lam-marfil: var(--marfil, #E7DED6);
}
/* Alzado: jerarquía de grosores */
.ph-building :is(line, rect, path, ellipse) { stroke: var(--lam-oro); stroke-width: 0.95; stroke-linecap: round; stroke-linejoin: round; }
.ph-building .w { stroke-width: 1.5; }
.ph-building .gr { stroke-width: 2.2; }
.ph-building .t { stroke: var(--lam-oro); stroke-width: 0.6; }
.ph-building .o { stroke: var(--lam-oro); stroke-width: 0.42; }
.ph-building .ck { stroke: var(--lam-marfil); stroke-width: 1.2; }
.ph-building .g { fill: none; }
.ph-building .sh { fill: url(#ph-hatch); stroke: none; }
.ph-building pattern line { stroke: var(--lam-oro); stroke-width: 0.5; }
.ph-building .ej, .ph-building .dim line, .ph-building .dim path, .ph-building .dim ellipse { stroke: var(--lam-marfil); stroke-width: 0.6; }
.ph-building .dim text { fill: var(--lam-marfil); font-family: 'Instrument Sans', sans-serif; font-size: 12px; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.ph-building .dim .tit { font-family: 'Sikora Display', serif; font-size: 22px; letter-spacing: 0.08em; }
.ph-building .solo-m { display: none; }
/* non-scaling-stroke mide el trazo en pantalla: se da holgura al guion para que no falte el final */
@media (prefers-reduced-motion: no-preference) {
    .ph-js .ph-building :is(line, rect, path, ellipse):not(pattern *) { stroke-dasharray: calc(var(--len, 2400) * 1.25); stroke-dashoffset: calc(var(--len, 2400) * 1.25); }
    .ph-js .is-in .ph-building :is(line, rect, path, ellipse):not(pattern *) { stroke-dashoffset: 0; }
    .ph-js .ph-building .ej { transition-delay: 1.2s; }
}
/* Planta: muros en poché, cotas y rótulos en marfil */
.ph-plan :is(line, rect, path, circle) { stroke: var(--lam-oro); stroke-width: 0.9; stroke-linecap: round; }
.ph-plan .wall { fill: var(--lam-oro); stroke: none; }
.ph-plan .t { stroke: var(--lam-oro); stroke-width: 0.6; }
.ph-plan .o { stroke: var(--lam-oro); stroke-width: 0.4; }
.ph-plan .col { fill: var(--lam-oro); stroke: none; }
.ph-plan .pt { fill: var(--lam-marfil); stroke: none; }
.ph-plan .shade { fill: url(#ph-hatch-p); stroke: none; }
.ph-plan pattern line { stroke: var(--lam-oro); stroke-width: 0.45; }
.ph-plan .dim :is(line, path, circle) { stroke: var(--lam-marfil); stroke-width: 0.6; }
.ph-plan .dim .lleno { fill: var(--lam-marfil); stroke: none; }
.ph-plan .enf { stroke: var(--lam-marfil); stroke-width: 0.6; stroke-dasharray: 9 3 1.5 3; }
.ph-plan text { fill: var(--lam-marfil); font-family: 'Instrument Sans', sans-serif; font-size: 12px; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.ph-plan .tit { font-family: 'Sikora Display', serif; font-size: 18px; letter-spacing: 0.1em; }
.ph-plan .rot { font-family: 'Instrument Sans', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.04em; }
@media (max-width: 1180px) {
    .ph-building .dim text { font-size: 14px; }
    .ph-plan text { font-size: 17px; }
    .ph-plan .tit { font-size: 20px; }
    .ph-plan .rot { font-size: 17px; }
}
@media (max-width: 1000px) {
    .ph-building .dim text { font-size: 17px; }
}
@media (max-width: 760px) {
    .ph-building .sec, .ph-building .tn { display: none; }
    .ph-building .solo-m { display: inline; }
    .ph-building .dim .tit { font-size: 19px; }
    .ph-plan .sec { display: none; }
}
@media (max-width: 560px) {
    .ph-building .o { display: none; }
    .ph-building .dim text { font-size: 30.5px; }
    .ph-building .dim .pri { transform: translateY(10px); }
    .ph-building .dim .tit { font-size: 30.5px; letter-spacing: 0; transform: translateX(-70px); }
    .ph-plan .o { display: none; }
    .ph-plan text, .ph-plan .rot { font-size: 25px; }
    .ph-plan .tit { font-size: 25px; }
}
@media (max-width: 350px) {
    .ph-building .dim text { font-size: 36px; }
    .ph-building .dim .tit { display: none; }
    .ph-plan text, .ph-plan .rot, .ph-plan .tit { font-size: 28px; }
}
/* planos:fin */

/* ---------- Corrector: logo, láminas a sangre, palacio entero ---------- */
/* B1. Marca: lacre menta seguido de nombre y cargo del kit. Cabecera marfil para que el lacre se lea; altura de la base. */
:root { --head: 60px; }
.ph-header::before {
    top: calc(-1 * var(--gut) - 1px); bottom: 0; height: auto;
    left: calc(-1 * var(--gut) - 1px); right: calc(-1 * var(--gut) - 1px);
    z-index: -1;
    background:
        linear-gradient(var(--line), var(--line)) var(--gut) calc(var(--gut) + 1px) / 1px 100% no-repeat,
        linear-gradient(var(--line), var(--line)) calc(100% - var(--gut)) calc(var(--gut) + 1px) / 1px 100% no-repeat,
        var(--marfil);
}
.ph-header { background: var(--marfil); }
.ph-logo { display: block; flex: none; width: 268px; height: auto; }
.ph-brand { padding: 0 18px 0 14px; gap: 12px; }
.ph-brand .ph-mark { display: block; flex: none; width: auto; height: 52px; }
.ph-brand-txt { display: none; }
.ph-foot-brand { flex-direction: column; gap: 26px; align-items: flex-start; }
.ph-foot-emblema { display: block; flex: none; width: 200px !important; height: auto; }
.ph-foot-brand img.ph-foot-logo { display: block; width: min(300px, 100%); height: auto; }
.ph-foot-emblema { margin-left: calc((min(300px, 100%) - 200px) / 2); }
.ph-foot-brand > div { display: none; }
.ph-foot-grid { grid-template-columns: minmax(356px, 1.3fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 1060px) { .ph-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .ph-foot-grid { grid-template-columns: minmax(0, 1fr); } }
/* Móvil estrecho: lacre y nombre en una línea, cargo en la suya, a todo el ancho */
@media (max-width: 520px) {
    :root { --head: 74px; }
    .ph-logo { display: none; }
    .ph-header { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: 46px minmax(0, 1fr); }
    .ph-brand { grid-column: 1 / -1; grid-row: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 46px minmax(0, 1fr); gap: 0 9px; padding: 0; margin: 0; align-items: center; }
    .ph-brand .ph-mark { display: block; grid-row: 1; grid-column: 1; height: 42px; margin-left: 10px; }
    .ph-brand-txt { display: contents; }
    .ph-brand-txt b { grid-row: 1; grid-column: 2; font-size: 15px; letter-spacing: 0.06em; white-space: nowrap; }
    .ph-brand-txt i { grid-row: 2; grid-column: 1 / -1; align-self: stretch; display: flex; align-items: center; margin: 0; padding: 0 12px; max-width: none; border-top: 1px solid var(--line-soft); font-size: var(--t-etiqueta); line-height: 1.2; color: var(--ink-2); white-space: nowrap; }
    .ph-lang { grid-column: 2; grid-row: 1; position: relative; z-index: 1; border-bottom: 1px solid var(--line-soft); }
    .ph-burger { grid-column: 3; grid-row: 1; position: relative; z-index: 1; border-bottom: 1px solid var(--line-soft) !important; }
}
@media (max-width: 360px) {
    .ph-brand-txt b { font-size: 14px; letter-spacing: 0.04em; }
    .ph-brand-txt i { padding: 0 8px; font-size: 12.5px; letter-spacing: -0.005em; }
    .ph-brand .ph-mark { margin-left: 6px; height: 38px; }
}

/* B4 e I11. Las láminas pintan también su medianil: la rejilla no se mueve y el filete del contenedor queda encima. */
.ph-doc, .ph-legacy, .ph-foot { position: relative; }
:is(.ph-doc, .ph-legacy, .ph-sec:has(> .ph-grid.c2 > .ph-service), .ph-sec:has(> .ph-method), .ph-sec:has(> .ph-cases), .ph-sec:has(> .ph-grid > .ph-person), .ph-sec:has(> .ph-posts), .ph-sec.ph-calc)::before {
    content: ''; position: absolute; top: 0; bottom: 0;
    left: calc(-1 * var(--gut) - 1px); right: calc(-1 * var(--gut) - 1px);
    z-index: -1; background: var(--marfil);
}
.ph-foot::before {
    content: ''; position: absolute; top: 0;
    left: calc(-1 * var(--gut) - 1px); right: calc(-1 * var(--gut) - 1px); bottom: calc(-1 * var(--gut) - 1px);
    z-index: -1; background: var(--negro);
}
/* B2. Cierre: su foto, con la composición de la base y veladura burdeos; el motivo, tono sobre tono en la parte lisa (I10) */
.ph-close { background: none; }
.ph-close::before {
    content: ''; position: absolute; top: 0; bottom: 0;
    left: calc(-1 * var(--gut) - 1px); right: calc(-1 * var(--gut) - 1px);
    z-index: -2;
    background-color: var(--burdeos);
    background-image: linear-gradient(90deg, #5A030B 0%, #5A030B 66%, rgba(90, 3, 11, 0.82) 80%, rgba(90, 3, 11, 0.62) 100%), url('/images/hero-bg.webp');
    background-size: auto, auto 125%;
    background-position: 0 0, right top 18%;
    background-repeat: no-repeat;
}
.ph-close::after {
    content: ''; position: absolute; top: 0; bottom: 0;
    left: calc(-1 * var(--gut) - 1px); width: 66%;
    z-index: -1;
    background: url('/images/marca/motivo-burdeos.svg') 0 42% / 1320px auto no-repeat;
    -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 72%, transparent 100%);
    pointer-events: none;
}
@media (max-width: 1060px) {
    .ph-close::before {
        background-image: linear-gradient(180deg, rgba(90, 3, 11, 0.86), rgba(90, 3, 11, 0.96)), url('/images/hero-bg-mobile.webp');
        background-size: auto, cover;
        background-position: 0 0, center 20%;
    }
    .ph-close::after { width: 100%; right: calc(-1 * var(--gut) - 1px); background-size: 900px auto; background-position: 0 30%; -webkit-mask-image: none; mask-image: none; opacity: 0.8; }
}

/* B3. El palacio cabe entero: el dibujo se limita por el alto real de la lámina, no solo por su ancho */
.ph-stage { container-type: size; }
.ph-draw { top: calc(50% + 8px); width: min(1040px, 100cqw - 96px, (100cqh - 56px) * 1.923); }
@media (max-width: 1060px) { .ph-draw { width: min(100cqw - 44px, (100cqh - 56px) * 1.923); } }
/* Cuando es el alto el que manda, la cota mantiene sus 12 px en pantalla */
@media (min-width: 1061px) and (max-height: 880px) { .ph-building .dim text { font-size: 13.5px; } .ph-building .dim .tit { font-size: 22px; } }
@media (min-width: 1061px) and (max-height: 800px) { .ph-building .dim text { font-size: 15px; } .ph-building .dim .tit { font-size: 24px; } }
@media (min-width: 1061px) and (max-height: 750px) { .ph-building .dim text { font-size: 17px; } .ph-building .dim .tit { font-size: 26px; } }
/* I9. Móvil: menos ancho para que no se corten las alas, trazo más fino */
@media (max-width: 720px) {
    .ph-draw { width: min(110%, (100cqh - 92px) * 1.923); top: 45%; }
}
@media (max-width: 560px) {
    .ph-building :is(line, rect, path, ellipse) { stroke-width: 0.6; }
    .ph-building .w { stroke-width: 0.85; }
    .ph-building .gr { stroke-width: 1.2; }
    .ph-building .t { stroke-width: 0.42; }
    .ph-building .ck { stroke-width: 0.9; }
    .ph-building .ej, .ph-building .dim line, .ph-building .dim path, .ph-building .dim ellipse { stroke-width: 0.45; }
}

/* Menores: botones en una línea si caben, zona táctil de 24 px */
.ph-btn, .ph-btn-line { gap: 14px; }
.ph-case-body .ph-btn-line span, .ph-more .ph-btn-line span, .ph-more .ph-btn span { white-space: nowrap; }
.ph-page-head .ph-label a, .ph-foot-legal .r a { display: inline-block; padding: 3px 0; min-height: 24px; }
.ph-btn, .ph-btn-line, .ph-legacy .rv-btn, .ph-legacy .blog-post-cta { letter-spacing: 0.04em; }
.ph-btn, .ph-btn-line { padding-left: 16px; padding-right: 16px; }
.ph-ctas { padding-left: 18px; padding-right: 18px; }
.ph-doc-aside .in { padding-left: 20px; padding-right: 20px; }
.ph-foot-col > a { min-height: 24px; }
.ph-legacy .quiz-start-meta { font-size: var(--t-peq); }
.ph-prose p.ph-label { font-size: var(--t-etiqueta); font-weight: 700; color: var(--ink); line-height: 1.4; }
.ph-prose .team-member-link { display: inline-block; padding: 3px 0; }
.ph-legal-links a, .ph-prose > div > a { display: inline-block; padding: 3px 0; min-height: 24px; }
/* Botones estrechos: etiqueta a 12 px para no partir en dos líneas si cabe */
.ph-ctas .ph-btn, .ph-ctas .ph-btn-line, .ph-doc-aside .ph-btn { font-size: 12px; letter-spacing: 0.02em; padding-left: 12px; padding-right: 12px; gap: 8px; }
@media (max-width: 520px) {
    .ph-btn, .ph-btn-line { font-size: 12px; letter-spacing: 0.02em; padding-left: 12px; padding-right: 12px; gap: 8px; }
}
@media (max-width: 520px) {
    .ph-prose a.blog-post-cta, .ph-legacy a.blog-post-cta { font-size: 12px; letter-spacing: 0.02em; padding-left: 12px; padding-right: 12px; gap: 8px; }
}
/* Aviso de cookies en pantallas mínimas: 15 px de letra sin tapar más de un tercio */
@media (max-width: 360px) {
    .ph-body .cc-text { padding: 7px 10px; line-height: 1.3; }
    .ph-body .cc-btn { min-height: 40px; }
}
/* Portátil estrecho: el menú cede aire para que el lacre, el nombre y el cargo quepan enteros */
@media (min-width: 1061px) and (max-width: 1240px) {
    .ph-nav a, .ph-contact { padding-left: 11px; padding-right: 11px; }
    .ph-nav a::after { left: 11px; right: 11px; }
    .ph-lang a { width: 40px; }
}
@media (min-width: 1061px) and (max-width: 1110px) {
    .ph-logo { width: 240px; }
    .ph-nav a, .ph-contact { padding-left: 8px; padding-right: 8px; }
    .ph-nav a::after { left: 8px; right: 8px; }
    .ph-lang a { width: 36px; }
}

/* Ronda final del juez: botón con la letra de marca, plano móvil por alto y cabecera estrecha */
.ph-burger { font-family: var(--sans); }
@media (max-width: 560px) {
    .ph-plan { max-width: min(300px, 38svh); }
}
@media (max-width: 360px) {
    .ph-brand .ph-mark { height: 34px; }
    .ph-brand b { letter-spacing: 0; }
}
.ph-stage { box-shadow: calc(-1 * var(--gut) - 1px) 0 0 var(--burdeos), calc(var(--gut) + 1px) 0 0 var(--burdeos); }
