/**
 * LIMAF v2.0 — Secciones
 * Hero · Servicios (scroll horizontal) · Proyectos (editorial)
 * Manifiesto · Clientes (papel) · FAQ · Contacto
 */

/* ╔══════════════════════════════════════════════════════╗
   ║  HERO                                                 ║
   ╚══════════════════════════════════════════════════════╝ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--nav-h) + var(--s-8));
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image: var(--blueprint-grid);
  background-size: var(--blueprint-size);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
}
.hero__glow {
  position: absolute;
  right: -8%; bottom: -14%;
  width: 58vw; height: 72vh;
  background: radial-gradient(ellipse, rgba(232,52,26,0.17) 0%, transparent 65%);
}
.hero__fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30%;
  background: var(--g-fade-btm);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(2rem, 5vh, 4rem);
}

.hero__eyebrow {
  margin-bottom: clamp(1.2rem, 3vh, 2rem);
}

.hero__title {
  font-size: clamp(2.1rem, 4.4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: 0.005em;
  word-spacing: 0.12em;
  margin-left: -0.02em;
  max-width: 22ch;
}
.hero__title .line-mask { padding-block: 0.02em; }

.hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-12);
  margin-top: clamp(1.6rem, 4vh, 3rem);
}

.hero__sub {
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-8);
}

/* HUD técnico — lecturas del sistema */
.hero__hud {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--sh-sm);
  min-width: 230px;
}
.hero__hud-title {
  font-family: var(--f-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-low);
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line-soft);
}
.hero__hud-title::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  animation: pulse-dot 2s infinite;
}
.hud-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-6);
  font-family: var(--f-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.08em;
}
.hud-row .k { color: var(--ink-low); text-transform: uppercase; }
.hud-row .v { color: var(--ink); font-size: var(--t-sm); }
.hud-row .v .unit { color: var(--fire-400); font-size: var(--t-2xs); margin-left: 2px; }

@media (max-width: 1024px) { .hero__hud { display: none; } }

/* Indicador de scroll */
.hero__scroll {
  position: absolute;
  right: var(--pad);
  bottom: calc(var(--s-8) + 96px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  z-index: 2;
}
.hero__scroll-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-low);
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px; height: 56px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--fire-500);
  animation: scroll-drip 2.2s var(--e-inout) infinite;
}
@media (max-width: 1024px) { .hero__scroll { display: none; } }

/* Barra de stats al pie del hero */
.hero__stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hero__stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: var(--s-6) var(--s-8);
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: none; }
.stat__value {
  font-family: var(--f-display);
  font-size: var(--t-2xl);
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.stat__value .sfx { color: var(--fire-500); }
.stat__label {
  margin-top: var(--s-2);
  font-family: var(--f-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-low);
}
@media (max-width: 860px) {
  .hero__stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
}

/* ╔══════════════════════════════════════════════════════╗
   ║  SERVICIOS — scroll horizontal pinneado               ║
   ╚══════════════════════════════════════════════════════╝ */

.services { background: var(--bg); }

.services__pin {
  position: relative;
  overflow: hidden;
}

.services__head {
  padding-top: clamp(4rem, 7vw, 5.5rem);
}

.services__track {
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  padding-block: clamp(2rem, 3.5vw, 3rem);
  padding-inline: var(--pad);
  width: max-content;
  will-change: transform;
}

.svc {
  position: relative;
  width: clamp(300px, 34vw, 460px);
  min-height: clamp(360px, 48vh, 470px);
  padding: clamp(1.6rem, 2.6vw, 2.6rem);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: border-color var(--d-base) var(--e-out),
              transform var(--d-base) var(--e-out),
              box-shadow var(--d-base) var(--e-out);
}
.svc:hover {
  border-color: var(--line-hot);
  transform: translateY(-6px);
  box-shadow: var(--sh-md), 0 0 40px rgba(232,52,26,0.08);
}

/* Número gigante de fondo */
.svc__ghost {
  position: absolute;
  top: -0.18em; right: 0.02em;
  font-family: var(--f-display);
  font-size: clamp(6rem, 10vw, 9rem);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(20,20,30,0.08);
  pointer-events: none;
  transition: -webkit-text-stroke-color var(--d-base);
}
.svc:hover .svc__ghost { -webkit-text-stroke-color: rgba(232,52,26,0.3); }

.svc__tag {
  font-family: var(--f-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fire-400);
  margin-bottom: var(--s-4);
}

.svc__icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--fire-400);
  background: var(--fire-dim);
  margin-bottom: var(--s-6);
  transition: transform var(--d-base) var(--e-spring), background var(--d-base);
}
.svc:hover .svc__icon { transform: rotate(-6deg) scale(1.08); background: rgba(232,52,26,0.2); }

.svc__title {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.08;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}

.svc__desc {
  font-size: var(--t-sm);
  color: var(--ink-mid);
  line-height: 1.65;
  flex: 1;
}

.svc__specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-soft);
}

/* Progreso del carril */
.services__progress {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.services__progress-bar {
  flex: 1;
  height: 1px;
  background: var(--line);
  position: relative;
}
.services__progress-fill {
  position: absolute;
  inset: 0;
  background: var(--g-fire);
  transform: scaleX(0);
  transform-origin: left;
}
.services__progress-label {
  font-family: var(--f-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.14em;
  color: var(--ink-low);
}

/* Móvil: apilado vertical, sin pin */
@media (max-width: 860px) {
  .services__track {
    flex-direction: column;
    width: auto;
    padding-inline: 0;
  }
  .svc { width: 100%; min-height: 0; }
  .services__progress { display: none; }
}

/* ╔══════════════════════════════════════════════════════╗
   ║  PROYECTOS — lista editorial con preview              ║
   ╚══════════════════════════════════════════════════════╝ */

.projects {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
}

.proj-list {
  position: relative;
  border-top: 1px solid var(--line);
}

.proj-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(1.6rem, 3.2vw, 2.8rem) var(--s-4);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background var(--d-base) var(--e-out), padding-left var(--d-base) var(--e-out);
}
.proj-row:hover { background: rgba(232,52,26,0.04); padding-left: var(--s-8); }

.proj-row__idx {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--ink-low);
  letter-spacing: 0.1em;
}

.proj-row__body { min-width: 0; }

.proj-row__title {
  font-family: var(--f-display);
  font-size: var(--t-2xl);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.02;
  color: var(--ink);
  transition: color var(--d-base) var(--e-out), transform var(--d-base) var(--e-out);
}
.proj-row:hover .proj-row__title { color: var(--fire-400); }

.proj-row__meta {
  margin-top: var(--s-2);
  font-family: var(--f-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-low);
}

.proj-row__tags {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 300px;
}

/* Panel de preview flotante (desktop, sigue al mouse) */
.proj-view {
  position: fixed;
  top: 0; left: 0;
  width: 340px;
  aspect-ratio: 4/3;
  z-index: var(--z-raised);
  pointer-events: none;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  opacity: 0;
  transform: scale(0.85);
  visibility: hidden;
}
.proj-view__img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--d-base) var(--e-out);
  display: flex;
  align-items: center;
  justify-content: center;
}
.proj-view__img.is-active { opacity: 1; }
.proj-view__img svg { width: 45%; height: auto; opacity: 0.25; }
.proj-view__img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.proj-view__label { z-index: 2; }
.proj-view__label {
  position: absolute;
  left: var(--s-4); bottom: var(--s-4);
  font-family: var(--f-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  z-index: 2;
}
@media (hover: none), (max-width: 860px) { .proj-view { display: none; } }

@media (max-width: 680px) {
  .proj-row { grid-template-columns: auto 1fr; }
  .proj-row__tags { display: none; }
}

/* ╔══════════════════════════════════════════════════════╗
   ║  MANIFIESTO — statement + credenciales               ║
   ╚══════════════════════════════════════════════════════╝ */

.manifesto {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
.manifesto__glow {
  position: absolute;
  top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 90vw; height: 70vh;
  background: var(--g-glow-top);
  pointer-events: none;
}
.manifesto__text {
  font-family: var(--f-display);
  font-size: var(--t-3xl);
  font-weight: 500;
  line-height: 1.18;
  color: var(--ink);
  max-width: 20ch;
}
.manifesto__text .word { opacity: 0.15; transition: opacity 0.4s var(--e-out); }
.manifesto__text .word.is-lit { opacity: 1; }
.manifesto__text .t-fire-grad { font-weight: 600; }

.manifesto__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-10);
  margin-top: var(--s-16);
}
.manifesto__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  max-width: 480px;
}

/* ╔══════════════════════════════════════════════════════╗
   ║  CLIENTES — sección papel                             ║
   ╚══════════════════════════════════════════════════════╝ */

.clients {
  background: var(--paper);
  color: var(--paper-ink-mid);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

/* Eyebrow sobre fondo claro (cualquier sección .on-paper) */
.on-paper .eyebrow { color: var(--fire-600); }
.on-paper .eyebrow::before { background: var(--fire-600); }
.on-paper .eyebrow .idx { color: rgba(19,19,22,0.4); }

/* Muro de clientes tipo wordmark */
.clients__wall {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--paper-line);
  border-left: 1px solid var(--paper-line);
  margin-bottom: clamp(3rem, 7vw, 6rem);
}
.client-cell {
  flex: 1 1 25%;
  min-width: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-8) var(--s-6);
  border-right: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--t-md);
  letter-spacing: 0.02em;
  color: rgba(19,19,22,0.55);
  text-align: center;
  transition: color var(--d-base) var(--e-out), background var(--d-base) var(--e-out);
}
.client-cell:hover { color: var(--fire-600); background: rgba(232,52,26,0.04); }
.client-cell .sector {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(19,19,22,0.35);
  display: block;
  margin-top: 2px;
}

/* Testimonios */
.tst {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 24px rgba(19,19,22,0.05);
  transition: transform var(--d-base) var(--e-out), box-shadow var(--d-base) var(--e-out);
}
.tst:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(19,19,22,0.1);
}
.tst__mark {
  font-family: var(--f-display);
  font-size: 3.4rem;
  line-height: 0.5;
  color: var(--fire-500);
  height: 0.5em;
}
.tst__body {
  flex: 1;
  font-size: var(--t-sm);
  line-height: 1.7;
  color: var(--paper-ink-mid);
}
.tst__author {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--paper-line);
}
.tst__avatar {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--g-fire);
  color: var(--white);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  font-weight: 700;
}
.tst__name { font-weight: 700; color: var(--paper-ink); font-size: var(--t-sm); }
.tst__role {
  font-family: var(--f-mono);
  font-size: var(--t-2xs);
  color: rgba(19,19,22,0.45);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* ╔══════════════════════════════════════════════════════╗
   ║  CTA BAND                                             ║
   ╚══════════════════════════════════════════════════════╝ */

.cta-band {
  position: relative;
  background: var(--g-fire);
  color: var(--white);
  overflow: hidden;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-8);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.cta-band__title {
  font-family: var(--f-display);
  font-size: var(--t-3xl);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
  max-width: 14ch;
}
.cta-band .btn--paper {
  background: var(--white);
  color: var(--fire-600);
}
.cta-band .btn--paper::before { background: var(--carbon-950); }
.cta-band .btn--paper:hover { color: var(--white); }
.cta-band .btn--paper:hover::before { transform: scaleY(1); }
/* Marca de agua triángulo */
.cta-band__mark {
  position: absolute;
  right: -4%; top: 50%;
  transform: translateY(-50%);
  width: 340px; height: 340px;
  opacity: 0.14;
  pointer-events: none;
}

/* ╔══════════════════════════════════════════════════════╗
   ║  FAQ                                                  ║
   ╚══════════════════════════════════════════════════════╝ */

.faq {
  background: var(--paper);
  color: var(--paper-ink-mid);
}
.faq__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.faq__aside { position: sticky; top: calc(var(--nav-h) + var(--s-10)); }
@media (max-width: 860px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__aside { position: static; }
}

/* ╔══════════════════════════════════════════════════════╗
   ║  CONTACTO                                             ║
   ╚══════════════════════════════════════════════════════╝ */

.contact {
  position: relative;
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}
.contact__glow {
  position: absolute;
  bottom: -25%; right: -12%;
  width: 55vw; height: 55vw;
  max-width: 720px; max-height: 720px;
  background: radial-gradient(ellipse, rgba(232,52,26,0.09), transparent 70%);
  pointer-events: none;
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 940px) { .contact__grid { grid-template-columns: 1fr; } }

.c-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-5);
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--line-soft);
}
.c-item__icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--fire-400);
  background: var(--fire-dim);
}
.c-item__label {
  font-family: var(--f-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-low);
  margin-bottom: var(--s-1);
}
.c-item__value {
  color: var(--ink);
  font-size: var(--t-md);
  line-height: 1.5;
}
a.c-item__value { transition: color var(--d-fast); }
a.c-item__value:hover { color: var(--fire-400); }

/* ── Responsive general del hero ── */
@media (max-width: 680px) {
  .hero__row { flex-direction: column; align-items: flex-start; }
  .hero__title { max-width: none; }
}

/* ╔══════════════════════════════════════════════════════╗
   ║  MULTI-PÁGINA                                         ║
   ╚══════════════════════════════════════════════════════╝ */

/* ── Hero de página interna ── */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(4rem, 9vh, 7rem));
  padding-bottom: clamp(3rem, 6vh, 5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--blueprint-grid);
  background-size: var(--blueprint-size);
  -webkit-mask-image: radial-gradient(ellipse 85% 90% at 50% 0%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 90% at 50% 0%, #000 25%, transparent 72%);
}
.page-hero__glow {
  position: absolute;
  top: -30%; right: -10%;
  width: 50vw; height: 60vh;
  background: radial-gradient(ellipse, rgba(232,52,26,0.1), transparent 65%);
  pointer-events: none;
}
.page-hero .crumb {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--f-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-low);
  margin-bottom: var(--s-6);
}
.page-hero .crumb a { color: var(--ink-low); transition: color var(--d-fast); }
.page-hero .crumb a:hover { color: var(--fire-400); }
.page-hero .crumb .sep { color: var(--fire-600); }
.page-hero__title { font-size: var(--t-hero); }
.page-hero__sub {
  margin-top: var(--s-6);
  max-width: 52ch;
}

/* ── Tarjetas de servicio en grilla (teaser del index) ── */
.svc--grid { width: auto; min-height: 0; }

/* ── Detalle de servicio (servicios.html) ── */
.sd {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 2rem);
}
.sd:last-of-type { border-bottom: none; }
@media (max-width: 860px) { .sd { grid-template-columns: 1fr; } }

.sd__num {
  font-family: var(--f-display);
  font-size: var(--t-3xl);
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232,52,26,0.5);
  line-height: 1;
}
.sd__title {
  font-family: var(--f-display);
  font-size: var(--t-2xl);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.05;
  margin-top: var(--s-4);
}
.sd__tag {
  font-family: var(--f-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fire-400);
  margin-top: var(--s-3);
}
.sd__desc { margin-bottom: var(--s-6); }
.sd__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3) var(--s-6);
}
@media (max-width: 560px) { .sd__list { grid-template-columns: 1fr; } }
.sd__item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--t-sm);
  color: var(--ink-mid);
  padding: var(--s-2) 0;
}
.sd__item::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  margin-top: 0.5em;
  background: var(--fire-500);
  transform: rotate(45deg);
}
.sd__norms {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-soft);
}

/* ── Ficha de proyecto (proyectos.html) ── */
.pd {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: stretch;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  margin-bottom: var(--s-8);
  scroll-margin-top: calc(var(--nav-h) + 2rem);
  transition: border-color var(--d-base) var(--e-out), box-shadow var(--d-base) var(--e-out);
}
.pd:hover { border-color: var(--line-hot); }
.pd:target { border-color: var(--fire-500); box-shadow: var(--sh-fire); }
@media (max-width: 860px) { .pd { grid-template-columns: 1fr; } }

.pd__visual {
  position: relative;
  min-height: 260px;
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd__visual svg { width: 42%; height: auto; opacity: 0.22; }
.pd__visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--d-slow) var(--e-out);
}
.pd:hover .pd__visual > img { transform: scale(1.04); }
.pd__visual .pd__cat { z-index: 2; }
.pd__visual .pd__cat {
  position: absolute;
  left: var(--s-4); bottom: var(--s-4);
  font-family: var(--f-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}
.pd__idx {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--fire-400);
  letter-spacing: 0.1em;
}
.pd__title {
  font-family: var(--f-display);
  font-size: var(--t-2xl);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.02;
  margin-top: var(--s-3);
}
.pd__desc { margin-top: var(--s-4); }
.pd__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-soft);
}
.pd__meta .k {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-low);
  display: block;
  margin-bottom: 4px;
}
.pd__meta .v { color: var(--ink); font-size: var(--t-sm); }
.pd__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }

/* ── Blog ── */
.post {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform var(--d-base) var(--e-out), border-color var(--d-base), box-shadow var(--d-base);
}
.post:hover { transform: translateY(-6px); border-color: var(--line-hot); }
.post__head {
  position: relative;
  aspect-ratio: 16/8;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: var(--blueprint-grid);
  background-size: 40px 40px;
  border-bottom: 1px solid var(--line-soft);
}
.post__head svg { width: 56px; height: 56px; color: var(--fire-500); opacity: 0.8; }
.post__body { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.post__meta {
  display: flex;
  gap: var(--s-4);
  font-family: var(--f-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-low);
}
.post__meta .cat { color: var(--fire-400); }
.post__title {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
}
.post__excerpt { font-size: var(--t-sm); color: var(--ink-mid); flex: 1; }
.post--featured { grid-column: 1 / -1; }
@media (min-width: 861px) {
  .post--featured { flex-direction: row; }
  .post--featured .post__head { flex: 1; aspect-ratio: auto; border-bottom: none; border-right: 1px solid var(--line-soft); }
  .post--featured .post__body { flex: 1.2; padding: clamp(1.5rem, 3vw, 2.5rem); justify-content: center; }
  .post--featured .post__title { font-size: var(--t-2xl); }
}

/* ╔══════════════════════════════════════════════════════╗
   ║  ARTÍCULO INDIVIDUAL (blog · lectura tipo prosa)      ║
   ╚══════════════════════════════════════════════════════╝ */

.article { padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vh, 4.5rem)); padding-bottom: clamp(3rem, 7vh, 6rem); }
.article__head { max-width: 720px; margin: 0 auto; }
.article__crumb { font-family: var(--f-mono); font-size: var(--t-2xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-low); margin-bottom: var(--s-6); }
.article__crumb a { color: var(--ink-mid); }
.article__crumb a:hover { color: var(--fire-600); }
.article__meta { display: flex; gap: var(--s-4); flex-wrap: wrap; align-items: center; font-family: var(--f-mono); font-size: var(--t-2xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-low); margin-bottom: var(--s-5); }
.article__meta .cat { color: var(--fire-600); }
.article__title { font-family: var(--f-display); font-size: var(--t-4xl); font-weight: 600; line-height: 1.06; letter-spacing: -0.015em; color: var(--ink); }
.article__lead { font-size: var(--t-lg); line-height: 1.6; color: var(--ink-mid); margin-top: var(--s-6); }

.article__body { max-width: 680px; margin: var(--s-10) auto 0; }
.article__body h2 { font-family: var(--f-display); font-size: var(--t-xl); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); margin: var(--s-10) 0 var(--s-4); }
.article__body p { font-size: var(--t-base); line-height: 1.75; color: var(--ink-mid); margin-bottom: var(--s-5); }
.article__body strong { color: var(--ink); font-weight: 700; }
.article__body ul { margin: 0 0 var(--s-5); padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.article__body li { position: relative; padding-left: var(--s-6); font-size: var(--t-base); line-height: 1.7; color: var(--ink-mid); }
.article__body li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; background: var(--fire-500); border-radius: 2px; }
.article__body li strong { color: var(--ink); }

.article__note { border-left: 3px solid var(--fire-500); padding: var(--s-1) 0 var(--s-1) var(--s-5); margin: var(--s-8) 0; font-size: var(--t-md); line-height: 1.6; color: var(--ink); }

.article__cta { max-width: 680px; margin: var(--s-16) auto 0; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-3); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-6); }
.article__cta p { max-width: 46ch; }

/* Tabla dentro de artículos */
.article__table-wrap { overflow-x: auto; margin: var(--s-6) 0; border: 1px solid var(--line); border-radius: var(--r-md); }
.article__table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.article__table th, .article__table td { text-align: left; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); vertical-align: top; }
.article__table thead th { font-family: var(--f-mono); font-size: var(--t-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-low); background: var(--bg-3); }
.article__table tbody tr:last-child td { border-bottom: none; }
.article__table .num { font-family: var(--f-mono); color: var(--ink); white-space: nowrap; }

/* ╔══════════════════════════════════════════════════════╗
   ║  TARJETA DE SERVICIO CON FOTO (.svc--photo)          ║
   ╚══════════════════════════════════════════════════════╝ */
.svc--photo {
  min-height: clamp(400px, 42vw, 460px);
  justify-content: flex-end;
  color: #fff;
  border: none;
  background: var(--carbon-900);
  box-shadow: var(--sh-md);
}
.svc--photo .svc__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform var(--d-xslow) var(--e-out);
}
.svc--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(12,12,14,0.25) 0%, rgba(12,12,14,0.55) 48%, rgba(12,12,14,0.90) 100%);
}
.svc--photo > *:not(.svc__img) { position: relative; z-index: 2; }
.svc--photo:hover .svc__img { transform: scale(1.07); }
.svc--photo .svc__tag { color: var(--fire-300); margin-top: auto; }
.svc--photo .svc__title { color: #fff; }
.svc--photo .svc__desc { color: rgba(255,255,255,0.86); }
.svc--photo .svc__ghost { -webkit-text-stroke-color: rgba(255,255,255,0.22); }
.svc--photo .svc__icon { color: #fff; border-color: rgba(255,255,255,0.32); background: rgba(255,255,255,0.12); }
.svc--photo .badge { color: #fff; border-color: rgba(255,255,255,0.34); background: rgba(255,255,255,0.06); }
.svc--photo:hover { border: none; box-shadow: var(--sh-lg), 0 0 50px rgba(232,52,26,0.12); }

/* ╔══════════════════════════════════════════════════════╗
   ║  BANDA PARALLAX (.band)                               ║
   ╚══════════════════════════════════════════════════════╝ */
.band {
  position: relative;
  overflow: hidden;
  min-height: clamp(440px, 76vh, 760px);
  display: flex;
  align-items: center;
}
.band__media {
  position: absolute;
  left: 0; right: 0; top: -70%;
  height: 200%;
  z-index: 0;
  will-change: transform;
}
.band__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.band__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10,10,12,0.78) 0%, rgba(10,10,12,0.45) 55%, rgba(10,10,12,0.25) 100%);
}
.band__content { position: relative; z-index: 2; color: #fff; }
.band__content .eyebrow { color: var(--fire-300); }
.band__content .eyebrow .idx { color: rgba(255,255,255,0.6); }
.band__title { font-family: var(--f-display); font-size: var(--t-4xl); font-weight: 600; line-height: 1.04; letter-spacing: -0.015em; color: #fff; text-transform: uppercase; max-width: 20ch; }
.band__title .t-fire-grad {
  background: linear-gradient(105deg, var(--fire-300), var(--fire-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.band__sub { margin-top: var(--s-5); max-width: 48ch; color: rgba(255,255,255,0.85); }

/* Portada / figura dentro de artículo */
.article__cover { max-width: 400px; margin: var(--s-8) auto 0; }
.article__cover img { width: 100%; height: auto; display: block; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--sh-md); }
.article__cover figcaption { margin-top: var(--s-3); font-family: var(--f-mono); font-size: var(--t-2xs); letter-spacing: 0.05em; color: var(--ink-low); text-align: center; line-height: 1.5; }

/* Miniatura con imagen en tarjeta de blog */
.post__head--img { min-height: 220px; background-color: var(--bg-3); }

/* Versión ligera (móvil / táctil / ahorro de datos): sin lienzo 3D */
.is-light #hero-canvas { display: none; }
/* Táctil ancho (tablets): sin GSAP, el carril de servicios se desliza con el dedo */
.is-light .services__pin { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.is-light .services__track .svc { scroll-snap-align: start; }
