/* Diseño «Eje» · Arimo + Anonymous Pro · una lámina de anatomía impresa con rigor suizo.
   Blanco puro, negro y un único rojo vivo. Firma: una columna vertebral (vértebras negras con la médula roja) recorre
   la página junto a la navegación lateral y se llena de rojo al bajar; cada sección se numera como una vértebra
   (C1, C2… T1…) en monoespaciada y lleva su código enorme en contorno; rejilla de 12 columnas visible en los fondos
   suaves; titulares enormes y apretados; filetes negros; cortes en diagonal entre secciones (diseno.json). */

@counter-style vertebra {
  system: fixed;
  symbols: "C1" "C2" "C3" "C4" "C5" "C6" "C7" "T1" "T2" "T3" "T4" "T5" "T6" "T7" "T8" "T9" "T10" "T11" "T12" "L1" "L2" "L3" "L4" "L5" "S1";
  fallback: decimal;
}

html[data-diseno="eje"] {
  --f-titulos: 'Arimo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-texto: 'Arimo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-mono: 'Anonymous Pro', ui-monospace, 'Consolas', monospace;
  --peso-titulos: 700;
  --tracking-titulos: -0.045em;
  --interlinea-titulos: .95;
  --estilo-enfasis: normal;
  --peso-enfasis: 700;
  --rojo: var(--c1);
  --tinta: #111111;
  --fondo: #ffffff;
  --fondo-suave: #f1f1ef;
  --texto: #111111;
  --texto-suave: #575757;
  --borde: rgb(17 17 17 / .16);
  --enfasis: var(--c1);
  --ante: var(--texto);
  --radio: 0px;
  --radio-foto: 0px;
  --radio-boton: 0px;
  --radio-campo: 0px;
  --sombra: none;
  --sombra-fuerte: none;
  --h1: clamp(3rem, .9rem + 8.4vw, 9.6rem);
  --h2: clamp(2.2rem, 1.3rem + 3.4vw, 4.6rem);
  --h3: clamp(1.12rem, 1.04rem + .35vw, 1.32rem);
  --t-base: clamp(1rem, .97rem + .16vw, 1.075rem);
  --alto-cab: 72px;
  --sep-alto: clamp(28px, 4.5vw, 64px);
  --rejilla: linear-gradient(to right, rgb(17 17 17 / .055) 1px, transparent 1px) 0 0 / 8.3333% 100%;
  --vertebras: repeating-linear-gradient(to bottom, var(--tinta) 0 20px, transparent 20px 28px);
}

/* ---------- Base tipográfica ---------- */
html[data-diseno="eje"] body { font-feature-settings: "tnum" 0; }
html[data-diseno="eje"] main { counter-reset: vert; }
html[data-diseno="eje"] main > .s { counter-increment: vert; }
html[data-diseno="eje"] h3 { letter-spacing: -0.02em; }
html[data-diseno="eje"] .s-titulo { letter-spacing: -0.05em; }
html[data-diseno="eje"] .s-intro { color: var(--texto-suave); }

/* Antetítulo: código de vértebra en rojo + etiqueta en monoespaciada */
html[data-diseno="eje"] .ante {
  display: inline-flex; align-items: baseline; gap: .7em;
  font-family: var(--f-mono); font-weight: 400; font-size: .86rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--texto);
}
html[data-diseno="eje"] main .ante::before {
  content: counter(vert, vertebra);
  font-weight: 700; color: var(--rojo); letter-spacing: 0;
  padding-right: .7em; border-right: 1px solid currentColor;
}
html[data-diseno="eje"] .ante .ico { display: none; }

/* Código enorme de la vértebra en contorno, a la derecha de cada cabecera de sección */
html[data-diseno="eje"] main .s-cab { position: relative; max-width: none; }
html[data-diseno="eje"] main .s-cab > * { max-width: 780px; }
html[data-diseno="eje"] main .s-cab::after {
  content: counter(vert, vertebra);
  position: absolute; right: 0; top: -.08em;
  font: 700 clamp(3.6rem, 2rem + 6vw, 8.5rem)/1 var(--f-titulos); letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgb(17 17 17 / .14);
  pointer-events: none;
}
@media (max-width: 760px) { html[data-diseno="eje"] main .s-cab::after { font-size: 3.2rem; top: -.2em; } }

/* Fondos suaves: la rejilla de 12 columnas a la vista */
html[data-diseno="eje"] .fondo-suave { background: var(--rejilla), var(--fondo-suave); }

/* ---------- Botones ---------- */
html[data-diseno="eje"] .btn {
  border-width: 2px; font-family: var(--f-mono); font-weight: 700; font-size: .9rem; letter-spacing: .05em;
  text-transform: uppercase; min-height: 50px;
}
html[data-diseno="eje"] .btn-primario { background: var(--rojo); border-color: var(--rojo); color: #fff; }
html[data-diseno="eje"] .btn-primario:hover { background: var(--tinta); border-color: var(--tinta); color: #fff; }
html[data-diseno="eje"] .btn-secundario { background: transparent; border-color: var(--tinta); color: var(--tinta); }
html[data-diseno="eje"] .btn-secundario:hover { background: var(--tinta); color: #fff; }

/* ---------- Cabecera lateral ---------- */
html[data-diseno="eje"] .cab .logo-nombre { font-size: 1.9rem; letter-spacing: -0.06em; line-height: .9; }
html[data-diseno="eje"] .cab .logo-nombre::after { content: "."; color: var(--rojo); }
html[data-diseno="eje"] .cab .logo-lema { font-family: var(--f-mono); letter-spacing: .08em; color: var(--texto); }
html[data-diseno="eje"] .nav-lista a { font-weight: 700; letter-spacing: -0.01em; }
html[data-diseno="eje"] .cab-tel { font-family: var(--f-mono); font-weight: 700; }
html[data-diseno="eje"] .burger { border-radius: 0; background: transparent; border: 2px solid var(--tinta); }

@media (min-width: 1100px) {
  html[data-diseno="eje"] .cab-lateral .cab { border-right: 1px solid var(--tinta); }
  html[data-diseno="eje"] .cab-lateral .cab-in { padding: 36px 30px 30px 26px; gap: 40px; }
  html[data-diseno="eje"] .cab-lateral .cab .logo-nombre { font-size: 2.5rem; }
  html[data-diseno="eje"] .cab-lateral .cab .logo-lema { margin-top: 10px; }
  html[data-diseno="eje"] .cab-lateral .nav-lista { counter-reset: nav; gap: 0; border-top: 1px solid var(--tinta); }
  html[data-diseno="eje"] .cab-lateral .nav-lista li { counter-increment: nav; border-bottom: 1px solid var(--borde); }
  html[data-diseno="eje"] .cab-lateral .nav-lista a {
    display: flex; align-items: baseline; gap: 12px; padding: 13px 4px; border-radius: 0; font-size: 1.05rem;
  }
  html[data-diseno="eje"] .cab-lateral .nav-lista a::before {
    content: counter(nav, decimal-leading-zero); font-family: var(--f-mono); font-weight: 400; font-size: .8rem; color: var(--texto-suave);
  }
  html[data-diseno="eje"] .cab-lateral .nav-lista a[aria-current] { background: none; color: var(--rojo); }
  html[data-diseno="eje"] .cab-lateral .nav-lista a[aria-current]::before { color: var(--rojo); }
  html[data-diseno="eje"] .cab-lateral .nav-lista a:hover { color: var(--rojo); text-decoration: none; }
  html[data-diseno="eje"] .cab-lateral .idiomas { font-family: var(--f-mono); padding-left: 4px; }
  html[data-diseno="eje"] .cab-lateral .cab-tel { padding-inline: 0; font-size: 1.05rem; }

  /* La columna vertebral, fija en el canto de la navegación; se llena de rojo al bajar */
  html[data-diseno="eje"] body.cab-lateral::before,
  html[data-diseno="eje"] body.cab-lateral::after {
    content: ""; position: fixed; z-index: 55; top: 0; left: calc(var(--ancho-lateral) - 6px);
    width: 12px; pointer-events: none;
  }
  /* Vértebras negras con la médula roja por el centro */
  html[data-diseno="eje"] body.cab-lateral::before {
    bottom: 0;
    background:
      linear-gradient(var(--rojo), var(--rojo)) center / 2px 100% no-repeat,
      var(--vertebras) center / 12px 100% no-repeat;
  }
  /* El relleno rojo, con la misma forma de vértebras, crece al desplazarse */
  html[data-diseno="eje"] body.cab-lateral::after {
    height: 0; background: var(--rojo);
    -webkit-mask: var(--vertebras); mask: var(--vertebras);
  }
  @supports (animation-timeline: scroll()) {
    html[data-diseno="eje"] body.cab-lateral::after { animation: eje-llenar linear both; animation-timeline: scroll(root); }
  }
}
@keyframes eje-llenar { from { height: 0; } to { height: 100vh; } }

/* En pantallas sin columna lateral, las vértebras van en horizontal bajo la cabecera */
@media (max-width: 1099px) {
  html[data-diseno="eje"] .cab { border-bottom: 1px solid var(--tinta); }
  html[data-diseno="eje"] .cab::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 10px; pointer-events: none;
    background:
      linear-gradient(var(--rojo), var(--rojo)) center / 100% 2px no-repeat,
      repeating-linear-gradient(to right, var(--tinta) 0 18px, transparent 18px 25px) center / 100% 10px no-repeat;
    opacity: .9;
  }
  html[data-diseno="eje"] .nav-abierta .cab::after { display: none; }
}

/* ---------- Portada panorámica ---------- */
html[data-diseno="eje"] .s-portada.v-panoramica { padding-top: clamp(48px, 7vw, 110px); }
html[data-diseno="eje"] .v-panoramica .portada-texto { max-width: none; }
html[data-diseno="eje"] .v-panoramica .portada-titulo { font-size: var(--h1); letter-spacing: -0.065em; line-height: .88; margin: 22px 0 0; }
@media (min-width: 900px) {
  html[data-diseno="eje"] .v-panoramica .portada-texto {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--hueco); align-items: start;
  }
  html[data-diseno="eje"] .v-panoramica .portada-texto > .ante { grid-column: 1 / -1; }
  html[data-diseno="eje"] .v-panoramica .portada-titulo { grid-column: 1 / -1; }
  html[data-diseno="eje"] .v-panoramica .portada-sub { grid-column: 7 / -1; grid-row: 3; margin-top: clamp(28px, 3vw, 44px); }
  html[data-diseno="eje"] .v-panoramica .botones { grid-column: 7 / -1; grid-row: 4; }
  html[data-diseno="eje"] .v-panoramica .portada-destacados { grid-column: 1 / 6; grid-row: 3 / span 2; margin-top: clamp(28px, 3vw, 44px); }
}
html[data-diseno="eje"] .v-panoramica .portada-sub { font-size: clamp(1.08rem, 1rem + .3vw, 1.25rem); line-height: 1.5; }
html[data-diseno="eje"] .portada-destacados {
  display: grid; gap: 0; border-top: 2px solid var(--tinta);
  font-family: var(--f-mono); font-size: .9rem; letter-spacing: .02em; text-transform: uppercase;
}
html[data-diseno="eje"] .portada-destacados li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--borde); }
html[data-diseno="eje"] .portada-destacados .ico { display: none; }
html[data-diseno="eje"] .portada-destacados li::before { content: "—"; color: var(--rojo); font-weight: 700; }

/* La banda de foto: el eje rojo vertical y su rótulo, como una lámina de anatomía */
html[data-diseno="eje"] .portada-panorama { position: relative; margin-top: clamp(40px, 5vw, 80px); border-top: 2px solid var(--tinta); }
html[data-diseno="eje"] .portada-panorama::before {
  content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--rojo); opacity: .9;
}
html[data-diseno="eje"] .portada-panorama::after {
  content: "EJE · 0°"; position: absolute; z-index: 2; top: 14px; left: calc(50% + 12px);
  font: 700 .78rem/1 var(--f-mono); letter-spacing: .1em; color: #fff; background: var(--rojo); padding: 6px 8px;
}

/* ---------- Servicios en índice ---------- */
html[data-diseno="eje"] .serv-indice { border-top: 2px solid var(--tinta); }
html[data-diseno="eje"] .serv-ind { border-bottom-color: var(--borde); }
html[data-diseno="eje"] .serv-ind .serv-num { font-family: var(--f-mono); font-weight: 700; font-size: .95rem; color: var(--rojo); }
html[data-diseno="eje"] .serv-ind h3 { letter-spacing: -0.045em; }
html[data-diseno="eje"] .serv-ind .serv-meta { font-family: var(--f-mono); }
html[data-diseno="eje"] .serv-ind .serv-precio { font-family: var(--f-titulos); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em; color: var(--texto); }
html[data-diseno="eje"] .serv-ind-foto { outline: 2px solid var(--tinta); outline-offset: -2px; }
@media (hover: hover) and (min-width: 861px) {
  html[data-diseno="eje"] .serv-ind:hover .serv-ind-foto { transform: translateY(-50%) rotate(0deg); }
  html[data-diseno="eje"] .serv-ind:hover { background: linear-gradient(to right, var(--rojo) 0 4px, transparent 4px); }
}

/* ---------- Texto en columnas ---------- */
html[data-diseno="eje"] .texto-columnas-cab { border-bottom: 2px solid var(--tinta); max-width: none; }
html[data-diseno="eje"] .texto-columnas-cuerpo { column-rule-color: var(--tinta); }
html[data-diseno="eje"] .texto-columnas-cuerpo .prosa p:first-child::first-letter { color: var(--rojo); font-size: 5em; line-height: .78; letter-spacing: -0.05em; }
html[data-diseno="eje"] .texto-columnas-foto { position: relative; }
html[data-diseno="eje"] .texto-columnas-foto::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 28%; height: 6px; background: var(--rojo);
}

/* ---------- Cifras grandes ---------- */
html[data-diseno="eje"] .s-cifras.v-grandes .cifras { border-top: 2px solid var(--tinta); }
html[data-diseno="eje"] .s-cifras.v-grandes .cifra dt { letter-spacing: -0.07em; line-height: .9; }
html[data-diseno="eje"] .s-cifras.v-grandes .cifra dd { font-family: var(--f-mono); font-size: 1.02rem; text-transform: uppercase; letter-spacing: .03em; }
html[data-diseno="eje"] .s-cifras.v-grandes .cifra dd::before { content: "→ "; color: var(--rojo); font-weight: 700; }

/* ---------- Testimonios en tarjetas ---------- */
html[data-diseno="eje"] .testimonio { border-top: 6px solid var(--tinta); background: var(--fondo); padding-top: 28px; }
html[data-diseno="eje"] .testimonio .comillas { color: var(--rojo); }
html[data-diseno="eje"] .testimonio blockquote { font-size: 1.12rem; letter-spacing: -0.01em; }
html[data-diseno="eje"] .testimonio figcaption { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; }
html[data-diseno="eje"] .testimonio figcaption strong { color: var(--texto); }

/* ---------- Tarifas en tabla ---------- */
html[data-diseno="eje"] .tarifas-tabla { border-top: 2px solid var(--tinta); }
html[data-diseno="eje"] .tarifas-tabla .tt-grupo th { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .06em; font-size: .86rem; color: var(--rojo); border-bottom: 1px solid var(--tinta); }
html[data-diseno="eje"] .tarifas-tabla td { color: var(--texto); font-size: 1.15rem; letter-spacing: -0.02em; }
html[data-diseno="eje"] .tarifas-tabla tr:not(.tt-grupo):hover > * { background: rgb(225 38 28 / .06); }

/* ---------- Pasos en línea: la columna, vértebra a vértebra ---------- */
html[data-diseno="eje"] .v-linea .paso::before { left: 27px; width: 2px; background: var(--rojo); top: 56px; bottom: 0; }
html[data-diseno="eje"] .v-linea .paso-num {
  border-radius: 0; background: var(--tinta); color: #fff; font-family: var(--f-mono); font-weight: 700; font-size: 1rem;
  width: 56px; height: 44px; margin-top: 6px;
}
html[data-diseno="eje"] .v-linea .paso h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); letter-spacing: -0.04em; }

/* ---------- Equipo en lista: retratos cuadrados en blanco y negro ---------- */
html[data-diseno="eje"] .s-equipo.v-lista .persona { border-bottom-color: var(--tinta); }
html[data-diseno="eje"] .s-equipo.v-lista .persona figure { border-radius: 0; }
html[data-diseno="eje"] .s-equipo .persona img { filter: grayscale(1) contrast(1.05); transition: filter .3s ease; }
html[data-diseno="eje"] .s-equipo .persona:hover img { filter: none; }
html[data-diseno="eje"] .persona-cargo { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .04em; font-size: .84rem; color: var(--rojo); }
html[data-diseno="eje"] .persona-dato { font-family: var(--f-mono); font-size: .84rem; border-top: 1px solid var(--borde); padding-top: 8px; }

/* ---------- Galería: hoja de contactos con filetes negros ---------- */
html[data-diseno="eje"] .s-galeria.v-cuadricula .galeria { gap: 2px; background: var(--tinta); border: 2px solid var(--tinta); }

/* ---------- FAQ ---------- */
html[data-diseno="eje"] .faq-col { border-top: 2px solid var(--tinta); }
html[data-diseno="eje"] .faq .pregunta, html[data-diseno="eje"] .faq-col h3 { letter-spacing: -0.03em; }

/* ---------- CTA en banda: tinta con el rojo de acento ---------- */
html[data-diseno="eje"] .s-cta.v-banda { --fondo-sec: var(--tinta); background: var(--tinta); color: #fff; }
html[data-diseno="eje"] .s-cta.v-banda .s-titulo { color: #fff; }
html[data-diseno="eje"] .s-cta.v-banda .s-titulo em { color: var(--rojo); }
html[data-diseno="eje"] .s-cta.v-banda .cta-texto { color: rgb(255 255 255 / .78); }
html[data-diseno="eje"] .s-cta.v-banda .btn { background: var(--rojo); border-color: var(--rojo); color: #fff; }
html[data-diseno="eje"] .s-cta.v-banda .btn:hover { background: #fff; border-color: #fff; color: var(--tinta); }

/* ---------- Formulario y contacto ---------- */
html[data-diseno="eje"] .form { border-top: 6px solid var(--rojo); }
html[data-diseno="eje"] .campo > span, html[data-diseno="eje"] .campo legend { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; }
html[data-diseno="eje"] .campo input, html[data-diseno="eje"] .campo select, html[data-diseno="eje"] .campo textarea { border-width: 0 0 2px; border-color: var(--tinta); background: transparent; }
html[data-diseno="eje"] .s-contacto.v-tarjeta .contacto-ficha { border-top: 6px solid var(--rojo); }
html[data-diseno="eje"] .opcion span { border-radius: 0; border-width: 2px; border-color: var(--tinta); font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; }
html[data-diseno="eje"] .opcion input:checked + span { background: var(--tinta); border-color: var(--tinta); color: #fff; }
html[data-diseno="eje"] .form-directo .ico { border-radius: 0; background: var(--tinta); color: #fff; }
html[data-diseno="eje"] .form-directo small { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .05em; }
/* El plano del mapa en grises, como un esquema; solo el pin en rojo */
html[data-diseno="eje"] .mapa-dibujo {
  background:
    linear-gradient(90deg, transparent 47%, #fff 47% 53%, transparent 53%) 0 0 / 120px 120px,
    linear-gradient(0deg, transparent 47%, #fff 47% 53%, transparent 53%) 0 0 / 90px 90px,
    linear-gradient(28deg, transparent 49%, #fff 49% 51.5%, transparent 51.5%) 0 0 / 100% 100%,
    #e4e4e1;
}
html[data-diseno="eje"] .mapa-pin { border-radius: 0; transform: none; width: 22px; height: 22px; box-shadow: 0 0 0 8px rgb(225 38 28 / .18); }
html[data-diseno="eje"] .mapa-pin .ico { display: none; }

/* ---------- Pie grande ---------- */
html[data-diseno="eje"] .pie { background: var(--tinta); color: rgb(255 255 255 / .86); border-top: 6px solid var(--rojo); }
html[data-diseno="eje"] .pie-titulo { font-family: var(--f-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #ff6a5e; }
html[data-diseno="eje"] .pie-gigante {
  color: var(--rojo); letter-spacing: -0.075em; font-size: clamp(4rem, 1rem + 17vw, 17rem); line-height: .8;
  height: .74em; overflow: hidden; margin-top: 56px;
}
html[data-diseno="eje"] .logo-pie .logo-nombre::after { content: "."; color: var(--rojo); }

@media (prefers-reduced-motion: reduce) {
  html[data-diseno="eje"] body.cab-lateral::after { animation: none; height: 0; }
}
