/* nataliasikora · sistema común: lámina oscura, filetes y un solo acento oro.
   Lo cargan todas las páginas. Tipografía de la web de Natalia (fonts/local.css):
   Oswald 700 en titulares y rótulos, Playfair Display cursiva de acento, Inter en el texto. */

:root {
    --paper: #0d0d0d;
    --paper-2: #161716;
    --paper-3: #1d1e1d;
    --ink: #ffffff;
    --ink-2: #d0d8d0;
    --mute: #8a9a8a;
    --line: #313431;
    --line-soft: #222422;
    --gold: #d4c8a0;
    --gold-2: #e8dbb8;
    --green: var(--gold);
    --green-2: var(--gold-2);
    --panel: #191919;
    --sans: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --display: 'Oswald', 'Arial Narrow', sans-serif;
    --serif: 'Playfair Display', Georgia, serif;
    --mono: 'Oswald', 'Arial Narrow', sans-serif;
    --gut: 8px;
    --head: 60px;
    --pad: 28px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -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: 17px;
    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%; }
a { color: inherit; }
.ph-body :focus-visible { outline: 1px 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; width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.3; }
.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: 700; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; }
.ph-brand-txt i {
    font-style: normal; font-size: 13px; color: var(--mute); margin-top: 2px;
    overflow: hidden; text-overflow: ellipsis;
}
.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: 15px;
    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: 12px;
    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: 26px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: var(--ink);
}
.ph-menu a span { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.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(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    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: 700;
    font-size: clamp(32px, 3.7vw, 62px);
    line-height: 1.08;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--ink);
}
.ph-side { margin: 0; max-width: 30em; justify-self: end; font-size: 17px; 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: 0 20px;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.14em;
    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: 17px; 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(--ink);
    stroke-width: 1.1;
    vector-effect: non-scaling-stroke;
}
.ph-building .t { stroke-width: 0.55; stroke: var(--ink-2); }
.ph-building .g { fill: rgba(255, 255, 255, 0.04); }
.ph-building .gr { stroke-width: 1.5; }
.ph-building .ck { stroke: var(--green); stroke-width: 1.3; }
.ph-building .sh { fill: url(#ph-hatch); stroke: none; }
.ph-building .dim line { stroke: var(--mute); stroke-width: 0.55; }
.ph-building .dim text { fill: var(--mute); font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; }
.ph-building pattern line { stroke: var(--ink-2); 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: 12px;
    letter-spacing: 0.14em;
    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(212, 200, 160, 0.4); }
.ph-cross-h { height: 1px; width: 100%; background: rgba(212, 200, 160, 0.4); }
.ph-chip {
    display: flex;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 4;
}
.ph-chip i { font-style: normal; padding: 6px 8px; color: var(--ink-2); background: rgba(13, 13, 13, 0.92); 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(212, 200, 160, 0.08);
    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: 12px; letter-spacing: 0.14em; 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: 700;
    font-size: clamp(36px, 3.5vw, 64px);
    line-height: 1.08;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}
.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(--serif);
    font-style: italic;
    font-size: 21px;
    line-height: 1.42;
    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: 15px; 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, 46px);
    line-height: 1.2;
    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: clamp(19px, 1.5vw, 24px); line-height: 1.4; max-width: 34em; }
.ph-js .ph-words {
    background-image: linear-gradient(180deg, var(--ink) 0, var(--ink) var(--p, 0%), #4a524a var(--p, 0%), #4a524a 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(--display); font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}
.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(--ink-2);
    stroke-width: 1;
}
.ph-card-art * { vector-effect: non-scaling-stroke; }
.ph-card-art .a { stroke: var(--green); 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: 26px;
    line-height: 1.16;
    font-weight: 400;
    letter-spacing: 0;
}
.ph-card p { margin: 0; font-size: 16px; 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: 15.5px; 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: 15px; 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: 12px; letter-spacing: 0.14em; 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: 700; font-size: clamp(28px, 2.4vw, 38px); text-transform: uppercase; letter-spacing: 0.01em; }

/* 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(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ph-plan .wall { fill: #6a7a6a; stroke: none; }
.ph-plan .t { stroke: var(--ink-2); stroke-width: 0.6; }
.ph-plan .dim line { stroke: var(--mute); stroke-width: 0.55; }
.ph-plan text { fill: var(--mute); stroke: none; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; }
.ph-plan .pt { fill: var(--green); stroke: none; }
.ph-plan .shade { fill: url(#ph-hatch-p); stroke: none; }
.ph-plan .seal circle { stroke: var(--green); }
.ph-plan .seal text { fill: var(--green); font-size: 12px; }
.ph-plan pattern line { stroke: var(--green); 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: 12px; letter-spacing: 0.14em; 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: clamp(26px, 2.2vw, 36px); line-height: 1.08; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; }
.ph-step p { margin: 0; max-width: 30em; font-size: 17px; 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: 12px; color: var(--mute); }
.ph-case-i summary h3 { margin: 0; font-family: var(--serif); font-size: clamp(20px, 1.7vw, 27px); line-height: 1.25; font-weight: 400; letter-spacing: 0; }
.ph-case-i summary .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; 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: 17px; 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: clamp(28px, 2.3vw, 36px); font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; line-height: 1.05; }
.ph-person .cr { margin: 0 0 18px; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--mute); text-transform: uppercase; letter-spacing: 0.14em; }
.ph-person p { margin: 0; max-width: 34em; font-size: 17px; font-weight: 400; color: var(--ink-2); }
.ph-person a { display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--green); text-transform: uppercase; letter-spacing: 0.14em; }

/* 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(--display);
    font-size: clamp(30px, 2.6vw, 44px);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
}
.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: 12px; color: var(--mute); }
.ph-posts .t { font-family: var(--serif); font-size: clamp(19px, 1.5vw, 24px); 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, #0d0d0d 0%, #0d0d0d 66%, rgba(13, 13, 13, 0.5) 78%, rgba(13, 13, 13, 0) 90%), 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, 4.6vw, 84px); }
.ph-close p { margin: 0 0 12px; font-size: 18px; font-weight: 300; color: #cfd4d0; 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: #6e7873; }
.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, 70px);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}
.ph-page-head h1.is-long { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 50px); text-transform: none; letter-spacing: 0; line-height: 1.14; max-width: 24em; }
.ph-page-head .sub { margin: 22px 0 0; max-width: 36em; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.4; 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: 15px; 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: 600; }
.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: 22px; line-height: 1.2; }
.ph-prose h4 { margin: 1.4em 0 0.4em; font-size: 18px; }
.ph-prose > :first-child, .ph-prose > :first-child > :first-child { margin-top: 0; }
.ph-prose p, .ph-prose li { font-size: 18px; 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: 500; }
.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: 12px; color: var(--mute); }
.ph-prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0 1.8em; font-size: 16px; }
.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: 12px; font-weight: 400; letter-spacing: 0.14em; 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: 17px; 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: 16.5px; 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: 12px; letter-spacing: 0.14em; 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: 0 20px;
    background: var(--green); color: var(--paper) !important;
    font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; 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: 14px; 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: 16px;
    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: 500; }
.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(--display); font-size: clamp(30px, 3vw, 50px); font-weight: 700; letter-spacing: 0.01em; 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-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: 16px; 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 { width: 104px; height: auto; filter: invert(1); opacity: 0.6; }
.ph-foot-brand b { display: block; font-family: var(--display); font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.ph-foot-brand span { font-size: 14px; color: var(--mute); }
.ph-foot-big a { font-size: 19px; 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: 13.5px; line-height: 1.55; color: var(--mute); max-width: 60em; }
.ph-foot-legal p strong { color: var(--ink-2); font-weight: 500; }
.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(0, 0, 0, 0.8);
    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: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: normal;
}
.ph-body .cc-text { margin: 0; padding: 13px 14px; color: var(--ink-2); font-size: 14px; 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: 12px;
    letter-spacing: 0.14em;
    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: 1180px) {
    .ph-nav a { padding: 0 14px; font-size: 14px; }
    .ph-nav a::after { left: 14px; right: 14px; }
}
@media (max-width: 1060px) {
    :root { --pad: 22px; }
    .ph-nav, .ph-contact { display: 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: 12px; letter-spacing: 0.14em; 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: 1fr; padding: 60px var(--pad) 56px; background-image: linear-gradient(180deg, rgba(13, 13, 13, 0.82), rgba(13, 13, 13, 0.94)), 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; --head: 56px; --pad: 16px; }
    body.ph-body { font-size: 16px; }
    .ph-brand { padding: 0 12px; gap: 10px; }
    .ph-mark { width: 26px; height: 26px; }
    .ph-brand-txt b { font-size: 15px; }
    .ph-brand-txt i { font-size: 12px; }
    .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(30px, 9.4vw, 44px); }
    .ph-lead { padding: 18px var(--pad); border-bottom: 1px solid var(--line); font-size: 16px; }
    .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: 16px; }
    .ph-title { font-size: clamp(28px, 8.4vw, 40px); }
    .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); font-size: 15px; }
    .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(34px, 10vw, 48px); }
    .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(30px, 9vw, 42px); }
    .ph-page-head h1.is-long { font-size: clamp(25px, 7vw, 32px); }
    .ph-page-head .sub { font-size: 17px; }
    .ph-doc-aside .in { grid-template-columns: 1fr; }
    .ph-prose { padding: 24px var(--pad) 44px; }
    .ph-prose p, .ph-prose li { font-size: 17px; }
    .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: auto; }
    .ph-body .cc-text { padding: 10px 12px; font-size: 13px; line-height: 1.45; }
    .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) { 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: none; }
.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; }
