/* CNI - Landing page en Xàtiva (BORRADOR)
   Hereda cni-servicio.css y los tokens del CNI Design System. No introduce colores nuevos:
   el único añadido es la pantalla clara del móvil de ejemplo (ilustrativa, no es identidad). */

@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/assets/fonts/fira-sans-800-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/assets/fonts/fira-sans-800-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --lp-display: "Fira Sans", var(--font-sans);
  --lp-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --lp-hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  --lp-panal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23ff6600' stroke-opacity='.11'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23ff6600' stroke-opacity='.11'/%3E%3C/svg%3E");
}
.lp h1, .lp h2 { font-family: var(--lp-display); text-wrap: balance; }
.lp ::selection { background: var(--orange-primary); color: var(--on-accent); }

/* ---------- Cabecera ---------- */
.lp-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--bg-dark); border-bottom: 1px solid var(--panel-border); }
.lp-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; z-index: -2; }
.lp-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(42,12,25, 0.93) 0%, rgba(42,12,25, 0.82) 38%, rgba(42,12,25, 0.12) 78%),
              linear-gradient(0deg, var(--bg-dark) 0%, rgba(42,12,25, 0) 14%); }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 40px; align-items: end; max-width: 1140px; margin: 0 auto; padding: 0 20px 72px; min-height: 700px; }
.lp-hero .breadcrumb { grid-column: 1 / -1; padding-bottom: 8px; }
.lp-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.01em; margin: 24px 0 22px; max-width: 17ch; }
.lp-hero .answer-box { max-width: 600px; background: rgba(58,20,36, 0.92); }
.lp-hero .answer-box p { font-size: 1.05rem; }
.lp-hero .byline { margin: 0 0 20px; }
.lp-hero-visual { display: grid; justify-items: center; gap: 14px; margin-bottom: -250px; align-self: end; }
.lp-hero-visual .lp-example { background: rgba(42,12,25, 0.78); padding: 5px 12px; border-radius: var(--radius-pill); }
.lp-example { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); text-align: center; }
.lp-hero-visual .ph { animation: lp-rise 0.9s var(--lp-ease) both; }
@keyframes lp-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- Móvil de ejemplo (ilustrativo) ---------- */
.ph { width: 300px; max-width: 100%; border-radius: 42px; padding: 11px; background: #1E0811; border: 1px solid #5A2A3C;
  box-shadow: 0 34px 70px -12px rgba(0, 0, 0, 0.7); position: relative; }
.ph::before { content: ""; position: absolute; top: 19px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: #1E0811; z-index: 3; }
.ph-screen { border-radius: 32px; overflow: hidden; background: #F4EBDD; color: #33101F; position: relative; text-align: left; }
.ph-scroll { position: relative; will-change: transform; transition: transform 0.8s var(--lp-ease); }
.ph-b { padding: 16px 18px; border-bottom: 1px solid #E3D6C4; transition: opacity 0.5s var(--lp-ease); }
.ph-b:last-child { border-bottom: none; }
.ph-hero { padding: 0; position: relative; }
.ph-hero img { width: 100%; height: 170px; object-fit: cover; display: block; }
.ph-hero-txt { padding: 14px 18px 18px; }
.ph-h { font-family: var(--lp-display); font-weight: 800; font-size: 1.3rem; line-height: 1.1; letter-spacing: -0.01em; color: #33101F; }
.ph-p { font-size: 0.76rem; line-height: 1.45; color: #7A5260; margin-top: 6px; }
.ph-btn { display: block; text-align: center; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--orange-primary); color: var(--on-accent); font-weight: 700; font-size: 0.8rem; }
.ph-btn.wa { background: var(--green-wa); }
.ph-t { font-weight: 800; font-size: 0.7rem; letter-spacing: 0.9px; text-transform: uppercase; color: #7A5260; margin-bottom: 8px; }
.ph-row { display: flex; gap: 9px; align-items: center; font-size: 0.78rem; color: #33101F; padding: 5px 0; }
.ph-hx { flex: none; width: 17px; height: 19px; background: var(--orange-primary); clip-path: var(--lp-hex); }
.ph-num { flex: none; width: 22px; height: 24px; background: var(--orange-primary); clip-path: var(--lp-hex); display: grid; place-items: center; font-weight: 800; font-size: 0.66rem; color: var(--on-accent); }
.ph-proof { border: 1.5px dashed #8C6A74; border-radius: 10px; padding: 14px 12px; font-size: 0.74rem; color: #7A5260; text-align: center; line-height: 1.4; }
.ph-q { display: flex; justify-content: space-between; gap: 8px; font-size: 0.76rem; font-weight: 700; padding: 8px 0; border-bottom: 1px solid #E3D6C4; }
.ph-q:last-child { border-bottom: none; }
.ph-q::after { content: "+"; color: #5A1428; font-weight: 800; }
.ph-f { height: 30px; border: 1px solid #C9B8AE; border-radius: 8px; background: #fff; margin-bottom: 7px; padding: 7px 10px; font-size: 0.72rem; color: #6B4A55; }
.ph-foot { background: #33101F; color: #C9B8AE; font-size: 0.7rem; line-height: 1.6; text-align: center; padding: 16px 18px 22px; }
.ph-foot strong { color: #fff; display: block; }

/* ---------- Anatomía (móvil que se sincroniza con la lista) ---------- */
.lp-anat { padding: 88px 0; background: var(--bg-dark-alt) var(--lp-panal); border-top: 1px solid var(--panel-border); border-bottom: 1px solid var(--panel-border); }
.lp-anat-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 72px; align-items: start; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.lp-anat h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 18px; }
.lp-anat p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 16px; max-width: 62ch; }
.lp-anat .step-list li { transition: border-color 0.4s var(--lp-ease), background 0.4s var(--lp-ease); }
.lp-anat .step-list li.on { border-color: var(--orange-primary); background: #3A1424; }
.lp-anat-phone { position: sticky; top: 104px; display: grid; justify-items: center; gap: 12px; }
.lp-js .lp-anat-phone .ph-screen { height: 590px; }
.lp-js .lp-anat-phone.is-sync .ph-b { opacity: 0.32; }
.lp-js .lp-anat-phone.is-sync .ph-b.on { opacity: 1; }
.lp-anat-phone .ph { width: 330px; }

/* ---------- Web o landing (diagrama) ---------- */
.lp-split { padding: 88px 0 24px; }
.lp-split h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 16px; }
.lp-diagrams { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 26px 0 30px; }
.lp-dg { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: var(--radius-lg); padding: 22px 20px 18px; }
.lp-dg.is-landing { border-color: rgba(230,207,162, 0.45); }
.lp-dg figcaption { margin-top: 10px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }
.lp-dg figcaption strong { color: var(--text-white); display: block; font-size: 1.05rem; margin-bottom: 2px; }
.lp-dg svg { display: block; width: 100%; height: auto; }
.lp-dg text { font-family: var(--font-sans); font-weight: 700; font-size: 12.5px; fill: #C9B8AE; }
.lp-dg .dg-line { stroke: #7A5260; stroke-width: 1.6; fill: none; stroke-linecap: round; }
.lp-dg .dg-main { stroke: var(--orange-primary); stroke-width: 3; fill: none; stroke-linecap: round; }
.lp-dg .dg-pill { fill: #3A1424; stroke: #5A2A3C; }
.lp-dg .dg-visit { fill: var(--gold-accent); }
.lp-dg .dg-cta { fill: var(--orange-primary); }
.lp-dg .dg-cta-t { fill: var(--on-accent); font-size: 14px; font-weight: 800; }
.lp-js .lp-dg .dg-line, .lp-js .lp-dg .dg-main { stroke-dasharray: 1; stroke-dashoffset: 1; }
.lp-js .lp-dg.in .dg-line, .lp-js .lp-dg.in .dg-main { animation: lp-draw 1.4s var(--lp-ease) forwards; }
.lp-js .lp-dg.in .dg-main { animation-delay: 0.25s; animation-duration: 1.1s; }
@keyframes lp-draw { to { stroke-dashoffset: 0; } }

/* ---------- Banda local ---------- */
.lp-band { position: relative; isolation: isolate; overflow: hidden; margin-top: 72px; min-height: 440px; display: flex; align-items: center; border-top: 1px solid var(--panel-border); border-bottom: 1px solid var(--panel-border); }
.lp-band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; z-index: -2; }
.lp-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(42,12,25, 0.95) 0%, rgba(42,12,25, 0.8) 45%, rgba(42,12,25, 0.15) 100%); }
.lp-band-in { max-width: 1140px; margin: 0 auto; padding: 64px 20px; width: 100%; }
.lp-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; max-width: 18ch; margin-bottom: 16px; }
.lp-band p { color: #E3D6C4; font-size: 1.1rem; line-height: 1.65; max-width: 52ch; margin-bottom: 26px; }

/* ---------- Geometría de la casa en las listas ---------- */
.lp .check-list li { padding-left: 34px; }
.lp .check-list li::before { content: ""; width: 18px; height: 20px; top: 3px; background: var(--gold-accent); clip-path: var(--lp-hex); }
.lp .limit-list li::before { background: #7A5260; }
.lp .step-list li { padding-left: 76px; }
.lp .step-list li::before { content: counter(paso); left: 20px; top: 16px; width: 36px; height: 40px; display: grid; place-items: center;
  background: var(--orange-primary); color: var(--on-accent); clip-path: var(--lp-hex); font-family: var(--lp-display); font-weight: 800; font-size: 1rem; }
.lp .lp-anat .step-list li::before { top: 18px; }
.lp .cta-final { background: var(--bg-dark-alt) var(--lp-panal); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 56px; min-height: 0; }
  .lp-hero-visual { margin-bottom: -170px; }
  .lp-hero h1 { max-width: 20ch; }
  .lp-hero::after { background: linear-gradient(0deg, rgba(42,12,25, 0.93) 0%, rgba(42,12,25, 0.82) 100%); }
  .lp-anat-grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-anat-phone { position: static; order: -1; }
  .lp-js .lp-anat-phone .ph-screen { height: 500px; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 78%, transparent 100%); }
  .lp-js .lp-anat-phone.is-sync .ph-b { opacity: 1; }
  .lp-diagrams { grid-template-columns: 1fr; }
  .lp-band::after { background: linear-gradient(0deg, rgba(42,12,25, 0.92) 0%, rgba(42,12,25, 0.75) 100%); }
}
@media (max-width: 640px) {
  .lp-anat { padding: 56px 0; }
  .lp-split { padding-top: 56px; }
  .lp-band { min-height: 0; margin-top: 48px; }
  .lp-band-in { padding: 48px 20px; }
  .ph, .lp-anat-phone .ph { width: 280px; }
  .lp-hero .answer-box { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-hero-visual .ph { animation: none; }
  .ph-scroll { transition: none; }
  .lp-js .lp-dg .dg-line, .lp-js .lp-dg .dg-main { stroke-dashoffset: 0; animation: none !important; }
}

/* ---------- Ritmo de las secciones de texto ---------- */
.lp-panel { background: var(--panel-bg); border: 1px solid rgba(230,207,162, 0.35); border-radius: var(--radius-md); padding: 26px 24px 20px; }
.lp-panel h2 { font-size: 1.35rem; margin-bottom: 14px; }
.lp-include .lp-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 36px; margin: 8px 0 0; }
.lp-limits { padding-top: 56px; }
.lp-limits .container-narrow { max-width: 1000px; }
.lp-limits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lp-limits .lp-panel { border-color: var(--panel-border); margin: 0; }
.lp-limits .check-list { margin-bottom: 4px; }
@media (max-width: 860px) {
  .lp-include .lp-panel, .lp-limits-grid { grid-template-columns: 1fr; }
}

/* Los textos del móvil de ejemplo no heredan los estilos de la columna de texto */
.lp-anat .lp-anat-phone p.ph-p { font-size: 0.76rem; line-height: 1.45; color: #7A5260; margin: 6px 0 0; max-width: none; }
.lp-anat .lp-anat-phone p.lp-example { font-size: 0.74rem; line-height: 1.4; color: var(--text-muted); margin: 0; max-width: none; }
.lp-dg { display: flex; flex-direction: column; }
.lp-dg svg { flex: 1 1 auto; }
@media (min-width: 961px) {
  .lp-anat-text { padding-bottom: 300px; }
}
