/* ==========================================================================
   JuanCode · Ladrillo y concreto
   Sistema compartido de la landing: portada, /web, /clases y el panel.
   El mundo: arquitectura en ladrillo de Bogotá. Ladrillo como campo, concreto
   como suelo, verde de cerro como segundo campo. Esquinas rectas, juntas de 2px.
   ========================================================================== */

/* --- Fuentes (autoalojadas) -------------------------------------------- */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Phosphor";
  font-style: normal;
  font-weight: normal;
  font-display: block;
  src: url("/assets/fonts/Phosphor.woff2") format("woff2");
}

/* --- Tokens ------------------------------------------------------------ */
/* Mundo HUD: negro profundo, cian para la acción, magenta como segundo campo.
   Los nombres de los tokens vienen del sistema anterior y se conservan para
   no reescribir cada regla: "ladrillo" es ahora el cian de acción y "cerro"
   el campo magenta. */

:root {
  color-scheme: dark;

  --suelo: #05070b;
  --suelo-2: #0b1017;
  --suelo-3: #131b26;
  --tinta: #e4f4f8;
  --tinta-2: #8ea3b3;
  --junta: rgba(0, 229, 255, 0.14);
  --junta-fuerte: rgba(0, 229, 255, 0.38);

  --ladrillo: #00e5ff;
  --ladrillo-hover: #7ef3ff;
  --ladrillo-claro: #7ef3ff;
  --sobre-ladrillo: #03141a;
  --sobre-ladrillo-2: #0a3a45;

  --cerro: #1a0a22;
  --cerro-claro: #2a0f36;
  --sobre-cerro: #ffe3fb;
  --sobre-cerro-2: #d7a9d4;
  --neon-2: #ff2bd6;

  --libre: #00e5ff;
  --ocupado: #ff2bd6;

  --muro-junta: #05070b;
  --muro-tonos: #00e5ff, #00e5ff, #00e5ff, #00e5ff, #ff2bd6, #00e5ff;

  --brillo: 0 0 0 1px rgba(0, 229, 255, 0.55), 0 0 18px -2px rgba(0, 229, 255, 0.55);
  --brillo-2: 0 0 0 1px rgba(255, 43, 214, 0.55), 0 0 18px -2px rgba(255, 43, 214, 0.5);

  --fuente: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --ancho: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --sombra: 0 24px 60px -30px rgba(0, 229, 255, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Alias que usan las hojas viejas (formularios) */
  --text: var(--tinta);
  --muted: var(--tinta-2);
  --border: var(--junta);
  --glass: var(--suelo-2);
  --green: var(--libre);
  --magenta: var(--ocupado);
  --gold: var(--ladrillo);
  --cyan: var(--ladrillo);
  --grad: var(--ladrillo);
}

/* --- Base -------------------------------------------------------------- */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--suelo);
  color: var(--tinta);
  font-family: var(--fuente);
  font-size: 18px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ladrillo); color: var(--sobre-ladrillo); }
:focus-visible { outline: 3px solid var(--ladrillo); outline-offset: 3px; }

html { scrollbar-color: var(--suelo-3) var(--suelo); }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

strong, b { font-weight: 700; }

.oculto { display: none !important; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); position: relative; }

/* Íconos (Phosphor, autoalojado) */
.ph {
  font-family: "Phosphor" !important;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  speak: never;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  flex-shrink: 0;
}
.ph-arrow-right::before { content: "\e06c"; }
.ph-arrow-up-right::before { content: "\e092"; }
.ph-arrow-left::before { content: "\e058"; }
.ph-whatsapp-logo::before { content: "\e5d0"; }
.ph-calculator::before { content: "\e538"; }
.ph-tiktok-logo::before { content: "\eaf2"; }
.ph-instagram-logo::before { content: "\e2d0"; }
.ph-book-open-text::before { content: "\e8f2"; }
.ph-users-three::before { content: "\e68e"; }
.ph-blueprint::before { content: "\eda0"; }
.ph-wall::before { content: "\e688"; }
.ph-check::before { content: "\e182"; }
.ph-plus::before { content: "\e3d4"; }
.ph-calendar-dots::before { content: "\e7b4"; }
.ph-clock::before { content: "\e19a"; }
.ph-arrows-clockwise::before { content: "\e094"; }
.ph-lock-key::before { content: "\e2fe"; }
.ph-sign-out::before { content: "\e42a"; }
.ph-path::before { content: "\e39c"; }
.ph-trend-up::before { content: "\e4ae"; }
.ph-robot::before { content: "\e762"; }
.ph-globe-simple::before { content: "\e28e"; }
.ph-storefront::before { content: "\e470"; }
.ph-code::before { content: "\e1bc"; }
.ph-graduation-cap::before { content: "\e62c"; }
.ph-video-camera::before { content: "\e4da"; }
.ph-map-pin::before { content: "\e316"; }
.ph-cloud::before { content: "\e1aa"; }
.ph-handshake::before { content: "\e582"; }
.ph-lightning::before { content: "\e2de"; }
.ph-chat-circle-text::before { content: "\e16e"; }
.ph-identification-card::before { content: "\e2c8"; }

/* --- Tipografía -------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--fuente);
  font-weight: 750;
  font-variation-settings: "wdth" 78;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--tinta);
}

h1 { font-size: clamp(42px, 5.6vw, 80px); line-height: 0.98; }
h2 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.02; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }

p { text-wrap: pretty; }

.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--tinta-2); max-width: 44ch; }
.lead strong { color: var(--tinta); }

/* Rótulo ancho: la placa de dirección de un edificio. Solo para marca y datos. */
.ancha {
  font-variation-settings: "wdth" 125;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cifra { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* --- Navegación -------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--suelo) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--junta);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--tinta);
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.logo .j {
  display: inline-grid;
  place-items: center;
  padding: 5px 7px 4px;
  background: var(--ladrillo);
  color: var(--sobre-ladrillo);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1;
  transform: translateY(-1px);
}

.nav-links { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: flex-end; }
.nav-links a {
  color: var(--tinta-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ladrillo); }
.nav-links .btn, .nav-links .btn:hover { color: var(--sobre-ladrillo); }

/* --- Botones ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 2px;
  font-family: var(--fuente);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s var(--ease);
}
.btn .ph { font-size: 21px; }
.btn:active { transform: translateY(1px); }

.btn-ladrillo, .btn-grad { background: var(--ladrillo); color: var(--sobre-ladrillo); }
.btn-ladrillo:hover, .btn-grad:hover { background: var(--ladrillo-hover); }

.btn-linea, .btn-ghost { background: transparent; color: var(--tinta); border-color: var(--junta-fuerte); }
.btn-linea:hover, .btn-ghost:hover { border-color: var(--tinta); }

.btn-claro { background: var(--sobre-ladrillo); color: var(--ladrillo); }
.btn-claro:hover { background: #fff; }

.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; }

.enlace {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ladrillo);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
.enlace .ph { transition: transform 0.2s var(--ease); }
.enlace:hover .ph { transform: translateX(4px); }

.volver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--tinta-2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.volver:hover { color: var(--ladrillo); }

/* --- El muro (canvas de muro.js) --------------------------------------- */

.muro {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--muro-junta);
}

/* --- Hero dividido: texto en concreto, muro a sangre ------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  min-height: min(calc(100dvh - 68px), 860px);
  border-bottom: 2px solid var(--junta);
}
.hero-texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 7vh, 88px) clamp(24px, 5vw, 72px) clamp(40px, 7vh, 88px) max(var(--gutter), calc((100vw - var(--ancho)) / 2 + var(--gutter)));
}
.hero h1 { margin-bottom: 26px; max-width: 17ch; font-size: clamp(40px, 4.6vw, 70px); }
.hero .lead { margin-bottom: 34px; }
.hero-muro { position: relative; overflow: hidden; }

/* Placa sobre el muro: como la placa de bronce de un edificio */
.placa {
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  bottom: clamp(20px, 4vw, 48px);
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 18px 22px;
  background: var(--suelo);
  color: var(--tinta);
  border-top: 1px solid var(--junta-fuerte);
  box-shadow: var(--sombra);
  max-width: calc(100% - 40px);
}
.placa .ancha { font-size: 13px; color: var(--tinta-2); }
.placa strong { font-size: clamp(20px, 2vw, 26px); font-variation-settings: "wdth" 80; font-weight: 750; letter-spacing: -0.01em; line-height: 1.15; }

/* --- Secciones --------------------------------------------------------- */

.seccion { padding: clamp(80px, 11vw, 150px) 0; }
.seccion + .seccion { border-top: 2px solid var(--junta); }
.seccion > .wrap > h2 { max-width: 18ch; margin-bottom: 22px; }
.seccion > .wrap > .lead { margin-bottom: 56px; }

/* Aparición: parte visible y termina con ease-out exponencial */
.reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal:not(.in) { opacity: 1; transform: none; }
}

/* Quién soy: prosa + ficha técnica */
.quien { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.quien h2 { margin-bottom: 30px; max-width: 12ch; }
.prosa p { color: var(--tinta-2); margin-bottom: 20px; max-width: 62ch; font-size: 19px; }
.prosa p strong { color: var(--tinta); }

.ficha { border-top: 1px solid var(--junta-fuerte); }
.ficha div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 16px 0; border-bottom: 2px solid var(--junta); }
.ficha dt { font-size: 12.5px; color: var(--tinta-2); padding-top: 4px; }
.ficha dd { font-weight: 650; font-size: 17px; line-height: 1.4; }
.ficha dd small { display: block; color: var(--tinta-2); font-weight: 400; font-size: 15px; margin-top: 4px; }

/* Cómo pienso: planta arquitectónica de tres cuartos */
.plano-bloque { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.plano-bloque h2 { margin-bottom: 24px; }
.plano-bloque .prosa p:last-child { margin-bottom: 0; }

.planta {
  list-style: none;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: auto auto;
  border: 1px solid var(--junta-fuerte);
  background: var(--suelo);
}
.cuarto { position: relative; padding: clamp(24px, 3vw, 40px); min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.cuarto:nth-child(1) { grid-row: span 2; border-right: 1px solid var(--junta-fuerte); }
.cuarto:nth-child(2) { border-bottom: 1px solid var(--junta-fuerte); }
.cuarto .ph { font-size: 34px; color: var(--ladrillo); }
.cuarto strong { display: block; font-size: clamp(21px, 1.9vw, 27px); font-variation-settings: "wdth" 82; font-weight: 700; line-height: 1.18; letter-spacing: -0.01em; }
.cuarto span { display: block; margin-top: 10px; color: var(--tinta-2); font-size: 15.5px; }
/* Las puertas de la planta: un vano en el muro entre cuartos */
.cuarto:nth-child(1)::after { content: ""; position: absolute; right: -4px; top: 58%; width: 4px; height: 44px; background: var(--suelo); }
.cuarto:nth-child(2)::after { content: ""; position: absolute; bottom: -4px; left: 30%; height: 4px; width: 44px; background: var(--suelo); }

/* Lo que hago: dos campos de color de tamaño distinto */
.servicios { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2px; background: var(--junta); border: 2px solid var(--junta); }
.campo-color { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 22px; }
.campo-color h3 { color: inherit; font-size: clamp(28px, 2.8vw, 40px); }
.campo-color p { max-width: 46ch; }
.campo-color ul { list-style: none; display: grid; gap: 14px; margin: 4px 0 8px; }
.campo-color li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; line-height: 1.45; }
.campo-color li .ph { font-size: 20px; margin-top: 2px; }
.campo-color .btns { margin-top: auto; padding-top: 8px; }

.campo-ladrillo { background: var(--ladrillo); color: var(--sobre-ladrillo); }
.campo-ladrillo p, .campo-ladrillo li { color: var(--sobre-ladrillo-2); }
.campo-ladrillo li strong, .campo-ladrillo p strong { color: var(--sobre-ladrillo); }
.campo-ladrillo .btn-linea { color: var(--sobre-ladrillo); border-color: color-mix(in srgb, var(--sobre-ladrillo) 55%, transparent); }
.campo-ladrillo .btn-linea:hover { border-color: var(--sobre-ladrillo); }

.campo-cerro { background: var(--cerro); color: var(--sobre-cerro); }
.campo-cerro h3, .campo-cerro strong { color: var(--sobre-cerro); }
.campo-cerro p, .campo-cerro li { color: var(--sobre-cerro-2); }
.campo-cerro .btn-linea { color: var(--sobre-cerro); border-color: color-mix(in srgb, var(--sobre-cerro) 50%, transparent); }
.campo-cerro .btn-linea:hover { border-color: var(--sobre-cerro); }
.campo-cerro .btn-claro { color: var(--cerro); }

/* Portafolio: capturas reales en grilla irregular */
.obras { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 32px); }
.obra { grid-column: span 2; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; }
.obra:nth-child(1) { grid-column: span 4; }
.obra:nth-child(2) { grid-column: span 2; }
.obra figure { overflow: hidden; background: var(--suelo-3); border: 2px solid var(--junta); aspect-ratio: 16 / 10; }
.obra:nth-child(1) figure { aspect-ratio: 16 / 9.3; }
.obra:nth-child(2) figure { aspect-ratio: auto; height: 100%; }
.obra img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }
.obra:hover img { transform: scale(1.035); }
.obra:nth-child(2) { display: grid; grid-template-rows: 1fr auto; }
.obra h3 { font-size: 23px; display: flex; align-items: center; gap: 10px; }
.obra h3 .ph { font-size: 20px; color: var(--ladrillo); transition: transform 0.25s var(--ease); }
.obra:hover h3 .ph { transform: translate(3px, -3px); }
.obra p { color: var(--tinta-2); font-size: 16px; max-width: 52ch; }
.obra .usos { font-size: 12px; color: var(--tinta-2); }
.obra-propia figure { display: grid; place-items: center; background: var(--cerro); color: var(--sobre-cerro); }
.obra-propia figure span { font-family: var(--mono); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.7; padding: 28px; }
.obra-propia figure b { color: #f0b48f; font-weight: 600; }

/* El segundo proyecto usa una captura vertical en escritorio */
.obra picture { display: contents; }

/* El Libro cierra la grilla a lo ancho: banda de código con el texto al lado */
@media (min-width: 1081px) {
  /* Del sexto al noveno van en dos filas de a dos, sin hueco */
  .obra:nth-child(n+6):nth-child(-n+9) { grid-column: span 3; }
  .obra.obra-propia { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: clamp(24px, 3vw, 44px); row-gap: 14px; }
  .obra-propia figure { grid-row: 1 / -1; aspect-ratio: 21 / 8; }
  .obra-propia h3 { align-self: end; }
}

.cierre-obras { margin-top: clamp(56px, 7vw, 90px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-top: 32px; border-top: 1px solid var(--junta-fuerte); }
.cierre-obras p { font-size: clamp(24px, 2.6vw, 34px); font-variation-settings: "wdth" 80; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }

/* Precios: un solo bloque, tres crujías */
.crujias { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--junta-fuerte); }
.crujia { padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.crujia + .crujia { border-left: 2px solid var(--junta-fuerte); }
.crujia-nombre { font-size: 14px; }
.crujia-precio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.crujia-precio small { font-size: 15px; color: var(--tinta-2); }
.crujia-precio b { font-size: clamp(34px, 3.3vw, 48px); font-variation-settings: "wdth" 76; font-weight: 750; letter-spacing: -0.02em; line-height: 1; }
.crujia-para { color: var(--tinta-2); font-size: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--junta); }
.crujia-para strong { color: var(--tinta); }
.crujia ul { list-style: none; display: grid; gap: 11px; }
.crujia li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 16px; line-height: 1.45; }
.crujia li .ph { color: var(--ladrillo); font-size: 18px; margin-top: 2px; }

.crujia-pro { background: var(--ladrillo); color: var(--sobre-ladrillo); margin: -4px 0; padding-top: calc(clamp(28px, 3vw, 40px) + 4px); padding-bottom: calc(clamp(28px, 3vw, 40px) + 4px); }
.crujia-pro + .crujia, .crujia + .crujia-pro { border-left: 0; }
.crujia-pro .crujia-para, .crujia-pro .crujia-precio small { color: var(--sobre-ladrillo-2); border-color: color-mix(in srgb, var(--sobre-ladrillo) 25%, transparent); }
.crujia-pro .crujia-para strong { color: var(--sobre-ladrillo); }
.crujia-pro li .ph { color: var(--sobre-ladrillo); }
.crujia-pro .crujia-nombre { display: flex; justify-content: space-between; gap: 12px; }
.crujia-pro .crujia-nombre span { color: var(--sobre-ladrillo-2); }

.precios-pie { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; align-items: center; }
.precios-pie p { color: var(--tinta-2); max-width: 60ch; font-size: 16px; }

/* Proceso: la obra por etapas sobre una línea de nivel */
.etapas { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); position: relative; }
.etapas::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 4px; background: var(--tinta); }
.etapa { position: relative; padding-top: 64px; }
.etapa::before { content: ""; position: absolute; left: 0; top: 17px; width: 24px; height: 24px; background: var(--ladrillo); border: 4px solid var(--suelo); outline: 1px solid var(--junta-fuerte); }
.etapa-tiempo { display: block; font-size: 13px; color: var(--tinta-2); margin-bottom: 8px; }
.etapa h3 { margin-bottom: 10px; }
.etapa p { color: var(--tinta-2); font-size: 16.5px; }
.etapa p strong { color: var(--tinta); }

.pago { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 28px clamp(24px, 3vw, 36px); background: var(--suelo-2); border-top: 1px solid var(--ladrillo); }
.pago .ph { font-size: 40px; color: var(--ladrillo); }
.pago p { color: var(--tinta-2); max-width: 76ch; }
.pago strong { color: var(--tinta); }

/* Preguntas frecuentes */
.faq-bloque { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-bloque h2 { position: sticky; top: 110px; }
.faq { border-top: 1px solid var(--junta-fuerte); }
.faq details { border-bottom: 2px solid var(--junta); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; font-size: 19px; font-weight: 650; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ph { font-size: 22px; color: var(--ladrillo); transition: transform 0.35s var(--ease); }
.faq details[open] summary .ph { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--tinta-2); max-width: 62ch; }

/* Contacto: celosía de ladrillo con la placa encima */
.contacto { position: relative; min-height: 560px; display: grid; place-items: center; overflow: hidden; border-top: 2px solid var(--junta); }
.contacto .muro { position: absolute; inset: 0; }
.contacto-placa { position: relative; z-index: 1; width: min(640px, calc(100% - 2 * var(--gutter))); padding: clamp(32px, 5vw, 56px); background: var(--suelo); border-top: 1px solid var(--junta-fuerte); box-shadow: var(--sombra); }
.contacto-placa h2 { margin-bottom: 18px; }
.contacto-placa p { color: var(--tinta-2); margin-bottom: 30px; }
.contacto-placa p strong { color: var(--tinta); }
.redes { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; padding-top: 22px; border-top: 2px solid var(--junta); }
.redes a { display: inline-flex; align-items: center; gap: 8px; color: var(--tinta-2); font-weight: 600; font-size: 15.5px; text-decoration: none; }
.redes a:hover { color: var(--ladrillo); }
.redes .ph { font-size: 20px; }

/* Pie */
.pie { border-top: 2px solid var(--junta); }
.pie .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 28px; padding-bottom: 28px; }
.pie small { color: var(--tinta-2); font-size: 14px; }

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: var(--ladrillo);
  color: var(--sobre-ladrillo);
  text-decoration: none;
  box-shadow: var(--sombra);
  transition: background 0.2s, transform 0.2s var(--ease);
}
.wa-float .ph { font-size: 30px; }
.wa-float:hover { background: var(--ladrillo-hover); transform: translateY(-2px); }

/* --- /clases ----------------------------------------------------------- */

.clase-bloque { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.clase-bloque h2 { margin-bottom: 22px; }
.incluye { list-style: none; border-top: 1px solid var(--junta-fuerte); }
.incluye li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 20px 0; border-bottom: 2px solid var(--junta); }
.incluye .ph { font-size: 24px; color: var(--ladrillo); margin-top: 2px; }
.incluye strong { display: block; font-size: 19px; margin-bottom: 4px; }
.incluye span { color: var(--tinta-2); font-size: 16.5px; }

/* El Libro: campo de cerro a sangre */
.libro { background: var(--cerro); color: var(--sobre-cerro); }
.libro .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(40px, 6vw, 96px); align-items: center; padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); }
.libro h2 { color: var(--sobre-cerro); margin-bottom: 22px; max-width: 14ch; }
.libro p { color: var(--sobre-cerro-2); max-width: 52ch; margin-bottom: 32px; }
.libro p strong { color: var(--sobre-cerro); }
.libro-datos { display: grid; grid-template-columns: 1fr 1fr; border-top: 4px solid var(--sobre-cerro); }
.libro-datos div { padding: 22px 0 18px; border-bottom: 2px solid color-mix(in srgb, var(--sobre-cerro) 22%, transparent); }
.libro-datos div:nth-child(odd) { padding-right: 20px; border-right: 2px solid color-mix(in srgb, var(--sobre-cerro) 22%, transparent); }
.libro-datos div:nth-child(even) { padding-left: 20px; }
.libro-datos b { display: block; font-size: clamp(44px, 5vw, 68px); font-variation-settings: "wdth" 72; font-weight: 750; line-height: 1; letter-spacing: -0.02em; }
.libro-datos span { font-size: 15px; color: var(--sobre-cerro-2); }
.libro .btn-claro { background: var(--sobre-cerro); color: var(--cerro); }
.libro .btn-claro:hover { background: #fff; }

/* Agenda en vivo */
.agenda-bloque { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.horario { border-top: 1px solid var(--junta-fuerte); padding-top: 24px; position: sticky; top: 100px; }
.horario-hora { display: block; font-size: clamp(40px, 4.6vw, 64px); font-variation-settings: "wdth" 70; font-weight: 750; line-height: 1; letter-spacing: -0.02em; margin: 10px 0 12px; }
.horario p { color: var(--tinta-2); font-size: 16.5px; margin-bottom: 16px; }
.semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; background: var(--junta); border: 2px solid var(--junta); margin: 18px 0 22px; }
.semana span { padding: 10px 0; text-align: center; background: var(--ladrillo); color: var(--sobre-ladrillo); font-weight: 700; font-size: 14px; }
.semana span.off { background: var(--suelo-2); color: var(--tinta-2); }
.agenda-estado { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15.5px; color: var(--libre); }
.agenda-estado::before { content: ""; width: 10px; height: 10px; background: currentColor; }
.agenda-estado.sin-cupos { color: var(--ocupado); }

.agenda-viva { display: grid; gap: 28px; }
.agenda-vacia { color: var(--tinta-2); padding: 24px; background: var(--suelo-2); }
.dia-agenda { border-top: 1px solid var(--junta-fuerte); }
.dia-agenda.sin-cupo { border-top-color: var(--junta-fuerte); }
.dia-cabeza { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0 14px; }
.dia-cabeza b { font-size: 19px; text-transform: capitalize; }
.dia-cabeza span { font-size: 14.5px; color: var(--tinta-2); }
.huecos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.hueco { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; text-decoration: none; border: 2px solid transparent; }
.hueco b { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.hueco span { font-size: 13.5px; }
.hueco.libre { background: var(--ladrillo); color: var(--sobre-ladrillo); transition: background 0.2s, transform 0.2s var(--ease); }
.hueco.libre span { color: var(--sobre-ladrillo-2); }
.hueco.libre:hover { background: var(--ladrillo-hover); transform: translateY(-2px); }
.hueco.ocupado { background: transparent; border-color: var(--junta); color: var(--tinta-2); }
.hueco.ocupado b { text-decoration: line-through; text-decoration-thickness: 1px; }
.booking-note { display: block; margin-top: 24px; color: var(--tinta-2); font-size: 15.5px; }
.booking-note a { color: var(--ladrillo); font-weight: 700; }

/* --- Responsive -------------------------------------------------------- */

@media (max-width: 1080px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .hero-texto { padding: 48px var(--gutter) 44px; }
  .hero-muro { height: clamp(260px, 52vw, 440px); }
  .quien, .plano-bloque, .clase-bloque, .faq-bloque, .agenda-bloque, .libro .wrap { grid-template-columns: 1fr; }
  .faq-bloque h2, .horario { position: static; }
  .obras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .obra, .obra:nth-child(n) { grid-column: span 1; }
  .obra:nth-child(1), .obra.obra-propia:last-child { grid-column: 1 / -1; }
  .obra:nth-child(2) { display: flex; }
  .obra:nth-child(2) figure { aspect-ratio: 16 / 10; height: auto; }
  .etapas { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .etapas::before { display: none; }
  .etapa { padding-top: 44px; border-top: 1px solid var(--junta-fuerte); }
  .etapa::before { top: -14px; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav .wrap { height: 60px; gap: 12px; }
  .logo { font-size: 15px; }
  .nav-links .btn { min-height: 40px; padding: 0 14px; font-size: 15px; }
  .hero h1 { max-width: none; }
  .btns .btn { flex: 1 1 100%; }
  .servicios { grid-template-columns: 1fr; }
  .obras { grid-template-columns: 1fr; }
  .obra:nth-child(n) { grid-column: auto; }
  .crujias { grid-template-columns: 1fr; }
  .crujia + .crujia { border-left: 0; border-top: 2px solid var(--junta-fuerte); }
  .crujia-pro { margin: 0 -4px; padding-left: calc(clamp(28px, 3vw, 40px) + 4px); padding-right: calc(clamp(28px, 3vw, 40px) + 4px); }
  .crujia-pro + .crujia { border-top: 0; }
  .etapas { grid-template-columns: 1fr; }
  .planta { grid-template-columns: 1fr; }
  .cuarto:nth-child(1) { grid-row: auto; border-right: 0; border-bottom: 1px solid var(--junta-fuerte); }
  .cuarto:nth-child(1)::after { right: auto; top: auto; bottom: -4px; left: 24px; width: 44px; height: 4px; }
  .ficha div { grid-template-columns: 1fr; gap: 4px; }
  .pago { grid-template-columns: 1fr; gap: 14px; }
  .faq details p { padding-right: 0; }
  .placa { right: 20px; }
  .contacto { min-height: 0; padding: 72px 0; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}
