/* Piles Ingeniería · hoja de estilos única. Versión 5 (6-nov-2026): portada a todo el ancho con el pórtico de una nave
   dibujándose, dos públicos (gerencia y técnicos de planta), servicios en mosaico y textos cortos.
   Letra Inter alojada en la propia web (licencia OFL, fuentes/OFL-inter.txt). Fotos de Pexels (ver IMAGENES.md).
   Sin JavaScript ni recursos de terceros; las animaciones son CSS y respetan «reducir movimiento». */

@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fuentes/inter-latin-wght-normal.woff2") format("woff2-variations"), url("fuentes/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --rojo: #a92421;
  --rojo-oscuro: #8a1c1a;
  --rojo-suave: #fbefee;
  --tinta: #121211;
  --texto: #3d3c39;
  --suave: #6f6e6a;
  --tenue: #9a9893;
  --linea: #e9e8e4;
  --gris: #f5f5f2;
  --blanco: #fff;
  --ancho: 1200px;
  --radio: 24px;
  --sombra: 0 1px 2px rgb(18 18 17 / 0.04), 0 8px 24px -8px rgb(18 18 17 / 0.08);
  --sombra-alta: 0 2px 4px rgb(18 18 17 / 0.04), 0 24px 48px -16px rgb(18 18 17 / 0.18);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* Web solo clara (11-nov): que el modo oscuro forzado de algunos navegadores de móvil no le invierta los colores. */
  color-scheme: only light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--texto); background: var(--blanco);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss03";
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--rojo); text-underline-offset: 3px; }
a:hover { color: var(--rojo-oscuro); }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { color: var(--tinta); margin: 0; font-weight: 650; letter-spacing: -0.025em; line-height: 1.12; }
p { margin: 0 0 1em; }

.contenedor { width: min(100% - 48px, var(--ancho)); margin-inline: auto; }

.saltar { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--tinta); color: var(--blanco); padding: 10px 16px; border-radius: 999px; }
.saltar:focus { top: 12px; color: var(--blanco); }

/* Pastilla de sección */
.antetitulo {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 14px 6px 12px;
  font-size: 13.5px; font-weight: 550; color: var(--texto);
  background: var(--blanco); border: 1px solid var(--linea); border-radius: 999px;
}
.antetitulo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rojo); box-shadow: 0 0 0 4px var(--rojo-suave); }
.antetitulo-claro { background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.22); color: #f1efeb; backdrop-filter: blur(8px); }
.antetitulo-claro::before { box-shadow: 0 0 0 4px rgb(169 36 33 / 0.4); }

/* ---------- Cabecera ---------- */

.cabecera { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.9); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgb(18 18 17 / 0.06); }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.marca img { height: 40px; width: auto; }
@media (min-width: 1041px) { .marca img { height: 46px; } }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a { color: var(--texto); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 13px; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.menu a:hover { background: var(--gris); color: var(--tinta); }
.menu .menu-contacto { margin-left: 8px; background: var(--tinta); color: var(--blanco); padding: 9px 18px; }
.menu .menu-contacto:hover { background: var(--rojo); color: var(--blanco); }

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

.botones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
.boton {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 16px; font-weight: 600;
  padding: 15px 26px; border-radius: 999px; background: var(--rojo); color: var(--blanco);
  box-shadow: 0 8px 20px -8px rgb(169 36 33 / 0.55); transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.boton::after { content: ""; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); margin-left: 2px; transition: transform 0.2s; }
.boton:hover { background: var(--rojo-oscuro); color: var(--blanco); transform: translateY(-1px); }
.boton:hover::after { transform: translateX(3px) rotate(45deg); }
.boton-claro { background: var(--blanco); color: var(--tinta); border: 1px solid var(--linea); box-shadow: none; }
.boton-claro::after { display: none; }
.boton-claro:hover { background: var(--gris); color: var(--tinta); }
.boton-blanco { background: var(--blanco); color: var(--tinta); box-shadow: none; }
.boton-blanco:hover { background: var(--rojo-suave); color: var(--tinta); }
.boton-cristal { background: rgb(255 255 255 / 0.1); color: var(--blanco); border: 1px solid rgb(255 255 255 / 0.3); box-shadow: none; backdrop-filter: blur(8px); }
.boton-cristal::after { display: none; }
.boton-cristal:hover { background: rgb(255 255 255 / 0.2); color: var(--blanco); }

/* ---------- Portada ---------- */

.portada { position: relative; isolation: isolate; overflow: hidden; color: var(--blanco); min-height: clamp(660px, 90vh, 880px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 96px; }
.portada-fondo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.portada-velo {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(12 12 11 / 0.92) 0%, rgb(12 12 11 / 0.7) 42%, rgb(12 12 11 / 0.25) 100%),
    linear-gradient(0deg, rgb(12 12 11 / 0.75), transparent 50%);
}
/* Portada principal con menos velo (Juan, 11-nov: «la imagen de la portada también sale oscura»): la nave se ve y el
   titular se sigue leyendo, con una sombra suave. Las páginas de servicio conservan el velo de arriba. */
.portada:not(.portada-servicio) .portada-velo {
  background:
    linear-gradient(90deg, rgb(12 12 11 / 0.86) 0%, rgb(12 12 11 / 0.58) 42%, rgb(12 12 11 / 0.08) 100%),
    linear-gradient(0deg, rgb(12 12 11 / 0.5), transparent 45%);
}
.portada h1 { text-shadow: 0 2px 24px rgb(0 0 0 / 0.35); }
.portada-texto { position: relative; padding-bottom: 40px; }
.portada h1 { color: var(--blanco); font-size: clamp(2.9rem, 5.8vw, 5.1rem); font-weight: 700; letter-spacing: -0.05em; line-height: 0.98; max-width: 10.5em; }
.entradilla { margin-top: 28px; font-size: 1.22rem; line-height: 1.6; max-width: 31em; }
.portada .entradilla { color: rgb(255 255 255 / 0.84); }

.portico { position: absolute; right: max(24px, calc((100vw - var(--ancho)) / 2 - 20px)); bottom: 150px; width: min(33vw, 460px); z-index: -1; opacity: 0.92; }
.portico .traza { stroke: rgb(255 255 255 / 0.85); stroke-width: 2; stroke-dasharray: 1 1.02; stroke-dashoffset: 0; }
.portico .fina { stroke-width: 1.3; stroke: rgb(255 255 255 / 0.6); }
.portico .grua { stroke: #e24b46; stroke-width: 2.4; }
.portico .cota { stroke-width: 1; stroke: rgb(255 255 255 / 0.5); }
.portico .nudo { fill: var(--rojo); stroke: var(--blanco); stroke-width: 1.5; }
.portico text { fill: rgb(255 255 255 / 0.7); font-family: var(--sans); font-size: 12px; letter-spacing: 0.12em; }
.portico .portico-cota { letter-spacing: 0.04em; font-size: 13px; }

.portada-datos {
  margin: 0 0 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgb(255 255 255 / 0.18); border-radius: 22px; background: rgb(255 255 255 / 0.08); backdrop-filter: blur(16px);
}
.portada-datos div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 20px 24px; border-left: 1px solid rgb(255 255 255 / 0.14); }
.portada-datos div:first-child { border-left: 0; }
.portada-datos dd { margin: 0; font-size: 1.08rem; font-weight: 650; color: var(--blanco); line-height: 1.3; }
.portada-datos dt { font-size: 15px; color: rgb(255 255 255 / 0.82); line-height: 1.4; margin-top: 2px; }

/* Cinta de reglamentos */

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

.seccion { padding: 112px 0; scroll-margin-top: 72px; }
.seccion-gris { background: var(--gris); }
.seccion-cabeza { max-width: 46em; margin-bottom: 56px; }
.seccion h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 680; letter-spacing: -0.04em; line-height: 1.05; }
.seccion-cabeza > p:not(.antetitulo) { margin: 20px 0 0; font-size: 1.18rem; color: var(--suave); }

/* ---------- Para quién ---------- */

.perfiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.perfil {
  position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 40px 40px 40px;
  border-radius: 28px; background: var(--blanco); border: 1px solid var(--linea); transition: transform 0.25s, box-shadow 0.25s;
}
.perfil:hover { transform: translateY(-4px); box-shadow: var(--sombra-alta); }
.perfil-icono { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--rojo-suave); color: var(--rojo); margin-bottom: 28px; }
.perfil-icono svg { width: 26px; height: 26px; }
.perfil h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); letter-spacing: -0.035em; margin-bottom: 12px; }
.perfil > p { font-size: 1.08rem; margin-bottom: 24px; }
.perfil ul { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.perfil li { position: relative; padding-left: 32px; line-height: 1.5; }
.perfil li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--rojo-suave); }
.perfil li::after { content: ""; position: absolute; left: 8px; top: 5px; width: 5px; height: 10px; border-right: 2px solid var(--rojo); border-bottom: 2px solid var(--rojo); transform: rotate(45deg); }
.perfil .boton { margin-top: auto; align-self: flex-start; }
.perfil-oscuro { background: var(--tinta); border-color: var(--tinta); color: #cfccc6; }
.perfil-oscuro::before { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -260px; background: radial-gradient(circle, rgb(169 36 33 / 0.45), transparent 65%); pointer-events: none; }
.perfil-oscuro > * { position: relative; }
.perfil-oscuro h3 { color: var(--blanco); }
.perfil-oscuro .perfil-icono { background: rgb(255 255 255 / 0.08); color: var(--blanco); }
.perfil-oscuro li::before { background: rgb(255 255 255 / 0.1); }
.perfil-oscuro li::after { border-color: #ff8a85; }

/* ---------- Servicios en mosaico ---------- */

/* Ocho piezas desde el 10-nov (dirección de proyectos y dirección de obra por separado): la grande y legalizaciones
   arriba, y dos filas de tres. */
.mosaico { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(4, 260px); gap: 20px; }
.pieza { position: relative; overflow: hidden; border-radius: var(--radio); background: var(--tinta); color: var(--blanco); isolation: isolate; }
.pieza img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(.2,.7,.2,1); }
.pieza::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(12 12 11 / 0.88) 0%, rgb(12 12 11 / 0.35) 55%, rgb(12 12 11 / 0.05) 100%); }
.pieza:hover img { transform: scale(1.05); }
.pieza-texto { position: absolute; inset: auto 0 0 0; padding: 28px 30px; }
.pieza h3 { color: var(--blanco); font-size: 1.45rem; letter-spacing: -0.025em; margin-bottom: 8px; }
.pieza-texto > p:last-child { margin: 0; color: rgb(255 255 255 / 0.82); font-size: 0.98rem; line-height: 1.5; max-width: 34em; }
.pieza-etiqueta { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; background: var(--rojo); color: var(--blanco); font-size: 12.5px; font-weight: 600; }
.pieza-direccion { grid-column: span 8; grid-row: span 2; }
.pieza-direccion h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); letter-spacing: -0.04em; }
.pieza-legal { grid-column: span 4; grid-row: span 2; }
.pieza-legal img { object-position: 50% 30%; }
.pieza-obra, .pieza-licencias, .pieza-seguridad, .pieza-naves, .pieza-calculo, .pieza-maquinas { grid-column: span 4; }
/* 11-nov (Juan, punto 3 de María): todas las piezas con foto y el mismo velo; se van los dibujos, el rojo macizo de
   cálculo y los brillos rojos. Juan las vio «muy oscuras» con un velo de 0,92 y 0,62: ahora el velo solo cubre la
   franja del texto y la mitad de arriba queda limpia, y una sombra suave en las letras asegura que se lean. */
.pieza::after { background: linear-gradient(0deg, rgb(12 12 11 / 0.84) 0%, rgb(12 12 11 / 0.5) 42%, rgb(12 12 11 / 0.12) 70%, rgb(12 12 11 / 0) 100%); }
.pieza-texto { text-shadow: 0 1px 14px rgb(0 0 0 / 0.45); }
/* El velo extra de la cubierta de cerchas (9-nov, entonces foto de naves) se quitó el 11-nov: con esa foto cálculo salía
   casi negra (Juan, «muy oscuro sobre todo la de cálculo»), y cálculo pasó a una foto luminosa. */

/* ---------- Legalizaciones ---------- */

.tipos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tipo {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 22px 22px;
  background: var(--blanco); border: 1px solid var(--linea); border-radius: 20px; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.tipo:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); border-color: transparent; }
.tipo-icono { grid-row: span 2; width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--rojo-suave); color: var(--rojo); transition: background 0.25s, color 0.25s; }
.tipo:hover .tipo-icono { background: var(--rojo); color: var(--blanco); }
.tipo h3 { font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.25; margin: 2px 0 4px; }
.tipo p { font-size: 0.92rem; line-height: 1.45; color: var(--suave); margin: 0; }

.aviso {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 28px;
  padding: 26px 30px; border-radius: 24px; background: linear-gradient(110deg, var(--rojo) 0%, #7d1816 100%); color: rgb(255 255 255 / 0.88);
}
.aviso-icono { width: 52px; height: 52px; border-radius: 16px; background: rgb(255 255 255 / 0.14); color: var(--blanco); display: grid; place-items: center; }
.aviso-icono svg { width: 26px; height: 26px; }
.aviso-titulo { margin: 0 0 4px; color: var(--blanco); font-weight: 650; font-size: 1.2rem; letter-spacing: -0.015em; }
.aviso div p:last-child { margin: 0; }

.encargo { margin-top: 88px; }
.encargo-titulo { font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 680; letter-spacing: -0.035em; margin-bottom: 36px; }
.pasos { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pasos::before { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 2px; background: linear-gradient(90deg, var(--rojo), var(--linea)); }
.paso { position: relative; }
.paso-num {
  position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px;
  font-weight: 650; font-size: 16px; background: var(--blanco); color: var(--rojo); border: 2px solid var(--rojo); font-variant-numeric: tabular-nums;
}
.paso:first-child .paso-num { background: var(--rojo); color: var(--blanco); }
.paso h4 { font-size: 1.15rem; margin-bottom: 6px; }
.paso p { margin: 0; color: var(--suave); line-height: 1.5; }

/* ---------- Cómo trabajo ---------- */

.principios { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.principio { background: var(--blanco); border-radius: var(--radio); padding: 30px 28px 32px; transition: background 0.25s, transform 0.25s; }
.principio:hover { background: var(--rojo-suave); transform: translateY(-3px); }
.principio-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 36px;
  background: var(--gris); color: var(--rojo); font-weight: 650; font-size: 14px;
}
.principio h3 { font-size: 1.2rem; margin-bottom: 8px; letter-spacing: -0.015em; }
.principio p { font-size: 0.97rem; margin: 0; }

/* ---------- Trabajos ---------- */

.trabajos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (min-width: 1041px) {
  .trabajos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .trabajo { grid-column: span 2; }
  .trabajo:nth-last-child(-n+2) { grid-column: span 3; }
}
.trabajo {
  background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 32px 32px 34px;
  display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s;
}
.trabajo:hover { transform: translateY(-4px); box-shadow: var(--sombra-alta); }
.trabajo-tipo { align-self: flex-start; margin: 0 0 28px; padding: 5px 12px; border-radius: 999px; background: var(--rojo-suave); color: var(--rojo); font-size: 13px; font-weight: 600; }
.trabajo h3 { font-size: 1.3rem; margin-bottom: 12px; letter-spacing: -0.02em; }
.trabajo > p:last-child { margin: 0; color: var(--suave); }

/* Trabajos con más peso (11-nov, punto 4 de María): detrás de servicios, sobre fondo oscuro y con un dibujo de línea
   cada uno sobre cuadrícula de plano. Sin fotos: junto a la descripción, una foto deja reconocer al cliente. */
.seccion-oscura { position: relative; overflow: hidden; background: var(--tinta); color: #c9c6c0; }
.seccion-oscura::before { content: ""; position: absolute; width: 900px; height: 900px; left: -320px; top: -520px; background: radial-gradient(circle, rgb(169 36 33 / 0.32), transparent 65%); pointer-events: none; }
.seccion-oscura > * { position: relative; }
.seccion-oscura h2 { color: var(--blanco); }
.seccion-oscura .seccion-cabeza > p:not(.antetitulo) { color: #a9a59e; }
.seccion-oscura .trabajo { background: rgb(255 255 255 / 0.04); border-color: rgb(255 255 255 / 0.1); padding: 18px 18px 30px; }
.seccion-oscura .trabajo:hover { background: rgb(255 255 255 / 0.07); box-shadow: none; }
.seccion-oscura .trabajo h3 { color: var(--blanco); padding: 0 14px; }
.seccion-oscura .trabajo > p:last-child { color: #a9a59e; padding: 0 14px; }
.seccion-oscura .trabajo-tipo { margin: 0 14px 18px; background: rgb(169 36 33 / 0.28); color: #ffb0ac; }
.trabajo-figura {
  display: grid; place-items: center; height: 170px; margin-bottom: 26px; border-radius: 16px;
  background-color: rgb(255 255 255 / 0.03);
  background-image: linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 20px 20px; background-position: -1px -1px;
}
.trabajo-dibujo { width: min(240px, 80%); height: auto; color: rgb(255 255 255 / 0.72); }

/* ---------- Sobre mí ---------- */

/* 11-nov (punto 5 de María): la foto a la izquierda, el texto íntegro a la derecha y los datos en una fila. */
.sobre { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; align-items: center; }
.sobre-foto { width: 100%; height: auto; border-radius: var(--radio); box-shadow: var(--sombra-alta); }
.sobre-texto h2 { margin-bottom: 28px; }
.sobre-texto p:not(.antetitulo) { font-size: 1.12rem; }
.sobre-datos { margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--linea); }
.sobre-datos div { padding: 18px 20px 0 0; }
.sobre-datos div + div { padding-left: 20px; border-left: 1px solid var(--linea); }
.sobre-datos dt { font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tenue); }
.sobre-datos dd { margin: 4px 0 0; color: var(--tinta); font-weight: 550; line-height: 1.35; }

/* «Para quién» pasa a fondo gris (11-nov): las cuatro reglas, en blanco para que se distingan. */
.seccion-gris .reglas .principio { background: var(--blanco); }
.tarjeta-datos { background: var(--tinta); color: #d6d4cf; border-radius: var(--radio); padding: 30px 32px 22px; box-shadow: var(--sombra-alta); overflow: hidden; }
.tarjeta-foto { display: block; width: calc(100% + 64px); max-width: none; height: auto; margin: -30px -32px 26px; }
.tarjeta-datos-titulo { margin: 0 0 14px; display: flex; align-items: center; gap: 12px; color: var(--blanco); font-weight: 650; font-size: 1.15rem; }
.tarjeta-datos-titulo::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--rojo); }
.tarjeta-datos dl { margin: 0; }
.tarjeta-datos dl div { padding: 14px 0; border-top: 1px solid rgb(255 255 255 / 0.1); }
.tarjeta-datos dt { font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: #8f8c86; }
.tarjeta-datos dd { margin: 3px 0 0; color: var(--blanco); font-weight: 500; }

/* ---------- Contacto ---------- */

.contacto { padding: 112px 0; scroll-margin-top: 72px; }
.contacto-bloque {
  position: relative; overflow: hidden; border-radius: 36px; padding: clamp(40px, 7vw, 88px);
  background: var(--tinta); color: #c9c6c0;
}
.contacto-bloque::before {
  content: ""; position: absolute; width: 760px; height: 760px; right: -220px; bottom: -420px;
  background: radial-gradient(circle, rgb(169 36 33 / 0.55), transparent 65%); pointer-events: none;
}
.contacto-bloque > * { position: relative; }
.contacto h2 { color: var(--blanco); font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 680; letter-spacing: -0.045em; line-height: 1.04; max-width: 15em; }
.contacto-texto { margin: 22px 0 0; font-size: 1.18rem; max-width: 34em; color: #bebab3; }
.contacto-texto + .contacto-texto { margin-top: 10px; color: var(--blanco); font-weight: 550; }
.contacto-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 40px; }
.correo { color: var(--blanco); font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 550; text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / 0.35); padding-bottom: 2px; overflow-wrap: anywhere; }
.correo:hover { color: var(--blanco); border-bottom-color: var(--blanco); }
.contacto-lugar { margin: 28px 0 0; font-size: 14.5px; color: #8f8c86; }

/* ---------- Pie ---------- */

.pie { border-top: 1px solid var(--linea); color: var(--suave); font-size: 14px; padding: 28px 0; }
.pie .contenedor { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.pie p { margin: 0; }
.pie a { color: var(--texto); text-decoration: none; }
.pie a:hover { color: var(--rojo); }
.pie nav { display: flex; gap: 22px; }

/* ---------- Páginas legales ---------- */

.legal { padding: 72px 0 112px; }
.legal .contenedor { max-width: 820px; }
.legal h1 { font-size: clamp(2.4rem, 4.6vw, 3.4rem); font-weight: 680; letter-spacing: -0.045em; margin-bottom: 10px; }
.legal .actualizado { color: var(--suave); font-size: 15px; margin-bottom: 48px; }
.legal h2 { font-size: 1.4rem; margin: 48px 0 14px; letter-spacing: -0.02em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin: 6px 0; }
.legal dl { margin: 0 0 1em; border: 1px solid var(--linea); border-radius: 18px; overflow: hidden; }
.legal dl div { display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.legal dl div + div { border-top: 1px solid var(--linea); }
.legal dt { padding: 14px 18px; background: var(--gris); font-size: 14.5px; font-weight: 600; color: var(--tinta); display: flex; align-items: center; }
.legal dd { margin: 0; padding: 14px 18px; }

.error { padding: 128px 0; text-align: center; }
.error h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 680; letter-spacing: -0.045em; margin-bottom: 16px; }
.error .botones { justify-content: center; }

/* ---------- Enlaces de la portada a cada servicio (6-nov por la tarde) ---------- */

a.pieza { display: block; text-decoration: none; }
a.pieza:hover { color: var(--blanco); }
.mas-enlace { margin: 28px 0 0; font-weight: 600; }
.mas-enlace a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mas-enlace a::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.2s; }
.mas-enlace a:hover::after { transform: translateX(3px) rotate(45deg); }

/* ---------- Páginas de servicio (generar_servicios.py) ---------- */

.portada-servicio { min-height: clamp(520px, 72vh, 680px); padding-top: 72px; }
.portada-servicio .portada-texto { padding-bottom: 80px; }
.portada-servicio h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); max-width: 12.5em; }
.portada-servicio .entradilla { margin-top: 24px; }
.portada-servicio.sin-foto { background: var(--tinta); }
.portada-servicio.sin-foto .portada-velo { background: radial-gradient(circle at 82% 35%, rgb(169 36 33 / 0.42), transparent 55%); }
.portico-cercha { bottom: 120px; width: min(38vw, 520px); }

.migas ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: rgb(255 255 255 / 0.7); }
.migas li + li::before { content: "/"; margin-right: 6px; color: rgb(255 255 255 / 0.4); }
.migas a { color: rgb(255 255 255 / 0.85); text-decoration: none; }
.migas a:hover { color: var(--blanco); text-decoration: underline; }
.migas [aria-current] { color: var(--blanco); font-weight: 550; }

.bloque-texto, .bloque-lista { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 72px; align-items: start; }
.bloque-texto-cuerpo p { font-size: 1.15rem; }
.bloque-texto-cuerpo p:last-child { margin-bottom: 0; }
.bloque-lista .seccion-cabeza { margin-bottom: 0; }

.comprobaciones { list-style: none; margin: 0; padding: 0; }
.comprobaciones li { position: relative; padding: 18px 0 18px 42px; border-top: 1px solid var(--linea); line-height: 1.5; font-size: 1.05rem; }
.comprobaciones li:last-child { border-bottom: 1px solid var(--linea); }
.comprobaciones li::before { content: ""; position: absolute; left: 0; top: 18px; width: 24px; height: 24px; border-radius: 50%; background: var(--rojo-suave); }
.comprobaciones li::after { content: ""; position: absolute; left: 9px; top: 23px; width: 5px; height: 10px; border-right: 2px solid var(--rojo); border-bottom: 2px solid var(--rojo); transform: rotate(45deg); }
.seccion-gris .comprobaciones li { border-color: #e2e1dc; }
.seccion-gris .comprobaciones li::before { background: var(--blanco); }

.tarjetas { display: grid; gap: 20px; }
.tarjetas-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tarjetas-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tarjetas-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tarjeta { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 30px 28px 32px; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.tarjeta:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); border-color: transparent; }
.tarjeta .tipo-icono { margin-bottom: 22px; }
.tarjeta:hover .tipo-icono { background: var(--rojo); color: var(--blanco); }
.tarjeta h3 { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 10px; }
.tarjeta p { margin: 0; color: var(--suave); font-size: 0.97rem; line-height: 1.55; }
.tarjetas-4 .tarjeta { padding: 24px 22px 26px; border-radius: 20px; }
.tarjetas-4 .tarjeta h3 { font-size: 1.08rem; }
.tarjetas-4 .tarjeta p { font-size: 0.93rem; }
.tarjetas + .aviso { margin-top: 28px; }

.paso h3 { font-size: 1.15rem; margin-bottom: 6px; }

.preguntas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.pregunta { padding: 28px 0; border-top: 1px solid var(--linea); }
.pregunta h3 { font-size: 1.15rem; letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 10px; }
.pregunta p { margin: 0 0 0.6em; }
.pregunta p:last-child { margin-bottom: 0; }
.seccion-gris .pregunta { border-color: #e2e1dc; }

.normas-franja { border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); padding: 36px 0 40px; }
.normas-titulo { font-size: 13.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--suave); margin-bottom: 16px; }
.normas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.normas li { font-size: 14.5px; color: var(--suave); padding: 7px 14px; border: 1px solid var(--linea); border-radius: 999px; background: var(--blanco); }
.normas b { color: var(--tinta); font-weight: 650; }

.otros { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
/* Siete tarjetas desde el 10-nov (ocho servicios menos el de la página): a cuatro columnas quedan 4+3. */
@media (min-width: 1041px) { #otros .otros { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.otro { position: relative; display: block; padding: 26px 24px 64px; border-radius: 20px; background: var(--blanco); border: 1px solid var(--linea); text-decoration: none; color: var(--texto); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.otro:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); border-color: transparent; color: var(--texto); }
.otro h3 { font-size: 1.1rem; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 8px; }
.otro p { margin: 0; font-size: 0.93rem; line-height: 1.5; color: var(--suave); }
.otro-flecha { position: absolute; left: 24px; bottom: 22px; width: 30px; height: 30px; border-radius: 50%; background: var(--rojo-suave); transition: background 0.2s; }
.otro-flecha::after { content: ""; position: absolute; left: 10px; top: 11px; width: 7px; height: 7px; border-top: 2px solid var(--rojo); border-right: 2px solid var(--rojo); transform: rotate(45deg); }
.otro:hover .otro-flecha { background: var(--rojo); }
.otro:hover .otro-flecha::after { border-color: var(--blanco); }

/* ---------- Movimiento (solo CSS) ---------- */

@keyframes subir { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes trazar { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
/* presentacion:inicio */
/* Construcción del símbolo dibujada en la portada (desde el 12-nov-2026, antes presentación a pantalla completa).
   Lo genera generar_presentacion.py, no editar a mano. Fuera de la animación, el dibujo ya terminado. */
.portada-logo { position: absolute; right: max(24px, calc((100vw - var(--ancho)) / 2 - 8px)); bottom: 150px; width: min(25vw, 340px); height: auto; z-index: -1; overflow: visible; }
.lg-guias { opacity: 0.5; }
.lg-g-guias { stroke: rgb(255 255 255 / 0.8); stroke-width: 0.6; }
.lg-g-curvas { stroke: #e24b46; stroke-width: 0.8; }
.lg-g-cotas { stroke: rgb(255 255 255 / 0.85); stroke-width: 0.7; }
.lg-cifras { fill: rgb(255 255 255 / 0.9); stroke: none; }
.lg-contorno { stroke: var(--blanco); stroke-width: 1.1; }
.marca-trazo { display: none; }
@media screen and (prefers-reduced-motion: no-preference) {
  .lt { opacity: 0; stroke-dasharray: 1 1.02; stroke-dashoffset: 1.01; animation-name: logo-trazar; animation-timing-function: cubic-bezier(.6,.1,.3,1); animation-fill-mode: forwards; }
  .ll { animation-duration: 0.552s; }
  .lk { animation-duration: 0.736s; }
  .lb { animation-duration: 0.184s; }
  .lm { animation-duration: 1.38s; }
  .lh { animation-duration: 0.828s; }
  .lp74 { animation-delay: 0.074s; }
  .lp138 { animation-delay: 0.138s; }
  .lp202 { animation-delay: 0.202s; }
  .lp267 { animation-delay: 0.267s; }
  .lp331 { animation-delay: 0.331s; }
  .lp396 { animation-delay: 0.396s; }
  .lp460 { animation-delay: 0.46s; }
  .lp524 { animation-delay: 0.524s; }
  .lp589 { animation-delay: 0.589s; }
  .lp653 { animation-delay: 0.653s; }
  .lp690 { animation-delay: 0.69s; }
  .lp846 { animation-delay: 0.846s; }
  .lp920 { animation-delay: 0.92s; }
  .lp994 { animation-delay: 0.994s; }
  .lp1104 { animation-delay: 1.104s; }
  .lp1150 { animation-delay: 1.15s; }
  .lp1214 { animation-delay: 1.214s; }
  .lp1242 { animation-delay: 1.242s; }
  .lp1288 { animation-delay: 1.288s; }
  .lp1306 { animation-delay: 1.306s; }
  .lp1334 { animation-delay: 1.334s; }
  .lp1352 { animation-delay: 1.352s; }
  .lp1380 { animation-delay: 1.38s; }
  .lp1444 { animation-delay: 1.444s; }
  .lp1840 { animation-delay: 1.84s; }
  .lg-guias { animation: logo-atenuar 0.6s ease 2.76s both; }
  .lg-cifras { animation: aparecer 0.35s ease 1.748s both; }
  @keyframes logo-trazar { from { opacity: 1; stroke-dashoffset: 1.01; } to { opacity: 1; stroke-dashoffset: 0; } }
  @keyframes logo-atenuar { from { opacity: 1; } to { opacity: 0.5; } }
}
@media screen and (max-width: 1040px) { .portada-logo { width: 30vw; bottom: 250px; } }
@media screen and (max-width: 720px) { .portada-logo { display: none; } }
@media screen and (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  .marca:has(.marca-trazo) { position: relative; display: flex; }
  .marca-trazo { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; animation: logo-ocultar 0.3s ease 1.855s both; }
  .marca:has(.marca-trazo) img { animation: aparecer 0.4s ease 1.605s both; }
  .cm { animation-duration: 0.9s; }
  .ch { animation-duration: 0.5s; }
  .cv { animation-duration: 0.4s; }
  .lc0 { animation-delay: 0s; }
  .lc420 { animation-delay: 0.42s; }
  .lc465 { animation-delay: 0.465s; }
  .lc500 { animation-delay: 0.5s; }
  .lc510 { animation-delay: 0.51s; }
  .lc555 { animation-delay: 0.555s; }
  .lc600 { animation-delay: 0.6s; }
  .lc645 { animation-delay: 0.645s; }
  .lc690 { animation-delay: 0.69s; }
  .lc735 { animation-delay: 0.735s; }
  .lc780 { animation-delay: 0.78s; }
  .lc825 { animation-delay: 0.825s; }
  .lc870 { animation-delay: 0.87s; }
  .lc915 { animation-delay: 0.915s; }
  .lc960 { animation-delay: 0.96s; }
  .lc1005 { animation-delay: 1.005s; }
  .lc1050 { animation-delay: 1.05s; }
  .lc1095 { animation-delay: 1.095s; }
  .lc1140 { animation-delay: 1.14s; }
  .lc1185 { animation-delay: 1.185s; }
  .lc1230 { animation-delay: 1.23s; }
  .lc1275 { animation-delay: 1.275s; }
  .lc1320 { animation-delay: 1.32s; }
  .lc1365 { animation-delay: 1.365s; }
  .lc1410 { animation-delay: 1.41s; }
  .lc1455 { animation-delay: 1.455s; }
  @keyframes logo-ocultar { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }
}
/* presentacion:fin */

@media (prefers-reduced-motion: no-preference) {
  .entrada { animation: subir 0.8s cubic-bezier(.2,.7,.2,1) both; }
  .entrada-2 { animation-delay: 0.08s; }
  .entrada-3 { animation-delay: 0.16s; }
  .entrada-4 { animation-delay: 0.24s; }
  .entrada-5 { animation-delay: 0.36s; }
  .portico .traza { stroke-dashoffset: 1; animation: trazar 1.4s cubic-bezier(.6,.1,.3,1) forwards; }
  .portico .t2 { animation-delay: 0.35s; }
  .portico .t3 { animation-delay: 0.8s; }
  .portico .t4 { animation-delay: 1.3s; }
  .portico .t5 { animation-delay: 1.5s; }
  .portico .t6 { animation-delay: 1.7s; }
  .portico .t7 { animation-delay: 1.9s; }
  .portico .t8 { animation-delay: 2.1s; }
  .portico text, .portico .nudo { animation: aparecer 0.8s ease 2.4s both; }
  @supports (animation-timeline: view()) {
    .revelar { animation: subir linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}

/* ---------- Pantallas medianas y pequeñas ---------- */

@media (max-width: 1040px) {
  .portico { width: 40vw; bottom: 210px; opacity: 0.4; }
  .portada-datos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portada-datos div:nth-child(3) { border-left: 0; }
  .portada-datos div:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / 0.14); }
  .perfiles { grid-template-columns: 1fr; }
  .mosaico { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 240px; }
  .pieza-direccion { grid-column: span 2; grid-row: span 2; }
  .pieza-legal { grid-column: span 1; grid-row: span 2; }
  .pieza-obra, .pieza-seguridad, .pieza-naves { grid-column: span 1; }
  .pieza-licencias, .pieza-maquinas, .pieza-calculo { grid-column: span 1; }
  .tipos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .pasos::before { display: none; }
  .principios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trabajos { grid-template-columns: 1fr; }
  .sobre { grid-template-columns: 1fr; gap: 40px; }
  .sobre-foto { max-width: 460px; }
  .bloque-texto, .bloque-lista { grid-template-columns: 1fr; gap: 32px; }
  .tarjetas-3, .tarjetas-4, .otros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preguntas { grid-template-columns: 1fr; }
}

/* Cabecera en dos líneas hasta 940 px: por debajo, el menú (705 px) no cabe al lado del logo (9-nov) */
@media (max-width: 940px) {
  .cabecera .contenedor { flex-wrap: wrap; padding: 14px 0 6px; gap: 6px; position: relative; }
  .menu { width: 100%; min-width: 0; gap: 2px; overflow-x: auto; white-space: nowrap; margin-left: -12px; padding-bottom: 6px; scrollbar-width: none; }
  .menu a { padding: 8px 12px; }
  .menu .menu-contacto { position: absolute; top: 12px; right: 0; margin: 0; padding: 8px 16px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .cabecera { position: static; }
  .marca img { height: 36px; }
  .portada { min-height: 0; padding-top: 72px; }
  .portada-velo { background: linear-gradient(0deg, rgb(12 12 11 / 0.92) 0%, rgb(12 12 11 / 0.72) 60%, rgb(12 12 11 / 0.5) 100%); }
  /* Portada principal en móvil (10-nov): la foto arriba y sin velo, para que se vea la nave, y el texto debajo sobre fondo oscuro */
  .portada:not(.portada-servicio) { padding-top: min(68vw, 370px); background: #0c0c0b; }
  .portada:not(.portada-servicio) .portada-fondo { height: min(113vw, 620px); object-position: 50% 0; }
  .portada:not(.portada-servicio) .portada-velo { height: min(113vw, 620px); inset: 0 0 auto; background: linear-gradient(180deg, transparent 0%, transparent 50%, rgb(12 12 11 / 0.6) 68%, rgb(12 12 11 / 0.92) 86%, #0c0c0b 100%); }
  /* 11-nov (Juan): que el botón «Cuéntame tu caso» entre en la primera pantalla de un teléfono de 844 px de alto, con
     las barras del navegador, sin quitar texto: algo menos de foto, titular y entradilla más pequeños y márgenes cortos. */
  .portada:not(.portada-servicio) { padding-top: min(46vw, 300px); }
  .portada:not(.portada-servicio) .portada-fondo, .portada:not(.portada-servicio) .portada-velo { height: min(92vw, 520px); }
  .portada:not(.portada-servicio) .antetitulo { margin-bottom: 14px; }
  .portada:not(.portada-servicio) h1 { font-size: 2.3rem; }
  .portada .entradilla { margin-top: 18px; font-size: 1.04rem; line-height: 1.5; }
  .portada .botones { margin-top: 22px; }
  /* 11-nov (Juan): las páginas de servicio con foto, como la portada: la foto arriba y sin velo, y el texto debajo. */
  .portada-servicio:not(.sin-foto) { padding-top: min(52vw, 290px); background: #0c0c0b; }
  .portada-servicio:not(.sin-foto) .portada-fondo { height: min(80vw, 450px); }
  .portada-servicio:not(.sin-foto) .portada-velo { height: min(80vw, 450px); inset: 0 0 auto; background: linear-gradient(180deg, transparent 0%, transparent 45%, rgb(12 12 11 / 0.6) 66%, rgb(12 12 11 / 0.92) 86%, #0c0c0b 100%); }
  .sobre-datos { grid-template-columns: 1fr; }
  .sobre-datos div, .sobre-datos div + div { padding: 14px 0; border-left: 0; }
  .sobre-datos div + div { border-top: 1px solid var(--linea); }
  .trabajo-figura { height: 150px; }
  .portico { display: none; }
  .portada-datos div { padding: 16px 16px; }
  .portada-datos dd { font-size: 0.98rem; }
  .portada-datos dt { font-size: 15px; }
  .seccion, .contacto { padding: 80px 0; scroll-margin-top: 0; }
  .perfil { padding: 30px 24px; border-radius: 24px; }
  .mosaico { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 260px; gap: 14px; }
  .pieza-naves, .pieza-legal, .pieza-seguridad, .pieza-direccion, .pieza-calculo, .pieza-licencias, .pieza-maquinas, .pieza-obra { grid-column: span 1; grid-row: span 1; }
  .pieza-direccion { grid-row: span 2; }
  .pieza-texto { padding: 22px 22px; }
  .tipos { grid-template-columns: 1fr; gap: 10px; }
  .tipo { padding: 16px 18px; }
  .aviso { grid-template-columns: 1fr; gap: 16px; padding: 24px 22px; }
  .encargo { margin-top: 64px; }
  .pasos { grid-template-columns: 1fr; row-gap: 24px; }
  .paso { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; }
  .paso-num { grid-row: span 2; margin: 0; }
  .paso h4, .paso h3 { margin-top: 10px; }
  .portada-servicio { min-height: 0; padding-top: 56px; }
  .portada-servicio .portada-texto { padding-bottom: 56px; }
  .tarjetas-2, .tarjetas-3, .tarjetas-4, .otros { grid-template-columns: 1fr; gap: 12px; }
  .tarjeta, .tarjetas-4 .tarjeta { padding: 22px 22px 24px; }
  .normas-franja { padding: 28px 0 32px; }
  .principios { grid-template-columns: 1fr; }
  .principio-num { margin-bottom: 20px; }
  .trabajo { padding: 26px 24px 28px; }
  .contacto { padding-top: 0; }
  .contacto-bloque { border-radius: 28px; }
  .legal dl div { grid-template-columns: 1fr; }
  .legal dt { padding-bottom: 6px; }
  .legal dd { padding-top: 6px; }
}

@media (max-width: 480px) {
  .menu-opcional { display: none; }
  /* Que quepan las cuatro opciones sin que «Sobre mí» salga cortado (6-nov) */
  .menu { gap: 0; justify-content: space-between; margin-left: -8px; width: calc(100% + 16px); }
  .menu a { padding: 8px 8px; font-size: 14px; }
}

@media (max-width: 380px) {
  .menu a { padding: 8px 5px; font-size: 13px; }
}

@media print {
  .cabecera, .pie, .botones, .portada-fondo, .portico, .pieza img { display: none; }
  .portada, .pieza, .perfil-oscuro, .contacto-bloque, .aviso { background: none; color: var(--texto); }
  .portada h1, .pieza h3, .contacto h2, .correo { color: var(--tinta); }
  .seccion { padding: 32px 0; }
}

/* ---------- Guías (6-nov-2026): columna de lectura, llamada final y tarjetas del índice ---------- */

.guia-columna { max-width: 760px; }
.guia-cabeza { background: var(--gris); border-bottom: 1px solid var(--linea); padding: 56px 0 48px; }
.guia-cabeza .migas ol { color: var(--suave); }
.guia-cabeza .migas li + li::before { color: var(--tenue); }
.guia-cabeza .migas a { color: var(--texto); }
.guia-cabeza .migas a:hover { color: var(--rojo); }
.guia-cabeza .migas [aria-current] { color: var(--tinta); }
.guia-cabeza h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.06; max-width: 18em; }
.guia-cabeza .entradilla { color: var(--texto); font-size: 1.18rem; max-width: 36em; margin: 22px 0 0; }
.guia-cabeza .entradilla + .entradilla { margin-top: 12px; }
.guia-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 26px; font-size: 14.5px; color: var(--suave); }
.guia-meta span + span::before { content: "·"; margin-right: 14px; color: var(--tenue); }

.guia-cuerpo { padding: 56px 0 88px; }
.guia-cuerpo h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); letter-spacing: -0.03em; line-height: 1.2; margin: 52px 0 16px; }
.guia-cuerpo h2:first-child { margin-top: 0; }
.guia-cuerpo h3 { font-size: 1.12rem; letter-spacing: -0.015em; line-height: 1.3; margin: 28px 0 8px; }
.guia-cuerpo p { font-size: 1.07rem; line-height: 1.72; }
.guia-lista, .guia-pasos { margin: 0 0 1.2em; padding-left: 1.3em; }
.guia-lista li, .guia-pasos li { margin-bottom: 0.55em; line-height: 1.65; font-size: 1.05rem; }
.guia-lista li::marker, .guia-pasos li::marker { color: var(--rojo); font-weight: 650; }
.guia-pasos b { color: var(--tinta); }

.guia-cta { margin: 56px 0 8px; padding: 32px 32px 34px; border-radius: var(--radio); background: var(--tinta); color: rgb(255 255 255 / 0.84); }
.guia-cuerpo .guia-cta h2 { color: var(--blanco); margin: 0 0 10px; font-size: 1.5rem; }
.guia-cuerpo .guia-cta p { margin: 0; }
.guia-cta .botones { margin-top: 22px; }
.guia-cta .boton-claro { background: transparent; color: var(--blanco); border-color: rgb(255 255 255 / 0.3); }
.guia-cta .boton-claro:hover { background: rgb(255 255 255 / 0.1); color: var(--blanco); }

.guia-cuerpo .guia-normas-titulo { font-size: 13.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--suave); margin: 48px 0 12px; }
.guia-normas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.guia-normas li { font-size: 0.95rem; color: var(--suave); padding: 12px 0; border-bottom: 1px solid var(--linea); line-height: 1.5; }
.guia-normas b { color: var(--tinta); font-weight: 650; }

.otro .otro-titulo { font-size: 1.1rem; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 8px; }
.otros-guias { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.otros-guias .otro .otro-titulo { font-size: 1.2rem; }

@media (max-width: 720px) {
  .guia-cabeza { padding: 36px 0 32px; }
  .guia-cuerpo { padding: 40px 0 64px; }
  .guia-cta { padding: 26px 22px 28px; }
  .otros-guias { grid-template-columns: 1fr; }
}

/* ---------- Versión 6 (6-nov-2026 por la noche): las cuatro reglas dentro de «Para quién», sin números ---------- */
.reglas { margin-top: 64px; }
.reglas-titulo { font-size: 1.4rem; letter-spacing: -0.02em; margin: 0 0 22px; }
.reglas .principio { background: var(--gris); }
.reglas .principio:hover { background: var(--rojo-suave); }
.principio h4 { font-size: 1.15rem; margin: 0 0 8px; letter-spacing: -0.015em; }
/* En móviles estrechos la dirección de correo no cabe a 1,15 rem y se partía por la mitad (6-nov-2026). */
@media (max-width: 480px) { .correo { font-size: 1rem; } }
