/* ============================================================
   LOIPON · LANDINGS SEO (intención de búsqueda)
   Plantilla reutilizable para landings de ingeniería.
   Hereda el sistema Híbrido (.hyb): tokens, header, footer, botones,
   y reusa componentes compartidos (.h-caps, .h-case, .h-sec-head, .h-lead).
   Orden del discurso: problema → ingeniería → caso real → (al final) producto.
   Prefijo propio: lp-
   ============================================================ */

.lp { background: var(--ink); }
.lp [id] { scroll-margin-top: 96px; }

/* Bandas */
.lp-dark  { background: var(--ink);  color: var(--white); }
.lp-light { background: var(--paper); color: var(--ink); }
.lp-sec { padding: clamp(4rem,9vh,7rem) var(--mx); }
.lp-light .h-sec-head h2 { color: var(--ink); }
.lp-light .h-lead { color: #3a3f45; }
.lp-dark .h-lead { color: rgba(245,247,248,.82); }

/* =====================================================
   BREADCRUMB
   ===================================================== */
.lp-breadcrumb { padding: calc(58px + 4rem) var(--mx) 1.2rem; }
.lp-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; list-style: none; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-l); }
.lp-breadcrumb a { color: var(--steel-l); transition: color .3s; }
.lp-breadcrumb a:hover { color: var(--mt); }
.lp-breadcrumb li::after { content: "/"; margin-left: .5rem; color: rgba(245,247,248,.25); }
.lp-breadcrumb li:last-child { color: var(--white); }
.lp-breadcrumb li:last-child::after { content: none; }

/* =====================================================
   HERO
   ===================================================== */
.lp-hero { position: relative; min-height: clamp(30rem, 84vh, 52rem); display: flex; align-items: flex-end; overflow: hidden; }
.lp-hero__media { position: absolute; inset: -8% 0 0 0; z-index: 0; }
.lp-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.lp-hero__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14,16,19,.62) 0%, rgba(14,16,19,.28) 34%, rgba(14,16,19,.72) 78%, var(--ink) 100%); }
.lp-hero__duotone { position: absolute; inset: 0; z-index: 1; mix-blend-mode: multiply; background: linear-gradient(120deg, rgba(14,16,19,.5), rgba(14,16,19,.15) 55%, rgba(232,128,28,.10)); }
.lp-hero__grid { position: absolute; inset: 0; z-index: 2; opacity: .5;
  background-image: linear-gradient(var(--grid-d) 1px, transparent 1px), linear-gradient(90deg, var(--grid-d) 1px, transparent 1px);
  background-size: 60px 60px; -webkit-mask-image: radial-gradient(120% 90% at 75% 25%, #000, transparent 72%); mask-image: radial-gradient(120% 90% at 75% 25%, #000, transparent 72%); }
.lp-hero__inner { position: relative; z-index: 4; padding: 0 var(--mx) clamp(3.5rem,8vh,6rem); max-width: 58rem; }
.lp-hero__eyebrow { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.2rem; font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-l); }
.lp-hero__eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--mt); }
.lp-hero h1 { font-family: var(--display); font-weight: 500; letter-spacing: -.018em; line-height: 1.04; font-size: clamp(2rem,5vw,4rem); max-width: 18ch; }
.lp-hero h1 .hl { color: var(--mt); }
.lp-hero__sub { margin-top: 1.5rem; max-width: 52ch; font-size: clamp(1.02rem,1.4vw,1.24rem); line-height: 1.55; color: rgba(245,247,248,.84); }
.lp-hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.1rem; }
.lp-hero__ref { position: absolute; z-index: 4; bottom: clamp(1.2rem,3vh,2rem); right: var(--mx); font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; color: var(--steel-l); text-align: right; }
.lp-hero__ref b { color: var(--mt); }

/* =====================================================
   /01 EL PROBLEMA — grilla de exigencias
   ===================================================== */
.lp-problema__lead { max-width: 52ch; margin-top: 1.3rem; font-size: clamp(1.1rem,1.8vw,1.5rem); line-height: 1.35; font-family: var(--display); font-weight: 500; letter-spacing: -.01em; }
.lp-problema__lead .hl { color: var(--mt); }
.lp-problema__p { max-width: 58ch; margin-top: 1.2rem; color: #3a3f45; line-height: 1.6; font-size: clamp(1rem,1.3vw,1.12rem); }
.lp-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line-l); border-left: 1px solid var(--line-l); margin-top: clamp(2.4rem,5vh,3.4rem); }
.lp-cell { padding: clamp(1.5rem,2.5vw,2rem) clamp(1.2rem,2vw,1.6rem); border-right: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l); transition: background .3s; }
.lp-cell:hover { background: #fff; }
.lp-cell__n { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; color: var(--mt); }
.lp-cell__t { font-family: var(--display); font-weight: 600; font-size: 1.16rem; margin: .65rem 0 .4rem; letter-spacing: -.01em; }
.lp-cell__d { font-size: .86rem; color: #4a4f55; line-height: 1.5; }

/* =====================================================
   /02 LA INGENIERÍA — reusa .h-caps + callout de sistemas
   ===================================================== */
.lp-eng__link { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.4rem; font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--mt); padding-bottom: .3rem; transition: gap .3s, color .3s; }
.lp-eng__link:hover { gap: 1rem; color: var(--mt); }
.lp-systems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: clamp(2.4rem,5vh,3.4rem); }
.lp-syscard { padding: 1.3rem 1.3rem 1.5rem; border: 1px solid var(--line-l); border-left: 2px solid var(--mt); background: #fff; }
.lp-syscard__k { font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.lp-syscard__t { font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin: .4rem 0 .4rem; }
.lp-syscard__t b { color: var(--mt); }
.lp-syscard__d { font-size: .85rem; color: #4a4f55; line-height: 1.5; }

/* =====================================================
   /03 CASOS — reusa .h-case (fondo oscuro)
   ===================================================== */
.lp-cases .h-case:first-of-type { border-top: none; }

/* =====================================================
   /04 FACHADAS POR SECTOR — chips de enlace (interlinking)
   ===================================================== */
.lp-sectores__grid { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: clamp(2rem,4vh,3rem); }
.lp-sector { display: inline-flex; align-items: center; gap: .7rem; padding: .85rem 1.2rem; border: 1px solid var(--line-l); transition: background .3s, border-color .3s; }
.lp-sector:hover { background: #fff; border-color: var(--mt); }
.lp-sector__k { font-family: var(--display); font-weight: 500; font-size: 1rem; }
.lp-sector__ar { color: var(--mt); transition: transform .3s; }
.lp-sector:hover .lp-sector__ar { transform: translateX(4px); }

/* =====================================================
   /05 LOS SISTEMAS — producto, al final (fondo oscuro)
   ===================================================== */
.lp-product__lead { max-width: 54ch; margin-top: 1.3rem; color: rgba(245,247,248,.82); line-height: 1.6; font-size: clamp(1rem,1.3vw,1.12rem); }
.lp-product__strip { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: clamp(2rem,4vh,2.8rem); }
.lp-chip { font-family: var(--mono); font-size: .82rem; letter-spacing: .02em; padding: .6rem 1rem; border: 1px solid var(--line-d); color: rgba(245,247,248,.9); transition: border-color .3s, color .3s; }
.lp-chip:hover { border-color: var(--mt); color: var(--white); }

/* =====================================================
   /06 FAQ — <details> nativo, accesible, sin JS
   ===================================================== */
.lp-faq__list { margin-top: clamp(2rem,4vh,3rem); max-width: 60rem; border-top: 1px solid var(--line-l); }
.lp-faq__item { border-bottom: 1px solid var(--line-l); }
.lp-faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.35rem 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.05rem,1.6vw,1.3rem); letter-spacing: -.01em; }
.lp-faq__item summary::-webkit-details-marker { display: none; }
.lp-faq__item summary::after { content: "+"; color: var(--mt); font-family: var(--mono); font-size: 1.3rem; line-height: 1; flex: none; transition: transform .3s; }
.lp-faq__item[open] summary::after { content: "–"; }
.lp-faq__a { padding: 0 0 1.5rem; max-width: 68ch; color: #3a3f45; line-height: 1.62; font-size: clamp(.98rem,1.25vw,1.1rem); }
.lp-faq__a b { color: var(--ink); font-weight: 600; }
.lp-faq__a .mt { color: var(--mt); font-weight: 600; }

/* =====================================================
   CTA FINAL (fondo oscuro)
   ===================================================== */
.lp-cta { position: relative; overflow: hidden; }
.lp-cta__grid { position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: linear-gradient(var(--grid-d) 1px, transparent 1px), linear-gradient(90deg, var(--grid-d) 1px, transparent 1px);
  background-size: 66px 66px; -webkit-mask-image: radial-gradient(110% 100% at 50% 0%, #000, transparent 78%); mask-image: radial-gradient(110% 100% at 50% 0%, #000, transparent 78%); }
.lp-cta__inner { position: relative; z-index: 1; }
.lp-cta__k { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mt); }
.lp-cta__t { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(1.9rem,4.4vw,3.4rem); margin-top: 1.1rem; max-width: 20ch; }
.lp-cta__t .hl { color: var(--mt); }
.lp-cta__info { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; margin-top: 1.8rem; font-family: var(--mono); font-size: .8rem; color: rgba(245,247,248,.8); }
.lp-cta__info a { transition: color .3s; }
.lp-cta__info a:hover { color: var(--mt); }
.lp-cta__info b { color: var(--white); font-weight: 500; }
.lp-cta__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 860px) {
  .lp-grid { grid-template-columns: repeat(2,1fr); }
  .lp-systems { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lp-grid { grid-template-columns: 1fr; }
  .lp-breadcrumb { padding-top: calc(52px + 3rem); }
}
