/* =============================================================
   Servicios Integrales NIIC — styles.css
   Arquetipo: retícula brutalista · blanco / negro asfalto / amarillo tráfico
   Sin radios, sin sombras, sin degradados. La línea de 1px es el diseño.
   ============================================================= */

/* =============================================================
   0. Fuentes (autoalojadas — variables: Archivo con eje de anchura, JetBrains Mono)
   ============================================================= */
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"), url("assets/fonts/archivo-latin-wdth-normal.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;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("assets/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations"), url("assets/fonts/archivo-latin-ext-wdth-normal.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: "JetBrains Mono"; font-style: normal; font-display: swap;
  font-weight: 100 800;
  src: url("assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations"), url("assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
}

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #ffffff;
  --bg-soft:   #f4f4f2;
  --ink:       #0a0a0a;
  --ink-soft:  #2b2b2b;
  --ink-mute:  #6a6a6a;
  --asphalt:   #111111;
  --asphalt-2: #1a1a1a;
  --accent:    #F5C400;   /* amarillo tráfico */
  --accent-ink:#0a0a0a;
  --line:      #0a0a0a;
  --line-soft: rgba(10,10,10,.14);
  --line-dark: rgba(255,255,255,.18);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 64px;
  --cell-pad: clamp(1.1rem, 2.4vw, 2rem);
  --wrap: 1480px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; border-radius: 0; }
input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1; letter-spacing: -0.015em; font-weight: 800; font-stretch: 78%; text-transform: uppercase; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--accent); color: var(--ink); z-index: 9999; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.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; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .02em; }
.muted { color: var(--ink-mute); }
.num { font-family: var(--mono); font-weight: 700; margin-right: .6em; }

/* La retícula: 12 columnas, 1px de separación = las líneas. */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid > * { background: var(--bg); padding: var(--cell-pad); grid-column: span 12; min-width: 0; }
.grid-dark { --line: var(--line-dark); background: var(--line-dark); border-color: var(--line-dark); }
.grid-dark > * { background: var(--asphalt); color: #fff; }
.grid-yellow > * { background: var(--accent); color: var(--ink); }

@media (min-width: 720px) {
  .grid > .c-6, .grid > .c-7, .grid > .c-5, .grid > .c-8, .grid > .c-4, .grid > .c-3 { grid-column: span 6; }
}
@media (min-width: 960px) {
  .grid > .c-12 { grid-column: span 12; }
  .grid > .c-8  { grid-column: span 8; }
  .grid > .c-7  { grid-column: span 7; }
  .grid > .c-6  { grid-column: span 6; }
  .grid > .c-5  { grid-column: span 5; }
  .grid > .c-4  { grid-column: span 4; }
  .grid > .c-3  { grid-column: span 3; }
}

/* =============================================================
   4. Tipografía
   ============================================================= */
.kicker {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.grid-dark .kicker { color: rgba(255,255,255,.72); }
.kicker .num { color: var(--ink); background: var(--accent); padding: .1em .45em; margin-right: .8em; }
.grid-dark .kicker .num { color: var(--ink); }
.h2 { font-size: clamp(2rem, 4.6vw, 4.2rem); max-width: 18ch; }
.section-intro { margin-top: 1.1rem; font-size: clamp(1.02rem, 1.35vw, 1.2rem); max-width: 62ch; color: var(--ink-soft); }
.grid-dark .section-intro { color: rgba(255,255,255,.78); }
.grid-dark .muted { color: rgba(255,255,255,.55); }

/* =============================================================
   5. Componentes
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .8rem 1.4rem;
  font-weight: 700; font-stretch: 88%; text-transform: uppercase; letter-spacing: .03em; font-size: .9rem;
  border: 2px solid var(--ink);
  transition: background-color .12s steps(1), color .12s steps(1);
}
.btn-fill { background: var(--ink); color: #fff; }
.btn-fill:hover { background: var(--accent); color: var(--ink); border-color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-yellow { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn-yellow:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-line-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-line-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Barra de progreso: la raya amarilla de la calle */
.road-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 1001; background: transparent; pointer-events: none; }
.road-progress span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--accent) 0 28px, transparent 28px 40px); }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  min-height: var(--nav-h); padding: 0 1rem;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.nav-brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  background: var(--accent); color: var(--ink);
  font-weight: 900; font-stretch: 70%; font-size: 1.05rem; letter-spacing: -.01em;
}
.brand-text { font-family: var(--mono); font-size: .62rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .08em; }
.nav-links { display: none; justify-content: center; gap: 0; }
.nav-links a { white-space: nowrap; padding: .6rem 1.1rem; font-size: .9rem; font-weight: 600; font-stretch: 90%; text-transform: uppercase; letter-spacing: .04em; transition: background-color .1s steps(1), color .1s steps(1); }
.nav-links a:hover { background: var(--ink); color: #fff; }
.nav-links .nav-cta { background: var(--accent); color: var(--ink); margin-left: .5rem; }
.nav-links .nav-cta:hover { background: var(--ink); color: var(--accent); }
.nav-phone { display: none; font-family: var(--mono); font-size: .8rem; padding: .5rem .8rem; border: 1px solid var(--line); }
.nav-phone:hover { background: var(--ink); color: #fff; }
.nav-burger { display: grid; gap: 6px; width: 46px; height: 46px; place-content: center; border: 1px solid var(--line); }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .25s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 959px) {
  .nav-links {
    display: grid; position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(calc(-100% - var(--nav-h) - 20px)); visibility: hidden;
    transition: transform .35s var(--ease-out), visibility 0s linear .35s;
    z-index: 999;
  }
  .nav-links { justify-content: stretch; grid-template-columns: 1fr; }
  .nav-links a { display: block; width: 100%; padding: 1rem 1.25rem; border-top: 1px solid var(--line-soft); font-size: 1.1rem; }
  .nav-links .nav-cta { margin-left: 0; }
  .nav.is-open .nav-links { transform: translateY(0); visibility: visible; transition: transform .35s var(--ease-out), visibility 0s; }
}
@media (min-width: 960px) {
  .nav { padding: 0 2rem; }
  .nav-links { display: flex; }
  .nav-burger { display: none; }
}
@media (min-width: 960px) and (max-width: 1279px) {
  .nav { padding: 0 1.25rem; }
  .nav-links a { padding: .55rem .8rem; font-size: .84rem; }
}

/* =============================================================
   6. Secciones
   ============================================================= */
.section { padding-block: clamp(3rem, 7vw, 6.5rem); }
.section-head { margin-bottom: 1px; border-bottom: 0; }
.section-head + .grid { border-top: 0; }
.section-dark { background: var(--asphalt); color: #fff; }
.section-yellow { background: var(--accent); color: var(--ink); }
.section-yellow .kicker { color: var(--ink); }
.section-yellow .kicker .num { background: var(--ink); color: var(--accent); }

/* ---- Hero ---- */
.hero { padding-top: clamp(1rem, 3vw, 2.5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero-kicker { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .9rem; }
.kicker-right { color: var(--ink-mute); }
.hero-title {
  font-size: clamp(2.6rem, 6.1vw, 7.4rem);
  line-height: .92;
  letter-spacing: -0.025em;
  font-stretch: 70%;
  font-weight: 900;
}
.hero-title .line { display: block; }
.hero-title em { font-style: normal; color: transparent; -webkit-text-stroke: 2px var(--ink); }
@media (min-width: 960px) { .hero-title em { -webkit-text-stroke: 3px var(--ink); } }
.hero-title-cell { display: flex; align-items: flex-end; }
.hero-copy { display: flex; flex-direction: column; justify-content: flex-end; gap: 1.1rem; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; max-width: 46ch; }
.lead strong { font-weight: 700; background: var(--accent); padding: 0 .15em; }
.lead-sub { color: var(--ink-mute); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.hero-figure-cell { padding: 0 !important; }
.hero-figure { position: relative; overflow: clip; }
.hero-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 640px) { .hero-figure img { aspect-ratio: 9 / 14; object-position: center 60%; } }
.hero-figure figcaption {
  position: absolute; left: 0; bottom: 0; max-width: min(100%, 60ch);
  padding: .55rem .9rem; font-size: .72rem; line-height: 1.4;
  background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); border-right: 1px solid var(--line);
}
.hero-fact { display: flex; flex-direction: column; gap: .5rem; }
.fact-num { font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; }
.fact-label { font-size: .9rem; color: var(--ink-soft); max-width: 30ch; }
.hero-fact:hover { background: var(--accent); }

/* ---- Marquee ---- */
.marquee { overflow: clip; background: var(--asphalt); color: #fff; border-block: 1px solid var(--line); }
.marquee-track {
  display: inline-flex; align-items: center; white-space: nowrap; gap: 2.2rem;
  padding-block: .9rem; padding-right: 2.2rem;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.marquee-track span { font-weight: 800; font-stretch: 72%; text-transform: uppercase; font-size: clamp(1.1rem, 2vw, 1.6rem); letter-spacing: .01em; }
.marquee-track i { width: 14px; height: 14px; background: var(--accent); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---- Por qué: cotos y plazas ---- */
.inline-link { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.inline-link:hover { background: var(--accent); }
.why { display: flex; flex-direction: column; gap: .9rem; }
.why-head { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.why-num { font-size: 1.1rem; font-weight: 700; background: var(--accent); color: var(--ink); padding: .15em .45em; margin-top: .25em; }
.why h3 { font-size: clamp(1.5rem, 2.3vw, 2.1rem); }
.why-lead { font-size: 1.02rem; color: var(--ink-soft); }
.why-lead strong { color: var(--ink); background: var(--accent); padding: 0 .15em; }
.why ul { border-top: 1px solid var(--line-soft); }
.why li { padding: .55rem 0 .55rem 1.3rem; border-bottom: 1px solid var(--line-soft); font-size: .93rem; color: var(--ink-soft); position: relative; }
.why li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 8px; height: 8px; background: var(--accent); }
.why-link { margin-top: auto; padding-top: .6rem; font-weight: 700; font-stretch: 88%; text-transform: uppercase; letter-spacing: .03em; font-size: .88rem; align-self: flex-start; }
.why-link:hover { background: var(--accent); }
.why-dark { background: var(--asphalt) !important; color: #fff; }
.why-dark .why-lead, .why-dark li, .why-dark .why-note { color: rgba(255,255,255,.8); }
.why-dark .why-lead strong { color: var(--ink); }
.why-dark ul, .why-dark li { border-color: var(--line-dark); }
.why-dark .why-link { color: var(--accent); }
.why-dark .why-link:hover { background: var(--accent); color: var(--ink); }
.tiers { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tiers th { text-align: left; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); padding: .5rem 0; border-bottom: 1px solid var(--accent); }
.tiers td { padding: .6rem 0; border-bottom: 1px solid var(--line-dark); }
.tiers td:last-child, .tiers th:last-child { text-align: right; white-space: nowrap; }
.tiers td.mono { color: var(--accent); font-weight: 700; }
.why-note { font-size: .82rem; }
.why-wide { background: var(--bg-soft) !important; }
.why-cols { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .why-cols { grid-template-columns: 1fr 1fr; } }
.why-wide .hero-actions { margin-top: .6rem; }

/* ---- Servicios ---- */
.service { display: flex; flex-direction: column; gap: .8rem; transition: background-color .12s steps(1), color .12s steps(1); }
.service-num { font-size: 2.4rem; font-weight: 700; letter-spacing: -.04em; color: var(--ink-mute); line-height: 1; }
.service h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.service p { color: var(--ink-soft); }
.service ul { margin-top: .4rem; border-top: 1px solid var(--line-soft); }
.service li { padding: .55rem 0; border-bottom: 1px solid var(--line-soft); font-size: .95rem; display: flex; gap: .7rem; }
.service li::before { content: "—"; font-family: var(--mono); color: var(--ink-mute); }
.service:hover { background: var(--ink); color: #fff; }
.service:hover .service-num { color: var(--accent); }
.service:hover p, .service:hover li::before { color: rgba(255,255,255,.7); }
.service:hover ul, .service:hover li { border-color: rgba(255,255,255,.2); }

/* ---- Escala: de la chambita a la obra ---- */
.scale-grid { margin-top: 1px; border-top: 0; }
.scale-head { background: var(--accent) !important; }
.scale-head .kicker .num { background: var(--ink); color: var(--accent); }
.scale-title { font-size: clamp(2rem, 4.2vw, 3.6rem); margin-top: .6rem; }
.scale-head .section-intro { color: rgba(10,10,10,.8); }
.scale-list { padding: 0 !important; counter-reset: esc; }
.scale-list li {
  display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: 1rem;
  padding: .85rem var(--cell-pad); border-bottom: 1px solid var(--line-soft);
  font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 600; font-stretch: 90%;
  transition: background-color .1s steps(1), color .1s steps(1);
}
.scale-list li:last-child { border-bottom: 0; }
.scale-list li .mono { font-size: .78rem; color: var(--ink-mute); }
.scale-list li::after { content: ""; justify-self: end; width: 10px; height: 10px; background: var(--accent); grid-column: 3; }
.scale-list li { grid-template-columns: 7.5rem 1fr auto; }
.scale-list li:hover { background: var(--ink); color: #fff; }
.scale-list li:hover .mono { color: var(--accent); }
@media (max-width: 539px) {
  .scale-list li { grid-template-columns: 1fr auto; }
  .scale-list li .mono { grid-column: 1 / -1; }
}
/* Remodelaciones y calles con más peso: celdas destacadas */
.service:nth-child(2), .service:nth-child(3) { background: var(--bg-soft); }
.service:nth-child(2) .service-num, .service:nth-child(3) .service-num { color: var(--ink); background: var(--accent); align-self: flex-start; padding: 0 .2em; }

/* ---- Nosotros ---- */
.section-soft { background: var(--bg-soft); }
.about-tag { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; background: var(--ink); color: var(--accent); padding: .25em .6em; margin-bottom: 1rem; }
.about-card { display: flex; flex-direction: column; gap: .6rem; }
.about-card h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.about-card p { color: var(--ink-soft); font-size: .98rem; }
.about-values ul { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.about-values li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; color: var(--ink-soft); }
.about-values li .mono { color: var(--ink); font-weight: 700; }
.about-values li strong { color: var(--ink); }
.about-services { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.about-services .about-tag { margin-bottom: 0; }
.about-services-list { display: flex; flex-wrap: wrap; gap: .4rem; flex: 1; }
.about-services-list a { display: inline-block; padding: .45rem .75rem; border: 1px solid var(--line); font-weight: 600; font-stretch: 90%; font-size: .86rem; text-transform: uppercase; letter-spacing: .02em; transition: background-color .1s steps(1), color .1s steps(1); }
.about-services-list a:hover { background: var(--accent); }
.about-services-list a::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--accent); margin-right: .5rem; vertical-align: middle; }
.about-services-list a:hover::before { background: var(--ink); }

/* ---- Antes / Después ---- */
.compare { padding: 0 !important; display: flex; flex-direction: column; }
.compare-stage { position: relative; aspect-ratio: 16 / 9; overflow: clip; user-select: none; -webkit-user-select: none; touch-action: pan-y; background: var(--asphalt-2); }
.compare-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--accent); pointer-events: none;
}
.compare-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; background: var(--accent); color: var(--ink);
  display: grid; place-items: center;
}
.compare-handle span::before { content: "◂ ▸"; font-family: var(--mono); font-size: .8rem; font-weight: 700; letter-spacing: .1em; }
.compare-tag { position: absolute; top: .8rem; padding: .3rem .6rem; font-size: .72rem; text-transform: uppercase; background: var(--asphalt); color: #fff; pointer-events: none; }
.tag-before { left: .8rem; }
.tag-after { right: .8rem; background: var(--accent); color: var(--ink); }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent;
}
.compare-range:focus-visible { opacity: 1; outline-offset: -3px; }
.compare-range::-webkit-slider-thumb { -webkit-appearance: none; width: 46px; height: 100%; background: transparent; }
.compare-range::-moz-range-thumb { width: 46px; height: 100%; background: transparent; border: 0; }
.compare figcaption { padding: .9rem var(--cell-pad); font-size: .92rem; color: rgba(255,255,255,.82); border-top: 1px solid var(--line-dark); display: flex; gap: .8rem; }
.compare figcaption .mono { color: var(--accent); }

/* ---- Segmentos ---- */
.segments-grid > .segment { grid-column: span 12; }
@media (min-width: 720px) { .segments-grid > .segment { grid-column: span 6; } }
@media (min-width: 1280px) { .segments-grid > .segment { grid-column: span 3; } }
.segment { padding: 0 !important; display: flex; flex-direction: column; transition: background-color .12s steps(1), color .12s steps(1); }
.segment-figure { overflow: clip; border-bottom: 1px solid var(--line); }
.segment-figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s var(--ease-out); }
@media (max-width: 719px) { .segment-figure img { aspect-ratio: 16 / 10; } }
.segment:hover .segment-figure img { transform: scale(1.04); }
.segment-body { padding: var(--cell-pad); display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.segment-body .num { color: var(--ink-mute); font-size: .85rem; }
.segment h3 { font-size: clamp(1.5rem, 2vw, 1.9rem); }
.segment-for { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.segment ul { border-top: 1px solid var(--line-soft); margin-top: .3rem; }
.segment li { padding: .55rem 0; border-bottom: 1px solid var(--line-soft); font-size: .95rem; display: flex; gap: .7rem; }
.segment li::before { content: "+"; font-family: var(--mono); font-weight: 700; color: var(--ink); }
.segment-note { color: var(--ink-soft); font-size: .95rem; margin-top: .3rem; }
.segment-link { margin-top: auto; padding-top: 1rem; font-weight: 700; font-stretch: 88%; text-transform: uppercase; letter-spacing: .03em; font-size: .9rem; display: inline-block; }
.segment-link:hover { background: var(--accent); }
.segment:hover { background: var(--bg-soft); }

/* ---- Proceso ---- */
.steps { counter-reset: step; }
.step { display: flex; flex-direction: column; gap: .8rem; min-height: 260px; transition: background-color .12s steps(1), color .12s steps(1); }
.step-num { font-size: clamp(3rem, 5vw, 5rem); font-weight: 700; letter-spacing: -.05em; line-height: .9; }
.step h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-top: auto; }
.step p { font-size: .95rem; color: rgba(10,10,10,.8); }
.step:hover { background: var(--ink); color: var(--accent); }
.step:hover p { color: rgba(255,255,255,.85); }

/* ---- Arquitectos ---- */
.arq-figure-cell { padding: 0 !important; }
.arq-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 719px) { .arq-figure img { aspect-ratio: 16 / 10; } }
.arq-list { margin-top: 1.4rem; border-top: 1px solid var(--line-dark); }
.arq-list li { display: flex; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line-dark); font-size: 1rem; }
.arq-list .mono { color: var(--accent); min-width: 1.5ch; }
.arq-grid .hero-actions { margin-top: 1.6rem; }

/* ---- Sucursales / cadenas ---- */
.suc-list { border-top: 1px solid var(--line-dark); }
.suc-list li { display: grid; grid-template-columns: 2.2rem 1fr; gap: .6rem; padding: .65rem 0; border-bottom: 1px solid var(--line-dark); font-size: .98rem; color: rgba(255,255,255,.88); }
.suc-list .mono { color: var(--accent); font-weight: 700; }
.suc-step { display: flex; flex-direction: column; gap: .5rem; }
.suc-step .step-num { color: var(--accent); font-size: clamp(2.2rem, 3.5vw, 3.4rem); }
.suc-step h3 { font-size: 1.25rem; }
.suc-step p { color: rgba(255,255,255,.75); font-size: .93rem; }
.suc-step:hover { background: var(--accent) !important; color: var(--ink); }
.suc-step:hover .step-num { color: var(--ink); }
.suc-step:hover p { color: rgba(10,10,10,.8); }
.suc-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.suc-cta p { max-width: 62ch; color: rgba(255,255,255,.82); }
.suc-cta strong { color: #fff; }
.suc-cta .hero-actions { margin: 0; }

/* ---- Cotizar ---- */
.quote-form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; flex: 1; min-width: 0; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 720px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  font-size: 1rem; line-height: 1.3;
}
.field select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'><path d='M1 1l6 6 6-6' fill='none' stroke='%230a0a0a' stroke-width='2'/></svg>"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: -1px; }
.field input::placeholder, .field textarea::placeholder { color: #9a9a9a; }
.field.is-invalid input, .field.is-invalid select { border-color: #c81e1e; outline: 2px solid #c81e1e; outline-offset: -1px; }
.form-error { color: #c81e1e; font-size: .8rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.quote-aside { background: var(--bg-soft) !important; display: flex; flex-direction: column; gap: 1.4rem; }
.contact-list { display: grid; gap: 1rem; }
.contact-list div { border-top: 1px solid var(--line-soft); padding-top: .8rem; display: grid; gap: .25rem; }
.contact-list dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-mute); }
.contact-list dd { font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-list dd a:hover { background: var(--accent); }
.aside-note { color: var(--ink-soft); font-size: .92rem; }

/* ---- Footer ---- */
.footer { background: var(--asphalt); color: #fff; padding-block: clamp(2.5rem, 5vw, 4.5rem) 6rem; }
.footer .brand-text { color: #fff; }
.footer-tag { margin-top: 1.2rem; color: rgba(255,255,255,.7); max-width: 34ch; font-size: .95rem; }
.footer-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-bottom: .8rem; }
.footer-links { display: grid; gap: .35rem; }
.footer-links a:hover { background: var(--accent); color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; font-size: .8rem; color: rgba(255,255,255,.7); font-family: var(--mono); }
.footer-internal { font-size: .68rem; color: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.18); padding: .15em .5em; margin-left: .8em; }
.footer-internal:hover { color: var(--accent); border-color: var(--accent); }

/* ---- WhatsApp flotante ---- */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 900;
  display: inline-flex; align-items: center; gap: .7rem;
  min-height: 60px; padding: .6rem .9rem .6rem 1.1rem;
  background: #25D366; color: #0a0a0a; border: 2px solid var(--ink);
  font-weight: 800; font-stretch: 80%; text-transform: uppercase; letter-spacing: .03em; font-size: .78rem; line-height: 1.05;
  box-shadow: 6px 6px 0 var(--ink);
  transition: background-color .12s steps(1), color .12s steps(1), transform .12s steps(1), box-shadow .12s steps(1);
}
.wa-float .wa-label { text-align: right; }
.wa-float svg { flex: none; }
.wa-float:hover { background: var(--ink); color: #25D366; transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--ink); }
.wa-float::before {
  content: ""; position: absolute; inset: -6px; border: 2px solid #25D366; opacity: 0;
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse { 0% { transform: scale(.96); opacity: .9; } 70%, 100% { transform: scale(1.12); opacity: 0; } }
@media (max-width: 539px) {
  .wa-float { right: .75rem; bottom: .75rem; padding: .55rem .75rem .55rem .9rem; font-size: .7rem; min-height: 54px; }
}

/* =============================================================
   7. Efectos
   ============================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal, html:not(.js-ready) .reveal { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

.hero-title .line { opacity: 0; transform: translateY(.35em); }
html:not(.js-ready) .hero-title .line { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive — ajustes finos
   ============================================================= */
@media (min-width: 960px) {
  .wrap { width: min(100% - 4rem, var(--wrap)); }
  .section-head .c-8 { padding-left: calc(var(--cell-pad) * 1.5); }
}
@media (min-width: 1280px) {
  .hero-title { font-size: clamp(4.6rem, 6.1vw, 7.4rem); }
}

/* =============================================================
   9. Reduced motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 90s; }
}

/* ---------- Trabajos reales (fotos de obra) ---------- */
.works-grid .work { margin: 0; padding: 0 !important; display: flex; flex-direction: column; background: var(--asphalt-2, #1a1a1a); }
.works-grid .work img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.works-grid .work figcaption { padding: .8rem 1rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--accent); border-top: 1px solid var(--line); }

/* ---------- Detalles por servicio en el formulario ---------- */
.quote-details { padding: 1rem 1rem .4rem; margin: 0 0 1rem; border: 1px dashed var(--line); background: rgba(245,196,0,.08); }
.quote-details .details-head { margin: 0 0 .8rem; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
@media (min-width: 720px) { .quote-details .field-row { grid-template-columns: 1fr 1fr; } .field-row:has(#f-cuando) { grid-template-columns: 1fr 1fr 1fr; } }

[data-medida-wrap][hidden], [data-detalles][hidden] { display: none !important; }
@media (min-width: 720px) { .field-row:has([data-medida-wrap][hidden]) { grid-template-columns: 1fr 1fr; } }

/* ---------- Portada concisa (nov 2026) ---------- */
.btn-wa { background: #25D366; border-color: #25D366; color: #0a0a0a; }
.btn-wa:hover { background: #1ebe5b; border-color: #1ebe5b; }
.btn-sm { padding: .55rem .9rem; font-size: .8rem; }
.service-short { gap: .6rem; }
.service-short p { font-size: .95rem; }
.service-short .segment-link { margin-top: auto; }
.section-more { margin: 1.4rem 0 0; text-align: center; }
.audience-grid .audience { display: flex; flex-direction: column; gap: .6rem; }
.audience h3 { font-size: 1.25rem; }
.audience p { color: var(--ink-soft); font-size: .95rem; }
.audience-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; padding-top: .4rem; }
.steps-short .step p { font-size: .9rem; }
.cta-grid .cta-main { display: flex; flex-direction: column; gap: 1rem; }
.cta-grid .cta-main .hero-actions { margin-top: .4rem; flex-wrap: wrap; }
.cta-grid .kicker { color: rgba(255,255,255,.72); }
.contact-list-dark dt { color: rgba(255,255,255,.6); }
.contact-list-dark div { border-top-color: rgba(255,255,255,.18); }
.contact-list-dark dd a:hover { background: var(--accent); color: var(--ink); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 3px; text-decoration-color: var(--accent); }
@media (max-width: 719px) {
  .hero-fact { padding: .8rem 1rem; }
  .hero-fact .fact-label { font-size: .8rem; }
}

/* ---------- Portada compacta en celular ---------- */
@media (max-width: 719px) {
  .hero .hero-fact { display: none; }
  .hero .hero-figure img { aspect-ratio: 4 / 3; object-fit: cover; }
  .services-grid > .service-short { grid-column: span 6; padding: .9rem .8rem; gap: .35rem; }
  .service-short .service-num { font-size: .8rem; }
  .service-short h3 { font-size: 1rem; line-height: 1.15; }
  .service-short p { display: none; }
  .service-short .segment-link { font-size: .78rem; }
  .audience-grid > .audience { grid-column: span 12; padding: 1rem; gap: .4rem; }
  .audience p { font-size: .9rem; }
  .works-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1px; -webkit-overflow-scrolling: touch; }
  .works-grid > .work { flex: 0 0 82%; scroll-snap-align: start; }
  .steps-short > .step { grid-column: span 6; padding: .9rem .8rem; }
  .steps-short .step h3 { font-size: 1rem; }
  .steps-short .step p { font-size: .82rem; }
  .cta-grid .cta-aside { display: none; }
  .section-more { margin-top: 1rem; }
}
