/*
   portada.css — Chavaias 2026-10
   Portada de chavaias.es: una sola historia (Conforme) en capítulos, sin tarjetas.
   Se carga después de site.css y marca.css. Todo cuelga de .page-home.
   Identidad: la factura. Líneas de perforación, cantos rectos, cifras enormes y
   un único momento memorable: la factura que viaja mientras se baja.
*/

.page-home {
    --paper: #f5f7f4;
    --white: #ffffff;
    --ink: #0b2625;
    --ink-2: #3d5553;
    --hair: #cbd8d4;
    --brand: #0f3d3e;
    --mint: #7fe0c4;
    --mint-soft: #e3f4ee;
    --alert: #e8431f;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    background: var(--paper);
    color: var(--ink);
}

/* ---------- Base de los capítulos ---------- */
.pc { padding: clamp(72px, 11vw, 150px) 0; position: relative; }
.pc-wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.pc-white { background: var(--white); }
.pc-paper { background: var(--paper); }
.pc-mint { background: var(--mint-soft); }
.pc-dark { background: var(--brand); color: #fff; }
.pc-dark h2, .pc-dark h3 { color: #fff; }

.page-home main h2.pc-h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.2rem, 5.6vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    max-width: 17ch;
    margin: 0 0 clamp(28px, 4vw, 56px);
    text-wrap: balance;
}
.page-home main h2.pc-h2.wide { max-width: 22ch; }
.page-home main .pc-lead { font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.55; color: var(--ink-2); max-width: 44ch; margin: 0 0 22px; }
.pc-dark .pc-lead { color: rgba(255, 255, 255, 0.78); }

/* Línea de perforación entre capítulos */
.pc-perf { height: 0; border-top: 3px dotted var(--hair); margin: 0; }

/* Botones: cantos rectos, peso firme */
.page-home main .btn { border-radius: 2px; padding: 15px 28px; font-weight: 600; letter-spacing: -0.01em; transition: transform 0.2s var(--ease), background 0.2s, color 0.2s; }
.page-home main .btn:active { transform: translateY(1px); }
.page-home main .btn-primary { background: var(--brand); color: #fff; }
.page-home main .btn-primary:hover { background: var(--ink); }
.page-home .hero-night .btn-primary { background: var(--mint); color: var(--brand-ink); }
.page-home .hero-night .btn-primary:hover { background: #a7efdb; }
.page-home main .btn-ghost { border-width: 1.5px; }
.pc-dark .btn-primary, .pc-dark .btn-primary:hover { background: var(--mint); color: var(--brand-ink); }
.pc-dark .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.pc-dark .btn-ghost:hover { background: #fff; color: var(--brand); }

/* Etiquetas y pequeños rótulos: sin cápsulas */
.page-home main .tag { border-radius: 2px; background: none; border: 1px solid currentColor; padding: 3px 9px; font-size: 0.8rem; letter-spacing: 0; text-transform: none; font-weight: 600; }
.page-home main .tag-ok { color: var(--green); }
.page-home main .tag-pilot { color: #9a5a00; }
.page-home main .eyebrow { text-transform: none; letter-spacing: 0; font-size: 0.98rem; font-weight: 600; color: var(--accent); }

/* ---------- Portada: titular que entra una vez ---------- */
.page-home .hero h1 { font-size: clamp(2.8rem, 5.6vw, 5.4rem); letter-spacing: -0.05em; line-height: 0.98; }
.page-home .hero h1 .hw { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
    .page-home .hero h1 .hw { animation: pc-word 0.9s var(--ease) both; animation-delay: calc(var(--i) * 80ms + 120ms); }
}
@keyframes pc-word { from { opacity: 0; transform: translateY(0.45em); } to { opacity: 1; transform: none; } }

/* ---------- 1 · El problema ---------- */
.pc-problem h2.pc-h2 { max-width: 20ch; }
.pc-versus { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.pc-versus > div { padding: 28px clamp(0px, 3vw, 40px) 0 0; }
.pc-versus > div + div { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--hair); }
.pc-versus h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 18px; }
.pc-versus ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pc-versus li { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.45; color: var(--ink-2); }
.pc-versus > div + div li { color: var(--ink); font-weight: 500; }
.pc-versus > div + div li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 10px; }

/* ---------- 2 · La prueba ---------- */
.pc-proof .pc-fig { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: end; }
.pc-proof .pc-big { grid-column: 1 / 8; padding-bottom: 40px; }
.pc-num { font-family: var(--font-display); font-weight: 700; line-height: 0.9; letter-spacing: -0.06em; color: var(--mint); display: block; }
.pc-big .pc-num { font-size: clamp(5.5rem, 17vw, 15rem); }
.pc-cap { display: block; margin-top: 14px; font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.4; color: rgba(255, 255, 255, 0.82); max-width: 26ch; }
.pc-proof .pc-side { grid-column: 8 / 13; display: grid; gap: 0; border-left: 1px solid rgba(255, 255, 255, 0.22); }
.pc-side > div { padding: 22px 0 22px clamp(20px, 3vw, 40px); border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.pc-side > div:last-child { border-bottom: 0; }
.pc-side .pc-num { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.pc-proof .pc-more { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255, 255, 255, 0.22); padding-top: 26px; }
.pc-proof .pc-more p { margin: 0; max-width: 62ch; color: rgba(255, 255, 255, 0.78); }
.pc-proof .pc-more a { color: var(--mint); font-weight: 600; }

/* ---------- 3 · La factura que viaja ---------- */
.pc-flow-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pc-steps { display: grid; }
.pc-step { min-height: 74vh; display: flex; flex-direction: column; justify-content: center; padding: 6vh 0; border-top: 1px solid var(--hair); opacity: 0.32; transition: opacity 0.5s var(--ease); }
.pc-step:first-child { border-top: 0; }
.pc-step.on { opacity: 1; }
.pc-step b { font-family: var(--font-display); font-size: 1rem; color: var(--accent); margin-bottom: 14px; }
.pc-step h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.8vw, 3.2rem); line-height: 1.04; letter-spacing: -0.04em; margin: 0 0 16px; max-width: 16ch; }
.pc-step p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 40ch; margin: 0; }
.pc-sticky { position: sticky; top: 13vh; }

.pc-invoice { position: relative; background: #fff; border: 1px solid var(--ink); padding: 26px 26px 22px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86rem; color: var(--ink); box-shadow: 10px 10px 0 var(--brand); transform: rotate(-1.2deg); }
.pc-invoice::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -9px; height: 9px; background: radial-gradient(circle at 7px 0, var(--paper) 5px, transparent 5.5px) 0 0 / 14px 9px repeat-x; }
.inv-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--ink); font-weight: 700; }
.inv-head span { font-weight: 400; color: var(--ink-2); }
.inv-status { margin: 12px 0 14px; min-height: 1.4em; color: var(--ink-2); }
.inv-lines { margin: 0; display: grid; gap: 0; }
.inv-lines > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 8px; margin-inline: -8px; transition: opacity 0.5s var(--ease), background 0.4s, color 0.4s; }
.inv-lines dt { color: var(--ink-2); }
.inv-lines dd { margin: 0; font-weight: 700; text-align: right; }
.inv-lines .tot { border-top: 1px solid var(--ink); margin-top: 6px; padding-top: 10px; font-size: 1rem; }
.inv-checks { margin-top: 16px; }
.inv-checks .lab { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--ink-2); }
.inv-checks .lab b { color: var(--ink); }
.inv-cells { display: grid; grid-template-columns: repeat(21, 1fr); gap: 3px; }
.inv-cells i { aspect-ratio: 1; background: var(--hair); transition: background 0.2s; }
.inv-note { margin-top: 14px; padding: 10px 12px; border-left: 3px solid var(--alert); background: #fdeeea; color: #8f2410; font-family: var(--font); font-size: 0.9rem; line-height: 1.4; }
.inv-note.ok { border-color: var(--accent); background: var(--mint-soft); color: var(--brand); }
.inv-stamp { position: absolute; right: -10px; top: 44%; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.1rem); letter-spacing: 0.02em; color: var(--alert); border: 4px solid var(--alert); padding: 6px 16px; transform: rotate(-9deg); background: rgba(255, 255, 255, 0.9); pointer-events: none; opacity: 0; }
.inv-stamp.good { color: var(--accent); border-color: var(--accent); right: auto; left: 18px; top: 56%; transform: rotate(6deg); }
.inv-cap { margin: 22px 0 0; font-size: 0.88rem; color: var(--ink-2); }

/* estados por paso (sin JavaScript: se ve el cuarto paso, la alerta) */
.pc-flow .inv-lines > div { opacity: 1; }
.pc-flow[data-step="1"] .inv-lines > div { opacity: 0.14; }
.pc-flow[data-step="1"] .inv-lines > div:first-child { opacity: 1; }
.pc-flow .inv-checks, .pc-flow .inv-note, .pc-flow .inv-note.ok { display: none; }
.pc-flow[data-step="3"] .inv-checks, .pc-flow[data-step="4"] .inv-checks, .pc-flow[data-step="5"] .inv-checks, .pc-flow:not([data-step]) .inv-checks { display: block; }
.pc-flow[data-step="4"] .inv-note:not(.ok), .pc-flow:not([data-step]) .inv-note:not(.ok) { display: block; }
.pc-flow[data-step="5"] .inv-note.ok { display: block; }
.pc-flow[data-step="4"] .inv-lines .iban, .pc-flow:not([data-step]) .inv-lines .iban { background: #fdeeea; color: var(--alert); }
.pc-flow[data-step="4"] .inv-stamp.bad, .pc-flow:not([data-step]) .inv-stamp.bad, .pc-flow[data-step="5"] .inv-stamp.good { opacity: 1; }
.pc-flow[data-step="1"] .inv-cells i, .pc-flow[data-step="2"] .inv-cells i { background: var(--hair); }
.pc-flow[data-step="3"] .inv-cells i, .pc-flow[data-step="4"] .inv-cells i, .pc-flow[data-step="5"] .inv-cells i, .pc-flow:not([data-step]) .inv-cells i { background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
    .pc-flow[data-step="3"] .inv-cells i { animation: pc-cell 0.25s both; animation-delay: calc(var(--n) * 16ms); }
    .pc-flow[data-step="4"] .inv-stamp.bad { animation: pc-stamp 0.45s var(--ease) both; }
    .pc-flow[data-step="5"] .inv-stamp.good { animation: pc-stamp-g 0.45s var(--ease) both; }
}
@keyframes pc-cell { from { background: var(--hair); transform: scale(0.4); } to { background: var(--accent); transform: none; } }
@keyframes pc-stamp { 0% { opacity: 0; transform: rotate(-9deg) scale(2.4); } 70% { opacity: 1; transform: rotate(-9deg) scale(0.94); } 100% { opacity: 1; transform: rotate(-9deg) scale(1); } }
@keyframes pc-stamp-g { 0% { opacity: 0; transform: rotate(6deg) scale(2.2); } 70% { opacity: 1; transform: rotate(6deg) scale(0.95); } 100% { opacity: 1; transform: rotate(6deg) scale(1); } }

/* ---------- 4 · Para quién ---------- */
.pc-for-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px clamp(24px, 6vw, 96px); padding: 36px 0; border-top: 1px solid var(--ink); align-items: start; }
.pc-for-row:last-of-type { border-bottom: 1px solid var(--ink); }
.pc-for-row h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: 1; letter-spacing: -0.045em; margin: 0; }
.pc-for-row p { margin: 0 0 14px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.pc-for-row a.go { font-weight: 700; color: var(--brand); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.pc-triple { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; }
.pc-triple > div { padding: 0 clamp(16px, 3vw, 36px) 0 0; }
.pc-triple > div + div { padding-left: clamp(16px, 3vw, 36px); border-left: 1px solid var(--hair); }
.pc-triple h4 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 8px; }
.pc-triple p { margin: 0; color: var(--ink-2); }

/* ---------- 5 · Cómo se empieza ---------- */
.pc-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: paso; border-top: 1px solid var(--ink); }
.pc-timeline li { counter-increment: paso; padding: 28px clamp(14px, 2vw, 28px) 0 0; position: relative; }
.pc-timeline li + li { padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid var(--hair); }
.pc-timeline li::before { content: counter(paso); display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.06em; color: var(--accent); margin-bottom: 18px; }
.pc-timeline h3 { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 8px; letter-spacing: -0.02em; }
.pc-timeline p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.pc-start-cta { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.pc-start-cta p { margin: 0; font-weight: 600; font-size: 1.1rem; }

/* ---------- 6 · Datos y ley ---------- */
.pc-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.pc-split h2.pc-h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
.page-home .table-wrap { border: 0; border-radius: 0; background: none; border-top: 1px solid var(--ink); }
.page-home .table-wrap table { width: 100%; border-collapse: collapse; }
.page-home .table-wrap th { text-align: left; font-family: var(--font-display); font-size: 0.95rem; padding: 14px 20px 14px 0; color: var(--ink-2); font-weight: 600; border-bottom: 1px solid var(--hair); background: none; }
.page-home .table-wrap td { padding: 18px 24px 18px 0; vertical-align: top; border-bottom: 1px solid var(--hair); line-height: 1.5; }
.page-home .table-wrap td:first-child { font-weight: 700; width: 34%; }

/* ---------- 7 · Quién está detrás ---------- */
.page-home .founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: center; max-width: none; text-align: left; }
.page-home .founder img { width: 100%; max-width: 420px; height: auto; aspect-ratio: 4 / 5; border-radius: 0; object-fit: cover; box-shadow: 14px 14px 0 var(--mint); }
.page-home .founder blockquote { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 600; margin: 8px 0 24px; }

/* ---------- 8 · Precios: filas, no tarjetas ---------- */
.pc-price-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 4fr); gap: 20px clamp(20px, 4vw, 64px); padding: 36px 0; border-top: 1px solid var(--ink); align-items: start; }
.pc-price-row:last-of-type { border-bottom: 1px solid var(--ink); }
.pc-price-row h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.05; letter-spacing: -0.04em; margin: 0 0 10px; }
.pc-price-row .for { color: var(--ink-2); margin: 0; max-width: 38ch; }
.pc-price-row .price { display: grid; gap: 4px; font-family: var(--font-display); }
.pc-price-row .price .setup { font-size: 1.2rem; font-weight: 700; }
.pc-price-row .price .monthly { color: var(--ink-2); font-size: 1.05rem; }
.pc-price-row ul { margin: 0 0 18px; padding-left: 1.1em; display: grid; gap: 6px; color: var(--ink-2); }
.pc-price-row.big { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.page-home .tier-table { border: 0; border-radius: 0; border-top: 1px solid var(--ink); }
.page-home .tier-row { border-top: 1px solid var(--hair); }
.page-home .tier-head { background: none; color: var(--ink-2); font-weight: 600; }
.page-home details.why { margin-top: 14px; }
.page-home details.why summary { cursor: pointer; font-weight: 700; color: var(--brand); list-style: none; }
.page-home details.why summary::-webkit-details-marker { display: none; }
.page-home details.why summary::before { content: "+ "; }
.page-home details.why[open] summary::before { content: "– "; }
.page-home details.why ul { padding-left: 1.1em; margin: 10px 0 0; font-size: 0.95rem; }
.pc-price-note { margin: 22px 0 0; color: var(--ink-2); font-size: 0.95rem; max-width: 80ch; }
.pc-pilot { margin-top: clamp(48px, 7vw, 96px); background: var(--brand); color: #fff; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px clamp(24px, 5vw, 80px); }
.pc-pilot h3 { color: #fff; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -0.035em; margin: 0 0 16px; }
.pc-pilot p { color: rgba(255, 255, 255, 0.8); }
.pc-pilot ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; color: rgba(255, 255, 255, 0.9); }

/* ---------- 9 · Preguntas ---------- */
.page-home .faq { max-width: none; display: block; border-top: 1px solid var(--ink); }
.page-home .faq details { background: none; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; padding: 0; }
.page-home .faq summary { padding: 22px 40px 22px 0; font-family: var(--font-display); font-size: clamp(1.1rem, 1.8vw, 1.45rem); font-weight: 600; letter-spacing: -0.02em; }
.page-home .faq summary::after { top: 16px; font-size: 1.8rem; transition: transform 0.25s var(--ease); }
.page-home .faq details[open] summary::after { content: "+"; transform: rotate(45deg); }
.page-home .faq details p { max-width: 70ch; padding-bottom: 24px; }

/* ---------- Cierre ---------- */
.page-home .cta-band { background: var(--brand); color: #fff; text-align: left; }
.page-home .cta-band h2 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); max-width: 20ch; margin-inline: 0; letter-spacing: -0.045em; line-height: 1.02; }
.page-home .cta-band p { margin-inline: 0; }
.page-home .cta-band .btn-row.center { justify-content: flex-start; }

/* ---------- 10 · Otras soluciones (lista gigante) ---------- */
.pc-others-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 20px 40px; align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
.pc-others-head h2.pc-h2 { margin: 0; }
.pc-others-head p { margin: 0 0 8px; color: var(--ink-2); font-size: 1.1rem; }
.pc-list { border-top: 1px solid var(--ink); }
.pc-row { border-bottom: 1px solid var(--ink); --c: var(--brand); }
.pc-row summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto 42px; align-items: center; gap: 16px; padding: clamp(18px, 2.6vw, 30px) 0; transition: background 0.3s var(--ease), color 0.3s var(--ease), padding 0.3s var(--ease); position: relative; }
.pc-row summary::-webkit-details-marker { display: none; }
.pc-row .nm { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -0.05em; transition: transform 0.4s var(--ease); }
.pc-row .nm small { display: block; font-family: var(--font); font-weight: 500; font-size: clamp(0.9rem, 1.3vw, 1.05rem); letter-spacing: 0; color: var(--ink-2); margin-top: 8px; transition: color 0.3s; }
.pc-row .st { font-size: 0.85rem; font-weight: 600; border: 1px solid currentColor; padding: 3px 10px; white-space: nowrap; }
.pc-row .pl { width: 42px; height: 42px; position: relative; justify-self: end; }
.pc-row .pl::before, .pc-row .pl::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }
.pc-row .pl::after { transform: translate(-50%, -50%) rotate(90deg); }
.pc-row[open] .pl::after { transform: translate(-50%, -50%) rotate(0); }
@media (hover: hover) and (pointer: fine) {
    .pc-row summary:hover { background: var(--c); color: #fff; padding-inline: 24px; }
    .pc-row summary:hover .nm small { color: rgba(255, 255, 255, 0.82); }
}
.pc-row[open] summary { background: var(--c); color: #fff; padding-inline: clamp(16px, 2.4vw, 28px); }
.pc-row[open] summary .nm small { color: rgba(255, 255, 255, 0.82); }
.pc-row summary:focus-visible { outline: 3px solid var(--mint); outline-offset: -3px; }
.pc-panel { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px clamp(24px, 5vw, 80px); padding: clamp(28px, 4vw, 56px) clamp(16px, 2.4vw, 28px) clamp(32px, 4vw, 56px); border-left: 8px solid var(--c); background: var(--paper); }
@media (prefers-reduced-motion: no-preference) { .pc-row[open] .pc-panel { animation: pc-open 0.45s var(--ease) both; } }
@keyframes pc-open { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.pc-panel p { margin: 0 0 14px; color: var(--ink-2); max-width: 52ch; }
.pc-panel p.pain { color: var(--ink); font-size: 1.2rem; font-weight: 500; line-height: 1.45; }
.pc-panel ul { margin: 0 0 18px; padding-left: 1.1em; display: grid; gap: 7px; color: var(--ink-2); }
.pc-panel .btn-row { margin: 18px 0; }
.pc-panel .more, .pc-panel a.go { font-weight: 700; color: var(--brand); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.pc-panel .system-price { border-top: 1px solid var(--hair); }
.pc-panel .job-head { margin-bottom: 14px; }
.pc-panel .job-head img { border-radius: 0; }
.pc-panel .stage { margin-bottom: 18px; }
.pc-panel h3.sub { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.03em; margin: 0 0 12px; }
.page-home .price-justify { background: none; border-radius: 0; padding: 14px 0 0; border-top: 1px solid var(--hair); }

/* Islas de Tinta: conserva su ilustración como en la tarjeta anterior */
.pc-row.islas summary { background: linear-gradient(90deg, rgba(8, 18, 48, 0.78) 0%, rgba(8, 18, 48, 0.35) 60%, rgba(8, 18, 48, 0.6) 100%), url(/islas-de-tinta/img/ilustracion.webp) center 60% / cover; color: #fff; min-height: clamp(150px, 22vw, 240px); padding-inline: clamp(16px, 2.4vw, 28px); }
.pc-row.islas .nm small, .pc-row.islas summary:hover .nm small { color: rgba(255, 255, 255, 0.9); }
.pc-row.islas .nm, .pc-row.islas .st { text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55); }
.pc-row.islas summary:hover { background: linear-gradient(90deg, rgba(8, 18, 48, 0.62) 0%, rgba(8, 18, 48, 0.2) 60%, rgba(8, 18, 48, 0.45) 100%), url(/islas-de-tinta/img/ilustracion.webp) center 60% / cover; }

/* Crea tus cuentos: usa su ilustración de portada, igual que Islas de Tinta */
.pc-row.creatuscuentos summary { background: linear-gradient(90deg, rgba(30, 14, 70, 0.8) 0%, rgba(30, 14, 70, 0.4) 60%, rgba(30, 14, 70, 0.65) 100%), url(/crea-tus-cuentos/img/ilustracion.webp) center 60% / cover; color: #fff; min-height: clamp(150px, 22vw, 240px); padding-inline: clamp(16px, 2.4vw, 28px); }
.pc-row.creatuscuentos .nm small, .pc-row.creatuscuentos summary:hover .nm small { color: rgba(255, 255, 255, 0.9); }
.pc-row.creatuscuentos .nm, .pc-row.creatuscuentos .st { text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55); }
.pc-row.creatuscuentos summary:hover { background: linear-gradient(90deg, rgba(30, 14, 70, 0.65) 0%, rgba(30, 14, 70, 0.22) 60%, rgba(30, 14, 70, 0.5) 100%), url(/crea-tus-cuentos/img/ilustracion.webp) center 60% / cover; }

/* ---------- Móvil ---------- */
@media (max-width: 860px) {
    .pc-versus, .pc-proof .pc-fig, .pc-for-row, .pc-split, .page-home .founder, .pc-price-row, .pc-price-row.big, .pc-pilot, .pc-others-head, .pc-panel { grid-template-columns: 1fr; }
    .pc-versus > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--hair); margin-top: 28px; }
    .pc-proof .pc-big, .pc-proof .pc-side { grid-column: 1 / -1; }
    .pc-proof .pc-side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
    .pc-side > div { padding-left: 0; }
    .pc-triple, .pc-timeline { grid-template-columns: 1fr; }
    .pc-triple > div + div, .pc-timeline li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--hair); margin-top: 24px; padding-top: 24px; }
    .pc-timeline li { padding-right: 0; }
    .pc-flow-grid { grid-template-columns: 1fr; gap: 0; }
    .pc-sticky { position: sticky; top: 60px; z-index: 3; background: var(--white); padding: 10px 0 16px; order: -1; }
    .pc-invoice { transform: none; padding: 14px 16px 12px; font-size: 0.74rem; box-shadow: 6px 6px 0 var(--brand); }
    .inv-lines > div { padding: 3px 6px; }
    .inv-head { padding-bottom: 8px; }
    .inv-status { margin: 6px 0 8px; }
    .inv-checks { margin-top: 8px; }
    .inv-cap { display: none; }
    .pc-step { min-height: 58vh; padding: 4vh 0; }
    .pc-step h3 { max-width: none; }
    .pc-row summary { grid-template-columns: minmax(0, 1fr) 34px; }
    .pc-row .st { display: none; }
    .pc-row .nm small { margin-top: 6px; }
    .page-home .founder img { max-width: 280px; }
}
@media (prefers-reduced-motion: reduce) { .pc-step { opacity: 1; } }

/* texto de estado de la factura */
.inv-status span { display: none; }
.pc-flow[data-step="1"] .inv-status .s1, .pc-flow[data-step="2"] .inv-status .s2, .pc-flow[data-step="3"] .inv-status .s3,
.pc-flow[data-step="4"] .inv-status .s4, .pc-flow[data-step="5"] .inv-status .s5, .pc-flow:not([data-step]) .inv-status .s4 { display: inline; }
.pc-flow[data-step="4"] .inv-status, .pc-flow:not([data-step]) .inv-status { color: var(--alert); font-weight: 700; }
.pc-flow[data-step="5"] .inv-status { color: var(--accent); font-weight: 700; }

/* ajustes tras la revisión */
.pc-split h2.pc-h2 { font-size: clamp(1.8rem, 3.2vw, 2.9rem); max-width: 14ch; }
.inv-stamp.good { left: auto; right: 14px; top: auto; bottom: 96px; }
@media (max-height: 760px) and (min-width: 861px) {
    .pc-invoice { font-size: 0.74rem; padding: 18px 20px 16px; }
    .inv-lines > div { padding: 4px 8px; }
    .pc-sticky { top: 9vh; }
}

@media (max-width: 860px) {
    .inv-lines > div:nth-child(2), .inv-lines > div:nth-child(3), .inv-lines > div:nth-child(4), .inv-lines > div:nth-child(5) { display: none; }
    .inv-cells { gap: 2px; }
}

/* ---------- Aparición de textos al hacer scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
    .pc-js .rv { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease) var(--d, 0ms), transform 0.9s var(--ease) var(--d, 0ms); }
    .pc-js .rv.in { opacity: 1; transform: none; }
    .pc-js .rv-h .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
    .pc-js .rv-h .w > span { display: inline-block; transform: translateY(110%); transition: transform 0.95s var(--ease) calc(var(--i) * 60ms); }
    .pc-js .rv-h.in .w > span { transform: none; }
    /* la fila de otras soluciones no debe moverse al abrirse */
    .pc-js .pc-row.rv.in { transition: none; }
}
@media (prefers-reduced-motion: reduce) { .pc-js .rv, .pc-js .rv-h .w > span { opacity: 1; transform: none; } }

/* foto del fundador: más pequeña */
.page-home .founder { grid-template-columns: 190px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.page-home .founder img { max-width: 190px; box-shadow: 8px 8px 0 var(--mint); }
@media (max-width: 860px) { .page-home .founder { grid-template-columns: 1fr; } .page-home .founder img { max-width: 140px; } }
