/* =============================================================
   WALTER MUÑOZ CONSTRUCCIONES
   1. Tokens
   ============================================================= */
:root {
  --bg:        #070534;                    /* azul exacto del logotipo */
  --bg-2:      #0B0847;
  --paper:     #F4F5FA;
  --ink:       #F4F5FA;
  --mute:      rgba(244, 245, 250, 0.64);
  --dim:       rgba(244, 245, 250, 0.42);
  --line:      rgba(244, 245, 250, 0.17);
  --line-btn:  rgba(244, 245, 250, 0.34);
  --line-soft: rgba(244, 245, 250, 0.09);
  --accent:    #FFB020;
  --accent-ink:#070534;

  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

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

  --pad: clamp(1.1rem, 4vw, 3.5rem);
  --nav-h: 74px;
  --max: 1600px;
}

/* =============================================================
   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) + 12px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.62;
  overflow-x: clip;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.02; font-weight: 800; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--accent); color: var(--accent-ink);
  font-family: var(--mono); font-size: .78rem; text-transform: uppercase;
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Marcas del logotipo — versión para fondo oscuro, con fondo transparente.
   Se obtuvo invirtiendo la luminosidad del original (no reemplazando colores),
   así que conserva cada línea fina, el perfil del arco y las terminaciones:
   la tinta principal queda blanca y las herramientas mantienen su azul. */
.mark, .lockup { display: block; }
.mark img, .lockup img { display: block; width: 100%; height: auto; }

/* Aviso de contenido de ejemplo (reemplazar antes de publicar) */
.demo-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.4rem; padding: .5rem .8rem;
  border: 1px dashed var(--accent);
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.demo-tag::before { content: ""; width: 6px; height: 6px; background: var(--accent); }

/* =============================================================
   4. Botones
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.6rem;
  font-family: var(--mono);
  font-size: .78rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: background .28s var(--ease-out), color .28s var(--ease-out),
              border-color .28s var(--ease-out);
}
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-ghost  { background: transparent; color: var(--ink); border-color: var(--line-btn); }
@media (hover: hover) {
  .btn-accent:hover { background: var(--paper); border-color: var(--paper); }
  .btn-ghost:hover  { background: var(--paper); color: var(--bg); border-color: var(--paper); }
}

/* =============================================================
   5. Navegación
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 500;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out);
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav-inner {
  max-width: var(--max); margin-inline: auto;
  height: var(--nav-h);
  padding-inline: var(--pad);
  display: flex; align-items: center; gap: 1.4rem;
}

.brand { display: flex; align-items: center; gap: .85rem; margin-right: auto; }
.brand .mark { width: 86px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--display); font-weight: 800;
  font-variation-settings: "wdth" 88, "wght" 800;
  font-size: .98rem; letter-spacing: .06em; text-transform: uppercase;
}
.brand-sub {
  font-family: var(--mono); font-size: .58rem; font-weight: 400;
  letter-spacing: .3em; text-transform: uppercase; color: var(--mute);
  margin-top: .28rem;
}

.nav-links { display: none; gap: 1.9rem; }
.nav-links a {
  position: relative;
  font-family: var(--mono); font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--mute);
  transition: color .25s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 1px; background: var(--accent);
  transition: right .35s var(--ease-out);
}
@media (hover: hover) {
  .nav-links a:hover { color: var(--ink); }
  .nav-links a:hover::after { right: 0; }
}
.nav-cta { display: none; padding: .7rem 1.15rem; }

.nav-toggle {
  width: 44px; height: 44px; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line);
}
.nav-toggle-bar {
  width: 18px; height: 1px; background: var(--ink);
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

.nav-panel {
  border-top: 1px solid var(--line);
  padding: var(--pad);
  display: flex; flex-direction: column; gap: 1px;
  background: var(--line);
}
.nav-panel[hidden] { display: none; }
.nav-panel a {
  background: var(--bg);
  padding: 1.05rem .2rem;
  font-family: var(--display); font-weight: 700;
  font-variation-settings: "wdth" 85, "wght" 700;
  font-size: 1.35rem; text-transform: uppercase; letter-spacing: .01em;
}
.nav-panel-tel { color: var(--accent) !important; font-family: var(--mono) !important; font-size: .95rem !important; }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.6rem, 7vw, 6rem));
  padding-inline: var(--pad);
  padding-bottom: 0;
  max-width: var(--max); margin-inline: auto;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
}

/* Fondo de plano: retícula de 24px y de 120px */
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right,  var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to right,  var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  background-position: var(--grid-x, 0px) var(--grid-y, 0px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  opacity: .85;
}

.hero-inner { position: relative; z-index: 1; flex: 1; }

.hero-title {
  font-family: var(--display);
  font-variation-settings: "wdth" 74, "wght" 900;
  font-weight: 900;
  font-size: clamp(3.4rem, 15vw, 10.5rem);
  line-height: .86;
  letter-spacing: -.015em;
  text-transform: uppercase;
  text-wrap: balance;
  margin-top: 1.1rem;
}
.hero-title .hl { color: var(--accent); }

.hero-body { margin-top: 2.2rem; max-width: 46ch; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--mute); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }

.hero-lockup { display: none; }

.hero-stats {
  position: relative; z-index: 1;
  margin-top: clamp(2.6rem, 6vw, 5rem);
  display: grid; gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}
.stat {
  background: var(--bg);
  padding: 1.3rem .2rem 1.5rem;
  display: flex; flex-direction: column; gap: .3rem;
}
.stat-n {
  font-family: var(--display); font-weight: 800;
  font-variation-settings: "wdth" 80, "wght" 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1;
}
.stat-l, .stat-v {
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .13em; text-transform: uppercase; color: var(--mute);
}
.stat-v { color: var(--ink); letter-spacing: .06em; }

.hero-dim { display: none; }

/* =============================================================
   7. Marquee
   ============================================================= */
.marquee {
  overflow: hidden;
  background: var(--accent); color: var(--accent-ink);
  border-block: 1px solid var(--accent);
  padding-block: .85rem;
}
.marquee-track { display: flex; width: max-content; animation: marqueeSlide 46s linear infinite; }
.marquee-track span {
  font-family: var(--display); font-weight: 700;
  font-variation-settings: "wdth" 88, "wght" 700;
  font-size: clamp(.95rem, 2vw, 1.35rem);
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
@keyframes marqueeSlide { to { transform: translateX(-50%); } }

/* =============================================================
   8. Secciones — cabecera
   ============================================================= */
.section {
  max-width: var(--max); margin-inline: auto;
  padding: clamp(4rem, 10vw, 8.5rem) var(--pad) 0;
}
.section-head { margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-title {
  font-family: var(--display);
  font-variation-settings: "wdth" 80, "wght" 800;
  font-weight: 800;
  font-size: clamp(2.1rem, 6vw, 4.6rem);
  line-height: .94; letter-spacing: -.012em; text-transform: uppercase;
  margin-top: .9rem;
}
.section-lead {
  margin-top: 1.4rem; max-width: 58ch;
  color: var(--mute); font-size: clamp(.98rem, 1.4vw, 1.1rem);
}

/* =============================================================
   9. Rejilla de celdas — el sistema del sitio
   ============================================================= */
.grid-cells {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

.cell {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.3rem);
  transition: background .38s var(--ease-out), color .38s var(--ease-out);
}

/* Signature: inversión al pasar el cursor */
@media (hover: hover) {
  .grid-cells .cell:hover { background: var(--paper); color: var(--bg); }
  .grid-cells .cell:hover .cell-n,
  .grid-cells .cell:hover .cell-d,
  .grid-cells .cell:hover .cell-list li,
  .grid-cells .cell:hover .obra-meta dt,
  .grid-cells .cell:hover .testi-meta { color: rgba(7, 5, 52, .62); }
  .grid-cells .cell:hover .cell-list li::before { background: var(--bg); }
}

.cell-n {
  display: block;
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .18em; color: var(--accent);
  transition: color .38s var(--ease-out);
}
.cell-t {
  font-family: var(--display);
  font-variation-settings: "wdth" 84, "wght" 800;
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  text-transform: uppercase; letter-spacing: -.005em;
  margin: 1.5rem 0 .85rem;
}
.cell-d { color: var(--mute); font-size: .96rem; transition: color .38s var(--ease-out); }

.cell-list { margin-top: 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.cell-list li {
  position: relative; padding-left: 1.1rem;
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .06em; color: var(--dim);
  transition: color .38s var(--ease-out);
}
.cell-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 1px; background: var(--accent);
}

/* =============================================================
   10. Obras
   ============================================================= */
.obra { display: flex; flex-direction: column; }
/* Vertical: las fotos de obra vienen del celular, en vertical */
.obra-img {
  position: relative; isolation: isolate;
  overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 1.3rem;
}
/* Las fotos van SIEMPRE a color, en cualquier dispositivo.
   Antes se veían en gris y recuperaban el color al pasar el cursor,
   pero en el celular no hay cursor: quedaban en blanco y negro. */
.obra-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.04) saturate(1.03);
  transition: transform .8s var(--ease-out);
}
/* El acercamiento al pasar el cursor es un extra: si no existe, no se pierde nada */
@media (hover: hover) {
  .obra:hover .obra-img img { transform: scale(1.04); }
}
.obra-t {
  font-family: var(--display);
  font-variation-settings: "wdth" 84, "wght" 800;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  text-transform: uppercase;
  margin-top: auto; margin-bottom: 0;
}
.obra-meta { margin-top: auto; display: flex; flex-direction: column; gap: .42rem; }
.obra-meta > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-top: .42rem; border-top: 1px solid var(--line-soft);
}
.obra-meta dt {
  font-family: var(--mono); font-size: .66rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
  transition: color .38s var(--ease-out);
}
.obra-meta dd { font-family: var(--mono); font-size: .74rem; letter-spacing: .03em; }

.obra-cta {
  display: flex; flex-direction: column;
  background: var(--accent) !important; color: var(--accent-ink) !important;
}
.obra-cta-n { font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; }
.obra-cta-t {
  font-family: var(--display);
  font-variation-settings: "wdth" 76, "wght" 900;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: .92; text-transform: uppercase;
  margin: auto 0 1.6rem;
}
.obra-cta-a {
  font-family: var(--mono); font-size: .76rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding-top: 1rem; border-top: 1px solid rgba(7, 5, 52, .3);
}
@media (hover: hover) {
  .grid-cells .obra-cta:hover { background: var(--paper) !important; color: var(--bg) !important; }
  .grid-cells .obra-cta:hover .obra-cta-a { border-top-color: var(--line); }
}

/* =============================================================
   11. Proceso
   ============================================================= */
.pasos {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.paso {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: grid; gap: .9rem;
  transition: background .38s var(--ease-out), color .38s var(--ease-out);
}
@media (hover: hover) {
  .paso:hover { background: var(--paper); color: var(--bg); }
  .paso:hover .paso-d { color: rgba(7, 5, 52, .62); }
  .paso:hover .paso-time { border-color: rgba(7, 5, 52, .3); }
}
.paso-n {
  font-family: var(--display);
  font-variation-settings: "wdth" 72, "wght" 900;
  font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: .8;
  color: var(--accent);
}
.paso-t {
  font-family: var(--display);
  font-variation-settings: "wdth" 84, "wght" 800;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  text-transform: uppercase; margin-bottom: .6rem;
}
.paso-d { color: var(--mute); max-width: 62ch; transition: color .38s var(--ease-out); }
.paso-time {
  justify-self: start;
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .4rem .8rem; border: 1px solid var(--line);
  transition: border-color .38s var(--ease-out);
}

/* =============================================================
   12. Números
   ============================================================= */
.numeros-sec { padding-top: clamp(3rem, 7vw, 6rem); }
.num { display: flex; flex-direction: column; gap: .6rem; }
.num-n {
  font-family: var(--display);
  font-variation-settings: "wdth" 76, "wght" 900;
  font-size: clamp(2.6rem, 6.5vw, 4.4rem); line-height: .92;
  font-variant-numeric: tabular-nums;
}
.num-l {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
  transition: color .38s var(--ease-out);
}
@media (hover: hover) { .grid-cells .num:hover .num-l { color: rgba(7, 5, 52, .62); } }

/* =============================================================
   13. Oficio
   ============================================================= */
.oficio {
  display: grid; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.oficio-fig { padding: 0 !important; position: relative; isolation: isolate; overflow: hidden; }
/* También a color siempre, por el mismo motivo que la galería */
.oficio-fig img {
  width: 100%; height: 100%; min-height: 260px; object-fit: cover;
  filter: contrast(1.04) saturate(1.03);
}
.oficio-txt { display: flex; flex-direction: column; gap: 1.05rem; }
.oficio-txt p { color: var(--mute); }
.oficio-lead {
  font-family: var(--display);
  font-variation-settings: "wdth" 92, "wght" 600;
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  line-height: 1.28; color: var(--ink) !important;
}
.principios { margin-top: .6rem; display: flex; flex-direction: column; gap: 1px; background: var(--line); }
.principios li { background: var(--bg); padding: 1rem .1rem; font-size: .93rem; color: var(--mute); }
.principios strong { color: var(--ink); font-weight: 500; }
@media (hover: hover) {
  .grid-cells .oficio-txt:hover p,
  .oficio .cell:hover p { color: rgba(7, 5, 52, .62); }
}

/* =============================================================
   14. Testimonios
   ============================================================= */
.testi { display: flex; flex-direction: column; gap: 1.6rem; }
.testi blockquote {
  font-family: var(--display);
  font-variation-settings: "wdth" 94, "wght" 500;
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  line-height: 1.36;
}
.testi blockquote::before { content: "«"; color: var(--accent); margin-right: .18em; }
.testi blockquote::after  { content: "»"; color: var(--accent); margin-left: .1em; }
.testi figcaption { margin-top: auto; display: flex; flex-direction: column; gap: .3rem; }
.testi figcaption span:first-child {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .06em;
}
.testi-meta {
  font-family: var(--mono); font-size: .66rem;
  letter-spacing: .13em; text-transform: uppercase; color: var(--dim);
  transition: color .38s var(--ease-out);
}

/* =============================================================
   15. Presupuesto
   ============================================================= */
.presupuesto {
  display: grid; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.form { display: grid; gap: 1px 1px; background: transparent; }
.field { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.2rem; }
.field label {
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .85rem .9rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans); font-size: .96rem; font-weight: 300;
  transition: border-color .25s var(--ease-out), background .25s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--bg);
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--bg); color: var(--ink); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--accent); }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: .4rem; }
.form-note { font-size: .84rem; color: var(--mute); }
.form-note a { color: var(--accent); border-bottom: 1px solid currentColor; }
.form-msg {
  margin-top: 1.1rem; min-height: 1.2em;
  font-family: var(--mono); font-size: .74rem;
  letter-spacing: .06em; color: var(--accent);
}

.contacto { display: flex; flex-direction: column; gap: 1.6rem; }
.contacto-t {
  font-family: var(--display);
  font-variation-settings: "wdth" 84, "wght" 800;
  font-size: 1.25rem; text-transform: uppercase;
}
.contacto-dl { display: flex; flex-direction: column; gap: 1px; background: var(--line); }
.contacto-dl > div { background: var(--bg); padding: .9rem .1rem; display: flex; flex-direction: column; gap: .3rem; }
.contacto-dl dt {
  font-family: var(--mono); font-size: .64rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--dim);
}
.contacto-dl dd { font-family: var(--mono); font-size: .85rem; line-height: 1.5; }
.contacto-dl a { border-bottom: 1px solid var(--line); transition: border-color .25s var(--ease-out); }
.contacto-dl a:hover { border-bottom-color: var(--accent); }
.contacto-wa { margin-top: auto; }

/* =============================================================
   16. Footer
   ============================================================= */
.footer {
  max-width: var(--max); margin: clamp(4rem, 10vw, 8rem) auto 0;
  padding: 0 var(--pad) 2.5rem;
  border-top: 1px solid var(--line);
}
.footer-top { padding-block: clamp(2.2rem, 5vw, 3.6rem); display: grid; gap: 1.8rem; }
.footer-lockup { width: min(280px, 70%); }
.footer-claim { color: var(--mute); max-width: 42ch; }

.footer-grid {
  display: grid; gap: 1px;
  background: var(--line); border-top: 1px solid var(--line);
  grid-template-columns: 1fr 1fr;
}
.footer-col {
  background: var(--bg); padding: 1.5rem .1rem;
  display: flex; flex-direction: column; gap: .55rem;
}
.footer-col h4 {
  font-family: var(--mono); font-size: .64rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: .5rem;
}
.footer-col a, .footer-col span {
  font-family: var(--mono); font-size: .74rem; color: var(--mute);
  transition: color .25s var(--ease-out);
}
.footer-col a:hover { color: var(--ink); }

.footer-credits {
  margin-top: 2rem;
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .08em; color: var(--dim);
}
.footer-credits a { border-bottom: 1px solid var(--line); }

/* =============================================================
   17. Reveals — con red de seguridad
   ============================================================= */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Defensiva obligatoria: nunca dejar texto partido invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   18. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  /* Sin huecos en la última fila: estas dos celdas ocupan lo que sobre */
  .stat-wide { grid-column: span 2; }
  .obras .obra-cta { grid-column: span 2; }
}

@media (min-width: 720px) {
  .paso { grid-template-columns: auto 1fr auto; align-items: start; gap: 2rem; }
  .paso-time { justify-self: end; }
  .oficio { grid-template-columns: 1fr 1fr; }
  .presupuesto { grid-template-columns: 1.35fr 1fr; }
  .form { grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
  .field-full, .form-foot, .form-msg { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: auto 1fr; align-items: end; gap: 3rem; }
}

@media (min-width: 960px) {
  :root { --nav-h: 88px; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-panel { display: none !important; }

  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 30%);
    grid-template-areas: "kick lock" "title lock" "body lock";
    align-content: start;
    column-gap: 3rem;
  }
  .hero-inner .kicker { grid-area: kick; }
  .hero-title { grid-area: title; }
  .hero-body { grid-area: body; }
  .hero-lockup { grid-area: lock; display: block; align-self: end; padding-bottom: .5rem; }

  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .stat-wide { grid-column: span 1; }
  .stat { padding-inline: 1.4rem; }
  .stat:first-child { padding-left: 0; }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }

  .hero-dim {
    display: block;
    position: absolute; right: calc(var(--pad) - 1.4rem); top: 42%;
    z-index: 1;
    font-family: var(--mono); font-size: .64rem;
    letter-spacing: .3em; text-transform: uppercase; color: var(--dim);
    transform: rotate(90deg); transform-origin: right center;
  }
  .hero-dim span { position: relative; }
  .hero-dim span::before,
  .hero-dim span::after {
    content: ""; position: absolute; top: 50%; width: 42px; height: 1px; background: var(--line);
  }
  .hero-dim span::before { right: calc(100% + 12px); }
  .hero-dim span::after  { left: calc(100% + 12px); }
}

@media (min-width: 1280px) {
  .hero-title { font-size: clamp(5rem, 9.5vw, 10.5rem); }
  .section-head { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 4rem; align-items: end; }
  .section-head .kicker { grid-column: 1; }
  .section-title { grid-column: 1; grid-row: 2; margin-top: .6rem; }
  .section-lead { grid-column: 2; grid-row: 2; margin-top: 0; }
  .demo-tag { grid-column: 2; grid-row: 1; justify-self: start; align-self: end; margin-top: 0; }
}

/* =============================================================
   19. Reduced-motion — SOLO lo intrusivo
   (Windows trae esta preferencia activada de fábrica en muchos
   equipos: no se desactivan hovers, reveals ni transiciones)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 150s; }
  .hero-grid { background-position: 0 0 !important; }
}

/* Impresión */
@media print {
  .nav, .marquee, .hero-grid, .hero-dim { display: none !important; }
  body { background: #fff; color: #000; }
}

/* =============================================================
   20. Portada de entrada — "amanece detrás del arco"
   -------------------------------------------------------------
   Es una capa sobre la misma página, no una página aparte: así
   Google sigue leyendo todo el contenido. Solo aparece si hay
   JavaScript y solo una vez por visita.
   ============================================================= */
.intro { display: none; }

.intro-on .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 9000;
  background: var(--bg);
  /* Red de seguridad: si algo fallara, a los 12 s se va sola
     y la web queda utilizable igual */
  animation: introRedDeSeguridad .01s linear 12s forwards;
}
@keyframes introRedDeSeguridad {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.intro-reticula {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right,  var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to right,  var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
          mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  opacity: .8;
}

/* El sol que sube detrás del arco de herramientas */
.intro-sol {
  position: absolute; left: 50%; top: 50%;
  width: min(92vw, 660px); aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(circle,
    rgba(255,176,32,.20) 0%, rgba(255,176,32,.08) 38%, transparent 70%);
  opacity: 0;
  animation: introSol 1.7s var(--ease-out) .1s forwards;
}
@keyframes introSol {
  0%   { opacity: 0;   transform: translate(-50%, -34%) scale(.35); }
  65%  { opacity: 1; }
  100% { opacity: .9;  transform: translate(-50%, -50%) scale(1); }
}

.intro-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: var(--pad);
}

/* El logo se descubre de abajo hacia arriba */
.intro-logo {
  display: block; width: min(76vw, 440px);
  clip-path: inset(100% 0 0 0);
  animation: introRevelado 1.2s cubic-bezier(.16, 1, .3, 1) .3s forwards;
}
.intro-logo img { display: block; width: 100%; height: auto; }
@keyframes introRevelado {
  from { clip-path: inset(100% 0 0 0); transform: translateY(16px); }
  to   { clip-path: inset(0 0 0 0);    transform: translateY(0); }
}

.intro-cta {
  margin-top: clamp(1.8rem, 5vw, 3rem);
  padding: .95rem 1.7rem;
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--line-btn);
  opacity: 0;
  animation: introEntradaCta .7s var(--ease-out) 1.4s forwards,
             introLatido 3s ease-in-out 2.3s infinite;
  transition: background .3s var(--ease-out), color .3s var(--ease-out),
              border-color .3s var(--ease-out);
}
@keyframes introEntradaCta {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes introLatido {
  0%, 100% { border-color: var(--line-btn); }
  50%      { border-color: var(--accent); }
}
@media (hover: hover) {
  .intro-cta:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
}

/* Salida al tocar */
.intro.is-going {
  opacity: 0; transform: scale(1.03); pointer-events: none;
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}

/* Con "menos animaciones" activado: se ve todo al instante, pero
   la portada sigue estando y sigue haciendo falta tocar */
@media (prefers-reduced-motion: reduce) {
  .intro-logo { animation-delay: 0s; animation-duration: .01s; }
  .intro-sol  { animation-delay: 0s; animation-duration: .01s; }
  .intro-cta  { animation: introEntradaCta .01s linear forwards; }
}

/* El título recibe el foco al cerrar la portada de entrada (para lectores
   de pantalla), pero no debe mostrar el recuadro: no es un control */
[tabindex="-1"]:focus { outline: none; }

/* =============================================================
   21. Asistente (chat)
   ============================================================= */
.chat-abrir {
  position: fixed; left: clamp(.9rem, 3vw, 1.8rem); bottom: clamp(.9rem, 3vw, 1.8rem);
  z-index: 800;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.15rem;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent);
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  transition: background .28s var(--ease-out), color .28s var(--ease-out);
}
.chat-abrir-icono {
  width: 12px; height: 12px; flex: none;
  border: 2px solid currentColor; border-bottom-color: transparent;
}
@media (hover: hover) {
  .chat-abrir:hover { background: var(--paper); border-color: var(--paper); }
}
.chat-abrir[aria-expanded="true"] { opacity: 0; pointer-events: none; }

.chat {
  position: fixed; z-index: 810;
  left: clamp(.9rem, 3vw, 1.8rem); bottom: clamp(.9rem, 3vw, 1.8rem);
  right: clamp(.9rem, 3vw, 1.8rem);
  max-width: 380px; margin-right: auto;
  max-height: min(76vh, 620px);
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line-btn);
}
.chat[hidden] { display: none; }

.chat-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.1rem; border-bottom: 1px solid var(--line);
}
.chat-titulo {
  font-family: var(--display); font-variation-settings: "wdth" 86, "wght" 800;
  font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em;
}
.chat-sub {
  display: flex; align-items: center; gap: .45rem; margin-top: .3rem;
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--mute);
}
.chat-punto { width: 6px; height: 6px; background: var(--accent); flex: none; }
.chat-cerrar { font-size: 1.5rem; line-height: 1; color: var(--mute); padding: 0 .2rem; }
.chat-cerrar:hover { color: var(--ink); }

.chat-hilo {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 1.1rem; display: flex; flex-direction: column; gap: .75rem;
}
.chat-msg { max-width: 88%; padding: .7rem .9rem; font-size: .92rem; line-height: 1.5; }
.chat-msg p + p { margin-top: .5rem; }
.chat-msg-bot { background: var(--bg-2); border: 1px solid var(--line-soft); align-self: flex-start; }
.chat-msg-yo  { background: var(--accent); color: var(--accent-ink); align-self: flex-end; }
.chat-msg-error { background: transparent; border: 1px dashed var(--accent); color: var(--accent); align-self: stretch; max-width: 100%; }
.chat-msg-error a { border-bottom: 1px solid currentColor; }

.chat-escribiendo { display: flex; gap: .3rem; align-self: flex-start; padding: .8rem .9rem; }
.chat-escribiendo span {
  width: 6px; height: 6px; background: var(--mute);
  animation: chatPunto 1.2s ease-in-out infinite;
}
.chat-escribiendo span:nth-child(2) { animation-delay: .15s; }
.chat-escribiendo span:nth-child(3) { animation-delay: .3s; }
@keyframes chatPunto { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.chat-sugerencias {
  display: flex; flex-wrap: wrap; gap: .4rem;
  padding: 0 1.1rem 1rem;
}
.chat-sugerencias button {
  padding: .45rem .7rem;
  border: 1px solid var(--line);
  font-family: var(--mono); font-size: .64rem;
  letter-spacing: .06em; color: var(--mute);
  transition: border-color .25s var(--ease-out), color .25s var(--ease-out);
}
.chat-sugerencias button:hover { border-color: var(--accent); color: var(--ink); }
.chat-sugerencias[hidden] { display: none; }

.chat-form { display: flex; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.chat-form input {
  flex: 1; padding: .9rem 1rem;
  background: var(--bg); border: 0; color: var(--ink);
  font-family: var(--sans); font-size: .94rem; font-weight: 300;
}
.chat-form input::placeholder { color: var(--dim); }
.chat-form input:focus { outline: none; background: var(--bg-2); }
.chat-form button {
  padding: 0 1.2rem; background: var(--accent); color: var(--accent-ink);
  font-size: 1.1rem; transition: background .25s var(--ease-out);
}
.chat-form button:disabled { opacity: .45; cursor: default; }

.chat-pie {
  padding: .7rem 1.1rem .9rem;
  font-family: var(--mono); font-size: .58rem; line-height: 1.6;
  letter-spacing: .06em; color: var(--dim); border-top: 1px solid var(--line-soft);
}
.chat-pie a { color: var(--mute); border-bottom: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  .chat-escribiendo span { animation-duration: 2.4s; }
}

/* =============================================================
   Trabajos — tarjetas de álbum (cada una abre obras/*.html)
   ============================================================= */
.trab-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; }
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; }
.fil {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .55rem .85rem; border: 1px solid var(--line-btn); background: transparent; color: var(--ink);
  cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.fil:hover { border-color: var(--paper); }
.fil[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.albumes { display: grid; gap: 1rem; }
@media (min-width: 640px) { .albumes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .albumes { grid-template-columns: repeat(3, 1fr); } }
.card-alb { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg); transition: border-color .3s var(--ease-out), transform .4s var(--ease-out); }
.card-alb.is-off { display: none; }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease-out), transform 1.2s var(--ease-out); }
.card-img .card-alt { opacity: 0; }
.card-img img.is-vis { opacity: 1; }
.card-n {
  position: absolute; right: .7rem; top: .7rem; padding: .35rem .6rem;
  background: var(--bg); font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
}
.card-txt { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-k { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.card-t { font-family: var(--display); font-variation-settings: "wdth" 84, "wght" 800; font-size: clamp(1.15rem, 2vw, 1.4rem); text-transform: uppercase; }
.card-et { font-size: .86rem; color: var(--mute); }
.card-go { margin-top: auto; padding-top: .9rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; transition: color .3s, letter-spacing .3s; }
@media (hover: hover) {
  .card-alb:hover { border-color: var(--accent); transform: translateY(-3px); }
  .card-alb:hover .card-img img.is-vis { transform: scale(1.04); }
  .card-alb:hover .card-go { color: var(--accent); letter-spacing: .16em; }
}

/* --- Efectos al pasar el mouse por los álbumes --- */
.albumes { perspective: 1200px; }
.card-alb { transform-style: preserve-3d; will-change: transform; }
.card-glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,176,32,.28), transparent 55%);
  transition: opacity .35s var(--ease-out); mix-blend-mode: screen;
}
.card-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(7,5,52,.55), transparent 45%);
  opacity: 0; transition: opacity .4s var(--ease-out);
}
.card-dots { position: absolute; left: .8rem; bottom: .8rem; display: flex; gap: 5px; z-index: 2; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease-out); }
.card-dots i { width: 16px; height: 3px; background: rgba(244,245,250,.45); transition: background .3s, width .3s var(--ease-out); }
.card-dots i.is-on { background: var(--accent); width: 26px; }
.card-t { transition: color .3s; }
.cur-ver {
  position: fixed; left: 0; top: 0; z-index: 900; pointer-events: none;
  width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.25;
  transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0) scale(0);
  transition: transform .25s var(--ease-out);
}
.cur-ver.is-on { transform: translate3d(var(--cx), var(--cy), 0) scale(1); }
@media (hover: hover) {
  .card-alb.is-hover { border-color: var(--accent); }
  .card-alb.is-hover .card-glare, .card-alb.is-hover .card-img::after { opacity: 1; }
  .card-alb.is-hover .card-dots { opacity: 1; transform: none; }
  .card-alb.is-hover .card-t { color: var(--accent); }
  .albumes.has-cur, .albumes.has-cur * { cursor: none; }
}
@media (prefers-reduced-motion: reduce) { .card-alb { transform: none !important; } .cur-ver { display: none; } }
.card-n { z-index: 2; }

/* Trabajos: mostrar 6 y botón "Ver todos" */
.albumes.is-corto .card-alb:nth-child(n+9) { display: none; }
.trab-mas { display: flex; justify-content: center; margin-top: 2rem; }
.trab-mas[hidden] { display: none; }

/* --- Cursor: lupa chiquita y transparente --- */
html.has-lupa, html.has-lupa * { cursor: none !important; }
html.has-lupa input, html.has-lupa textarea, html.has-lupa [contenteditable] { cursor: text !important; }
.lupa {
  position: fixed; left: 0; top: 0; z-index: 100000; pointer-events: none;
  width: 30px; height: 30px; margin: -12px 0 0 -12px;
  opacity: 0; transition: opacity .2s;
}
.lupa.is-on { opacity: 1; }
.lupa.is-texto { opacity: 0; }
.lupa svg { display: block; transform-origin: 12px 12px; transition: transform .25s var(--ease-out); }
.lupa-aro { stroke: rgba(244,245,250,.95); transition: stroke .25s; }
.lupa-mango { stroke: rgba(244,245,250,.95); transition: stroke .25s; }
.lupa.is-link svg { transform: scale(1.3); }
.lupa.is-down svg { transform: scale(.85); }
@media (prefers-reduced-motion: reduce) { .lupa svg { transition: none; } }

/* --- Botón "Ver todos los trabajos" animado --- */
.btn-mas {
  position: relative; overflow: hidden; gap: .7rem; isolation: isolate;
  color: var(--accent); border-color: var(--line-btn);
  animation: introLatido 3s ease-in-out infinite;
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out), transform .35s var(--ease-out), letter-spacing .35s var(--ease-out);
}
.btn-mas::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.btn-mas::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,176,32,.28), transparent);
  animation: btnBrillo 3.2s ease-in-out 1s infinite;
}
.btn-mas-fl { display: inline-block; animation: btnFlecha 1.6s ease-in-out infinite; }
@keyframes btnBrillo { 0% { left: -40%; } 45%, 100% { left: 120%; } }
@keyframes btnFlecha { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
.btn-mas:active { transform: scale(.97); }
@media (hover: hover) {
  .btn-mas:hover { background: transparent; color: var(--accent-ink); border-color: var(--accent); letter-spacing: .14em; transform: translateY(-2px); }
  .btn-mas:hover::before { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) { .btn-mas, .btn-mas::after, .btn-mas-fl { animation: none; } }
