/* Central Events · web
   Paleta: lima #D5FA37 · tinta #20241F · papel #F7F7EF · línea #D9DBCF · gris #787D70 */

:root {
  --lima: #D5FA37;
  --tinta: #20241F;
  --papel: #F7F7EF;
  /* Alto del difuminado en cada cambio de color entre secciones */
  --fundido: clamp(120px, 16vw, 240px);
  --linea: #D9DBCF;
  --gris: #787D70;
  --gris-texto: #5B6055;          /* gris con contraste AA para texto pequeño sobre papel */
  --gris-oscuro: #B9BDB0;         /* texto secundario sobre tinta */
  --linea-oscura: #3B4036;
  --lima-borde: #9DBA1E;
  --margen: clamp(16px, 4.5vw, 72px);
  --ancho: 1520px;
  --alto-cabecera: 96px;
  --alto-total: 96px;
  --titulo: 'Manrope', system-ui, sans-serif;
  --texto: 'DM Sans', system-ui, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --suave: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--alto-total) + 16px); }
body { margin: 0; padding-top: var(--alto-total); background: var(--papel); color: var(--tinta); font-family: var(--texto); font-size: 17px; line-height: 1.65; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.marca-lima { color: var(--lima); }
::selection { background: var(--lima); color: var(--tinta); }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 4px; border-radius: 2px; }
.oscuro :focus-visible { outline-color: var(--lima); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.envoltorio { width: 100%; max-width: calc(var(--ancho) + 2 * var(--margen)); margin-inline: auto; padding-inline: var(--margen); }
.linea { display: block; }
.cursiva { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.035em; padding-right: .03em; }
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.saltar { position: absolute; left: 16px; top: -60px; z-index: 60; background: var(--tinta); color: var(--papel); padding: 12px 16px; text-decoration: none; }
.saltar:focus { top: 12px; }

/* ---------- Tipografía ---------- */
.etiqueta { font-family: var(--texto); font-size: 12px; font-weight: 500; letter-spacing: .16em; line-height: 1.4; display: flex; align-items: center; gap: 10px; }
.etiqueta-lima { color: var(--lima); }
.punto { width: 8px; height: 8px; border-radius: 50%; background: var(--tinta); display: inline-block; animation: pulso 2.4s ease-in-out infinite; }
@keyframes pulso { 50% { transform: scale(.55); opacity: .5; } }
.titulo { font-family: var(--titulo); font-weight: 500; font-size: clamp(38px, 4.5vw, 80px); line-height: 1.02; letter-spacing: -.055em; }
.entrada { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; max-width: 46ch; margin-top: clamp(24px, 3vw, 40px); text-wrap: pretty; }
h3 { font-family: var(--titulo); font-weight: 600; letter-spacing: -.035em; line-height: 1.06; }
.num { font-family: var(--titulo); font-weight: 600; font-size: 14px; letter-spacing: .02em; color: var(--gris-texto); }
.marca { background: linear-gradient(var(--lima), var(--lima)) no-repeat 0 88% / 100% .42em; color: inherit; padding: 0 .08em; margin: 0 -.08em; }

/* ---------- Botones y enlaces ---------- */
.boton { position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 56px; padding: 0 24px 0 28px; border-radius: 999px; font-family: var(--texto); font-size: 15px; font-weight: 500; text-decoration: none; border: 0; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .35s var(--suave), color .3s; white-space: nowrap; }
.boton-tinta { background: var(--tinta); color: var(--papel); }
.boton-tinta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--lima); transform: translateY(101%); border-radius: inherit; transition: transform .45s var(--suave); }
.boton-tinta:hover { color: var(--tinta); }
.boton-tinta:hover::before { transform: none; }
.lima .boton-tinta::before { background: var(--papel); }
.boton .ico { transition: transform .35s var(--suave); }
.boton:hover .ico { transform: translate(3px, -3px); }
.enlace { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.enlace:hover { text-decoration-thickness: 2px; }
.enlace .ico { transition: transform .3s var(--suave); }
.enlace:hover .ico { transform: translateY(-2px); }

/* ---------- Cabecera fija ---------- */
.cabecera { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: rgba(247, 247, 239, .9); -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid var(--linea); transition: transform .5s var(--suave); }
.cabecera-fila { height: var(--alto-cabecera); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; flex-shrink: 0; transition: transform .4s var(--suave); }
.logo:hover { transform: rotate(-3deg); }
.logo img { height: 70px; width: auto; }
.menu { display: flex; gap: clamp(20px, 3vw, 44px); font-size: 14px; }
.menu a { position: relative; text-decoration: none; padding-block: 6px; }
.menu a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--tinta); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--suave); }
.menu a:hover::after, .menu a.activo::after { transform: scaleX(1); transform-origin: left; }
.cabecera-acciones { display: flex; align-items: center; gap: 12px; }
.boton-cabecera { height: 48px; min-height: 48px; gap: 10px; padding: 0 22px 0 20px; justify-content: center; font-size: 14px; white-space: nowrap; }
.boton-cabecera .ico { width: 20px; height: 20px; }
.boton-cabecera:hover .ico { transform: translateY(-2px); }
.menu-movil { display: none; }
.progreso { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.progreso span { display: block; height: 100%; background: var(--lima); transform-origin: left; transform: scaleX(0); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(28px, 4vw, 56px); }
.hero-arriba { display: flex; justify-content: flex-end; align-items: flex-start; gap: 24px; min-height: 1.4em; }
.hero-nota { font-size: 14px; line-height: 1.5; text-align: right; }
.hero-nota strong { font-weight: 500; }
.hero-titular { position: relative; font-family: var(--titulo); font-weight: 600; font-size: clamp(48px, 7.4vw, 128px); line-height: .96; letter-spacing: -.062em; margin: clamp(28px, 4vw, 52px) 0 clamp(28px, 3.5vw, 48px); padding-right: 1.2em; }
.hero-titular .cursiva { letter-spacing: -.045em; }
.hero-asterisco { position: absolute; right: 0; top: .06em; width: .95em; height: .95em; fill: var(--lima); stroke: var(--tinta); stroke-width: .6; transform: rotate(var(--giro, -8deg)) scale(var(--escala, 1)); transition: transform .9s var(--suave); }
.hero-abajo { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-bottom: clamp(32px, 4vw, 56px); }
.hero-texto { max-width: 44ch; font-size: clamp(17px, 1.35vw, 20px); }

/* Hero con foto de fondo a todo el ancho, texto claro encima */
.hero-con-fondo { position: relative; overflow: hidden; isolation: isolate; color: var(--papel); background: var(--tinta); margin-top: calc(-1 * var(--alto-total)); min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 0; }
.hero-fondo { position: absolute; inset: 0; z-index: -1; }
.hero-fondo img { width: 100%; height: 100%; object-fit: cover; object-position: 61% 55%; will-change: transform; }
.hero-fondo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,18,.55) 0%, rgba(20,24,18,.30) 22%, rgba(20,24,18,.42) 55%, rgba(20,24,18,.82) 100%); }
.hero-contenido { width: 100%; padding-top: calc(var(--alto-total) + clamp(28px, 4vw, 56px)); padding-bottom: calc(var(--fundido) * .8 + clamp(16px, 3vw, 40px)); }
.hero-fundido { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: var(--fundido); pointer-events: none; background: linear-gradient(180deg, rgba(247,247,239,0) 0%, rgba(247,247,239,.16) 25%, rgba(247,247,239,.5) 50%, rgba(247,247,239,.84) 75%, var(--papel) 100%); }
.hero-con-fondo .hero-titular { margin-top: clamp(40px, 8vh, 120px); }

/* Cabecera encima de la foto: transparente y en claro; al bajar, fondo y letras oscuras */
.cabecera { transition: transform .5s var(--suave), background-color .35s ease, border-color .35s ease, color .35s ease; }
.logo { position: relative; }
.logo-claro { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.logo-oscuro { transition: opacity .35s ease; }
.cabecera.sobre-foto { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--papel); }
.cabecera.sobre-foto .logo-oscuro { opacity: 0; }
.cabecera.sobre-foto .logo-claro { opacity: 1; }
.cabecera.sobre-foto .menu a::after { background: var(--papel); }
.cabecera.sobre-foto .boton-tinta { background: var(--papel); color: var(--tinta); }
.cabecera.sobre-foto .menu-movil { border-top-color: rgba(247, 247, 239, .22); }
.cabecera.sobre-foto .progreso { opacity: 0; }

/* Frase después de la foto: quieta, centrada, sobre blanco roto */
.frase { background: var(--papel); color: var(--tinta); min-height: 100svh; display: grid; place-items: center; padding: clamp(72px, 10vw, 140px) var(--margen); text-align: center; }
.frase-texto { max-width: 21ch; margin: 0; font-family: var(--titulo); font-weight: 600; font-size: clamp(34px, 5vw, 84px); line-height: 1.04; letter-spacing: -.05em; text-wrap: balance; }
.frase-texto .cursiva { font-weight: 400; letter-spacing: -.035em; }
/* Como un subrayador: avanza con el scroll y salta de línea con el texto */
.subrayado { background: linear-gradient(var(--lima), var(--lima)) no-repeat 0 62% / 100% .86em; }
.js:not(.quieto) .subrayado { background-size: calc(var(--avance, 0) * 100%) .86em; }


/* Imagen del hero: entra recortada y se abre a todo el ancho al hacer scroll */
.hero-imagen { --ins: var(--margen); --rad: 4px; --esc: 1.12; }
.hero-marco { aspect-ratio: 21 / 9; clip-path: inset(0 var(--ins) round var(--rad)); }
.hero-marco img { transform: scale(var(--esc)); transform-origin: 50% 60%; will-change: transform; }
.sello { position: absolute; top: clamp(16px, 2.5vw, 36px); left: calc(var(--ins) + clamp(16px, 2.5vw, 36px)); width: clamp(112px, 12vw, 176px); aspect-ratio: 1; background: var(--lima); color: var(--tinta); padding: clamp(12px, 1.4vw, 20px); transform: rotate(var(--rot, -5deg)); font-family: var(--titulo); font-weight: 500; font-size: clamp(14px, 1.3vw, 18px); line-height: 1.15; letter-spacing: -.02em; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 0 0 1px rgba(32, 36, 31, .08); }
.sello b { display: block; font-weight: 800; font-size: 2.2em; letter-spacing: -.05em; line-height: .95; margin-top: .1em; }

/* Cinta en movimiento bajo la imagen */
.cinta { overflow: hidden; border-bottom: 1px solid var(--linea); padding-block: clamp(14px, 1.6vw, 22px); }
.cinta-pista { display: inline-flex; align-items: center; white-space: nowrap; font-family: var(--titulo); font-weight: 500; font-size: clamp(18px, 2.1vw, 30px); letter-spacing: -.02em; animation: desfile 45s linear infinite; }
.cinta:hover .cinta-pista { animation-play-state: paused; }
.cinta-ast { width: .8em; height: .8em; margin: 0 .9em; fill: var(--lima); stroke: var(--tinta); stroke-width: 2; flex-shrink: 0; }
@keyframes desfile { to { transform: translateX(-50%); } }

/* ---------- Fotos y huecos ---------- */
.foto { position: relative; overflow: hidden; background: #E4E5DC; }
.foto img, .foto picture { width: 100%; height: 100%; object-fit: cover; }
.foto-3x2 { aspect-ratio: 3 / 2; }
.foto.falta img, .foto.falta picture { visibility: hidden; }
.foto.falta::after { content: attr(data-archivo); position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; letter-spacing: .04em; color: var(--gris-texto); background: #E4E5DC; }

/* ---------- Secciones ---------- */
.seccion { padding-block: clamp(80px, 10vw, 160px); }
.intro { display: grid; grid-template-columns: minmax(180px, 1fr) 2.6fr; gap: clamp(20px, 4vw, 64px); margin-bottom: clamp(48px, 6vw, 96px); }
.intro .etiqueta { padding-top: .9em; align-self: start; }
.solo-etiqueta { margin: 0 0 clamp(32px, 4vw, 56px); font-weight: 500; }
.cierre { max-width: 60ch; margin: clamp(56px, 7vw, 104px) auto 0; text-align: center; font-size: 15px; color: var(--gris-texto); text-wrap: balance; }
.cierre-grande { font-family: var(--titulo); font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.03em; line-height: 1.3; color: var(--tinta); max-width: 32ch; }

/* 01 · Servicios */
.galeria { display: none; }
.servicios-lista { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 4vw, 64px) clamp(24px, 3vw, 48px); }
.servicio .foto img { transition: transform 1s var(--suave); }
.servicio:hover .foto img { transform: scale(1.04); }
.servicio-cuerpo { display: grid; grid-template-columns: 1fr; padding-top: 24px; border-top: 1px solid var(--tinta); margin-top: 24px; }
.servicio h3 { font-size: clamp(30px, 2.8vw, 46px); }
.servicio h3 + p { margin-top: 18px; max-width: 42ch; color: #3B4036; font-size: 16px; }
.servicio-lista { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--gris-texto); }
.servicio-lista li { padding-left: 18px; position: relative; }
.servicio-lista li::before { content: "*"; position: absolute; left: 0; top: .05em; color: var(--lima-borde); font-weight: 700; }
.etiquetas { margin-top: 22px; font-size: 11px; letter-spacing: .16em; font-weight: 500; color: var(--gris-texto); }

/* Escritorio: la imagen se queda fija y cambia según el servicio que lees */
@media (min-width: 1000px) {
  .servicios { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 5vw, 96px); align-items: start; }
  .galeria { display: block; position: sticky; top: calc(var(--alto-total) + (100vh - var(--alto-total) - var(--alto-galeria)) / 2); --alto-galeria: min(calc(100vh - var(--alto-total) - 96px), 34vw, 640px); }
  .galeria-marco { position: relative; height: var(--alto-galeria); overflow: hidden; background: #E4E5DC; border-radius: 4px; }
  .galeria-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s ease, transform 1.4s var(--suave); }
  .galeria-img.activa { opacity: 1; transform: scale(1); }
  .galeria-contador { position: absolute; z-index: 2; left: 20px; bottom: 20px; background: var(--papel); padding: 8px 12px; font-family: var(--titulo); font-weight: 600; font-size: 13px; letter-spacing: .04em; }
  .servicios-lista { display: block; }
  .servicio { min-height: calc(100vh - var(--alto-total)); max-height: 820px; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s ease; }
  .servicio.activo { opacity: 1; }
  .servicio .foto { display: none; }
  .servicio-cuerpo { margin-top: 0; }
  .servicio h3 { font-size: clamp(44px, 4.2vw, 72px); line-height: .98; letter-spacing: -.05em; }
  .servicio h3 + p { font-size: 18px; margin-top: 24px; }
}

/* 02 · Así trabajamos */
/* Así trabajamos: foto de edificios en blanco y negro con un velo oscuro encima */
.oscuro { color: var(--papel); background: linear-gradient(var(--tinta), rgba(32, 36, 31, .72) 30%, rgba(32, 36, 31, .3) 65%, rgba(32, 36, 31, 0)) top / 100% clamp(160px, 20vw, 320px) no-repeat, linear-gradient(rgba(20, 24, 18, .74), rgba(20, 24, 18, .74)), url("assets/metodo-edificios.webp?v=1") center / cover no-repeat var(--tinta); }
@media (max-width: 1100px) { .oscuro { background-image: linear-gradient(var(--tinta), rgba(32, 36, 31, .72) 30%, rgba(32, 36, 31, .3) 65%, rgba(32, 36, 31, 0)), linear-gradient(rgba(20, 24, 18, .74), rgba(20, 24, 18, .74)), url("assets/metodo-edificios-1200.webp?v=1"); } }
.oscuro .seccion { padding-bottom: clamp(64px, 8vw, 120px); }
.oscuro .entrada { color: var(--papel); }
.oscuro .cursiva { color: var(--lima); }
.respuesta { font-family: var(--titulo); font-weight: 500; font-size: clamp(24px, 2.6vw, 40px); letter-spacing: -.035em; line-height: 1.2; margin-top: 32px; color: var(--papel); }
.subraya { background: linear-gradient(var(--lima), var(--lima)) no-repeat 0 100% / 100% 3px; padding-bottom: .08em; }
.compromisos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 56px); }
.compromiso { position: relative; border-top: 1px solid var(--linea-oscura); padding-top: 28px; }
.compromiso::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--lima); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--suave); }
.compromiso:hover::before { transform: scaleX(1); }
.compromiso-etiqueta { display: flex; flex-direction: column; gap: 8px; color: var(--lima); font-size: 12px; letter-spacing: .16em; font-weight: 500; }
.compromiso-etiqueta strong { font-family: var(--titulo); font-weight: 800; font-size: clamp(32px, 3vw, 50px); letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.compromiso h3 { font-size: clamp(23px, 1.9vw, 28px); line-height: 1.15; margin: 28px 0 14px; color: var(--papel); }
.compromiso p:last-child { font-size: 15px; color: var(--gris-oscuro); line-height: 1.65; }
.metodo-imagen { aspect-ratio: 21 / 9; background: #15180F; }
.metodo-imagen img { height: 125%; transform: translateY(var(--par, -10%)); will-change: transform; }

/* Proceso: una línea que se rellena al bajar */
.proceso .etiqueta { margin-bottom: clamp(40px, 5vw, 64px); }
.pasos-marco { position: relative; }
.pasos-via { position: absolute; left: 0; right: 0; top: 21px; height: 1px; background: var(--linea); }
.pasos-via span { display: block; width: 100%; height: 2px; margin-top: -.5px; background: var(--tinta); transform-origin: left; transform: scaleX(var(--p, 0)); }
.pasos { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 44px); }
.paso .num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--papel); border: 1px solid var(--linea); color: var(--gris-texto); transition: background-color .5s, border-color .5s, color .5s, transform .5s var(--suave); }
.paso h3 { font-size: clamp(22px, 1.9vw, 30px); margin: 26px 0 12px; }
.paso p { font-size: 15px; color: #3B4036; }
.paso strong { font-weight: 500; color: var(--tinta); }
.js:not(.quieto) .paso h3, .js:not(.quieto) .paso p { opacity: .3; transition: opacity .6s ease; }
.paso.activo .num { background: var(--lima); border-color: var(--tinta); color: var(--tinta); transform: scale(1.08); }
.js:not(.quieto) .paso.activo h3, .js:not(.quieto) .paso.activo p { opacity: 1; }

/* Agenda llena y contacto (lima) */
.lima { background: var(--lima); color: var(--tinta); }
/* Del blanco roto al lima y del lima al pie sin corte */
.contacto.lima { background: linear-gradient(180deg, var(--papel) 0, color-mix(in oklab, var(--lima) 16%, var(--papel)) calc(var(--fundido) * .25), color-mix(in oklab, var(--lima) 50%, var(--papel)) calc(var(--fundido) * .5), color-mix(in oklab, var(--lima) 84%, var(--papel)) calc(var(--fundido) * .75), var(--lima) var(--fundido), var(--lima) calc(100% - var(--fundido)), color-mix(in oklab, var(--papel) 16%, var(--lima)) calc(100% - var(--fundido) * .75), color-mix(in oklab, var(--papel) 50%, var(--lima)) calc(100% - var(--fundido) * .5), color-mix(in oklab, var(--papel) 84%, var(--lima)) calc(100% - var(--fundido) * .25), var(--papel) 100%); }
.lima .num, .lima .etiquetas { color: var(--tinta); }
.agenda-rejilla { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.agenda-texto .titulo { margin-top: 28px; font-size: clamp(38px, 3.9vw, 68px); }
.agenda-texto .entrada { font-family: var(--titulo); font-weight: 500; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.025em; line-height: 1.35; }
.agenda-texto .entrada + p { margin-top: 20px; max-width: 54ch; font-size: 16px; }
.lista { margin: 32px 0 40px; display: grid; gap: 14px; border-top: 1px solid var(--lima-borde); padding-top: 24px; }
.lista li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-weight: 500; }
.ico-ast { width: 14px; height: 14px; margin-top: .42em; fill: var(--tinta); transition: transform 1.2s var(--suave) var(--d, 0s); }
.js:not(.quieto) .lista li .ico-ast { transform: rotate(-180deg) scale(0); }
.js:not(.quieto) .lista li.visible .ico-ast { transform: none; }
.agenda-imagen { border-radius: 4px; }

/* Revelado de fotos con cortinilla */
.js:not(.quieto) .desvela { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--suave); }
.js:not(.quieto) .desvela img { transform: scale(1.18); transition: transform 1.8s var(--suave); }
.js:not(.quieto) .desvela.visible { clip-path: inset(0 0 0 0); }
.js:not(.quieto) .desvela.visible img { transform: scale(1); }

/* 03 · Equipo */
.equipo { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 3vw, 48px) clamp(20px, 2.5vw, 40px); align-items: start; }
.persona .foto { margin-bottom: 24px; border-radius: 4px; }
.js:not(.quieto) .persona .foto.visible img { transition: transform 1s var(--suave); }
.persona:hover .foto img, .js:not(.quieto) .persona:hover .desvela.visible img { transform: scale(1.04); }
.persona-etiqueta { font-size: 11px; letter-spacing: .16em; font-weight: 500; color: var(--gris-texto); }
.persona-etiqueta span { background: linear-gradient(var(--lima), var(--lima)) no-repeat 0 100% / 0 100%; padding: 2px 4px; margin-left: -4px; transition: background-size .6s var(--suave), color .3s; }
.persona:hover .persona-etiqueta span { background-size: 100% 100%; color: var(--tinta); }
.persona h3 { font-size: clamp(26px, 2.3vw, 36px); margin: 10px 0 16px; }
.persona h3 + p { font-size: 15px; line-height: 1.7; color: #3B4036; }
.persona-linea { margin-top: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--linea); font-size: 11px; letter-spacing: .14em; font-weight: 500; color: var(--gris-texto); }
@media (min-width: 1101px) { .equipo .persona:nth-child(2) { margin-top: 96px; } .equipo .persona:nth-child(3) { margin-top: 48px; } }

/* 04 · Contacto */
.contacto-rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.contacto-texto { position: sticky; top: calc(var(--alto-total) + 48px); }
.contacto-texto .titulo { margin-top: 28px; font-size: clamp(36px, 3.6vw, 64px); }
.contacto-asterisco { display: block; width: clamp(96px, 11vw, 176px); height: clamp(96px, 11vw, 176px); margin-top: clamp(40px, 6vw, 88px); fill: var(--tinta); transform: rotate(var(--giro, -8deg)); }
.campo { display: flex; flex-direction: column; margin-bottom: 28px; position: relative; }
.campos-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
label, legend { font-size: 13px; font-weight: 500; }
legend { margin-bottom: 14px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--tinta); border-radius: 999px; font-size: 15px; font-weight: 500; transition: background-color .3s, color .3s, transform .3s var(--suave); }
.chip:hover span { transform: translateY(-2px); }
.chip input:checked + span { background: var(--tinta); color: var(--papel); }
.chip input:focus-visible + span { outline: 3px solid var(--tinta); outline-offset: 3px; }
input, textarea { width: 100%; border: 0; border-bottom: 1px solid var(--tinta); background: transparent; border-radius: 0; padding: 12px 0; font-size: 18px; min-height: 52px; outline: none; -webkit-appearance: none; appearance: none; }
.campo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--tinta); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--suave); pointer-events: none; }
.campo:focus-within::after { transform: scaleX(1); }
.opciones.campo::after { display: none; }
input:focus-visible, textarea:focus-visible { outline: none; }
textarea { resize: none; min-height: 52px; line-height: 1.5; overflow: hidden; }
.campo.mal input { border-bottom-color: #8A1C1C; }
.campo.mal::after { background: #8A1C1C; transform: scaleX(1); }
.campo.mal { animation: sacude .4s; }
@keyframes sacude { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.botones-formulario { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.boton-enviar { width: 100%; font-size: 16px; min-height: 64px; }
.boton-reunion { width: 100%; font-size: 16px; min-height: 64px; background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--tinta); transition: background-color .3s ease, color .3s ease; }
.boton-reunion:hover { background: var(--tinta); color: var(--papel); }
@media (max-width: 700px) { .botones-formulario { grid-template-columns: 1fr; } }
.boton-enviar[aria-busy="true"] { pointer-events: none; }
.boton-enviar[aria-busy="true"] .ico { animation: latido .7s ease-in-out infinite alternate; }
@keyframes latido { to { transform: translate(5px, -5px); } }
.nota-formulario { margin-top: 14px; font-size: 14px; }
.estado { border-top: 1px solid var(--tinta); margin-top: 8px; padding-top: 28px; }
.estado:focus { outline: none; }
.estado-ast { width: 72px; height: 72px; fill: var(--tinta); margin-bottom: 24px; animation: aparece 1.4s var(--suave) both; }
@keyframes aparece { from { transform: rotate(-200deg) scale(0); } }
.estado-titulo { font-family: var(--titulo); font-weight: 600; font-size: clamp(48px, 5vw, 80px); letter-spacing: -.05em; line-height: 1; margin-bottom: 18px; }
.estado .enlace { margin-top: 20px; }
.estado-error { border-top: 0; padding-top: 16px; }
.estado-error p { font-weight: 500; }

/* ---------- Pie ---------- */
.pie { padding-top: clamp(64px, 8vw, 120px); padding-bottom: 28px; }
.pie-arriba { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: clamp(40px, 5vw, 64px); }
.logo-pie img { height: 88px; }
.pie-arriba p { font-size: 15px; line-height: 1.5; }
.pie-abajo { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; border-top: 1px solid var(--linea); padding-top: 22px; font-size: 12px; color: var(--gris-texto); letter-spacing: .02em; }
.pie-enlaces a { text-decoration: none; }
.pie-enlaces a:hover { text-decoration: underline; }

/* ---------- Páginas secundarias ---------- */
.pagina { --alto-total: var(--alto-cabecera); min-height: 100vh; display: flex; flex-direction: column; }
.pagina main { flex: 1; }
.pagina .pie { padding-top: 0; }
.simple { padding-block: clamp(72px, 12vw, 180px); }
.simple .titulo { font-size: clamp(48px, 8vw, 128px); }
.simple .entrada { margin-bottom: 40px; }
.legal { padding-block: clamp(56px, 8vw, 112px); max-width: 820px; }
.legal .titulo { font-size: clamp(36px, 5vw, 64px); margin-bottom: 40px; }
.legal h2 { font-family: var(--titulo); font-weight: 600; font-size: 22px; letter-spacing: -.02em; margin: 40px 0 12px; }
.legal p { margin-bottom: 14px; font-size: 16px; color: #3B4036; }
.marcador { background: var(--lima); padding: 2px 6px; font-weight: 500; color: var(--tinta); }

/* ---------- Movimiento (solo con JS y sin "reducir movimiento") ---------- */
.js:not(.quieto) .mascara { overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.js:not(.quieto) .mascara .linea-in { display: block; transform: translateY(108%); transition: transform 1.1s var(--suave) var(--d, 0s); }
.js:not(.quieto) .cargado .hero-titular .linea-in,
.js:not(.quieto) .lineas.visible .linea-in { transform: none; }
.js:not(.quieto) .entra { opacity: 0; transform: translateY(14px); transition: opacity .9s ease var(--d, 0s), transform .9s var(--suave) var(--d, 0s); }
.js:not(.quieto) .cargado .entra { opacity: 1; transform: none; }
.js:not(.quieto) .hero-asterisco { --escala: 0; }
.js:not(.quieto) .cargado .hero-asterisco { --escala: 1; }
.js:not(.quieto) .marca { background-size: 0 .42em; transition: background-size 1s var(--suave) 1s; }
.js:not(.quieto) .cargado .marca { background-size: 100% .42em; }
.js:not(.quieto) .subraya { background-size: 0 3px; transition: background-size 1.4s var(--suave) .5s; }
.js:not(.quieto) .visible .subraya { background-size: 100% 3px; }
.js:not(.quieto) .revela { opacity: 0; transform: translateY(22px); transition: opacity .8s ease var(--d, 0s), transform .9s var(--suave) var(--d, 0s); }
.js:not(.quieto) .revela.visible { opacity: 1; transform: none; }

/* ---------- Escritorio grande ---------- */
@media (min-width: 1600px) { body { font-size: 18px; } }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .equipo { grid-template-columns: repeat(2, 1fr); }
  .equipo .persona:last-child { grid-column: 1 / -1; max-width: calc(50% - clamp(10px, 1.25vw, 20px)); }
}
@media (max-width: 999px) {
  .pasos { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .pasos-via { display: none; }
}
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 20px; }
  .intro .etiqueta { padding-top: 0; }
  .menu { gap: 20px; font-size: 13px; }
  .agenda-rejilla, .contacto-rejilla { grid-template-columns: 1fr; }
  .contacto-texto { position: static; }
  .contacto-asterisco { display: none; }
  .compromisos { grid-template-columns: 1fr; row-gap: 40px; }
}

/* ---------- Móvil ---------- */
@media (max-width: 700px) {
  :root { --alto-cabecera: 72px; --alto-total: 116px; }
  body { font-size: 16px; }
  .logo img { height: 50px; }
  .menu { display: none; }
  .boton-cabecera { width: 44px; height: 44px; min-height: 44px; }
  .menu-movil { display: flex; justify-content: space-between; border-top: 1px solid var(--linea); height: 44px; overflow: hidden; transition: height .4s var(--suave), opacity .3s; }
  .menu-movil a { display: flex; align-items: center; font-size: 13px; text-decoration: none; }
  .menu-movil a.activo { font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
  .cabecera.oculta .menu-movil { height: 0; opacity: 0; border-top-color: transparent; }
  .hero-nota { display: none; }
  .hero-titular { font-size: clamp(36px, 12.6vw, 64px); padding-right: 0; margin-top: 28px; }
  .hero-asterisco { width: .62em; height: .62em; top: -.38em; right: 0; }
  .hero-abajo { flex-direction: column; align-items: stretch; gap: 28px; }
  .hero-marco { aspect-ratio: 4 / 3; }
  .metodo-imagen { aspect-ratio: 4 / 3; }
  .servicios-lista, .equipo, .compromisos, .pasos { grid-template-columns: 1fr; }
  .equipo .persona:last-child { max-width: none; }
  .pasos { row-gap: 0; }
  .paso { position: relative; padding: 0 0 40px 64px; }
  .paso::before { content: ''; position: absolute; left: 21px; top: 44px; bottom: 0; width: 1px; background: var(--linea); }
  .paso:last-child::before { display: none; }
  .paso .num { position: absolute; left: 0; top: 0; }
  .paso h3 { margin-top: 8px; }
  .campos-dos { grid-template-columns: 1fr; }
  .chip span { font-size: 14px; padding: 0 16px; }
  .boton { width: 100%; white-space: normal; text-align: left; }
  .boton-cabecera { width: 44px; }
  .pie-arriba { flex-direction: column; align-items: flex-start; }
  .logo-pie img { height: 72px; }
  .pie-abajo { flex-direction: column; }
}
@media (min-width: 701px) {
  .cabecera.oculta { transform: translateY(-101%); }
}
@media (max-width: 360px) {
  .logo img { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hero-marco { clip-path: none; }
  .hero-marco img, .metodo-imagen img { transform: none; height: 100%; }
}

.ayuda { margin: -4px 0 14px; font-size: 14px; opacity: .6 }

.contacto input::placeholder, .contacto textarea::placeholder, form input::placeholder, form textarea::placeholder { color: rgba(32,36,31,.45); opacity: 1 }

/* ---------- Idiomas (cabecera) ---------- */
.idiomas { position: relative; }
.idiomas-boton { display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 14px; border-radius: 999px; background: transparent; border: 1px solid color-mix(in oklab, currentColor 28%, transparent); cursor: pointer; font-size: 13px; font-weight: 500; letter-spacing: .06em; transition: border-color .3s ease, background-color .3s ease; }
.idiomas-boton:hover, .idiomas-boton[aria-expanded="true"] { border-color: currentColor; }
.idiomas-boton .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.idiomas-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; min-width: 168px; margin: 0; padding: 6px; list-style: none; background: var(--papel); color: var(--tinta); border: 1px solid var(--linea); border-radius: 14px; box-shadow: 0 18px 40px -22px rgba(32, 36, 31, .45); }
.idiomas-menu a { display: block; padding: 10px 12px; border-radius: 10px; font-size: 14px; text-decoration: none; }
.idiomas-menu a:hover { background: #ECEDE4; }
.idiomas-menu a[aria-current] { font-weight: 600; }
.idiomas-menu a[aria-current]::after { content: ' ·'; color: var(--lima-borde); }

/* ---------- Servicios en tarjetas ---------- */
.seccion-servicios { padding-block: clamp(48px, 6vw, 96px); scroll-margin-top: 0; }
.grupos { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 0 clamp(20px, 2.2vw, 36px); }
/* Las tres columnas comparten filas: los títulos ocupan lo mismo y las tarjetas empiezan a la misma altura */
.grupo { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.grupo-cabeza h3 { font-size: clamp(22px, 1.75vw, 30px); }
.grupo-cabeza p { margin-top: 10px; max-width: 40ch; font-size: 15px; line-height: 1.55; color: var(--gris-texto); }
.grupo-lista { display: grid; gap: 10px; margin-top: 22px; align-content: start; }
/* Pantallas bajas (portátiles): que al pulsar «Servicios» quepa la sección entera */
@media (min-width: 1001px) and (max-height: 820px) {
  .seccion-servicios { padding-top: 36px; }
  .seccion-servicios .solo-etiqueta { margin-bottom: 22px; }
  .grupo-cabeza p { margin-top: 6px; }
  .grupo-lista { gap: 8px; margin-top: 16px; }
  .srv { padding-block: 8px; }
  .srv-ic { width: 36px; height: 36px; border-radius: 10px; }
}
.srv { display: grid; grid-template-columns: 40px 1fr 16px; align-items: center; gap: 14px; padding: 13px 16px 13px 13px; background: #fff; border: 1px solid rgba(32, 36, 31, .1); border-radius: 16px; text-decoration: none; transition: border-color .3s ease, transform .4s var(--suave), box-shadow .4s var(--suave); }
.srv:hover { border-color: var(--tinta); transform: translateY(-2px); box-shadow: 0 14px 28px -20px rgba(32, 36, 31, .45); }
.srv-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in oklab, var(--lima) 38%, var(--papel)); }
.srv-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--tinta); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.srv-nombre { font-family: var(--titulo); font-weight: 600; font-size: 15.5px; line-height: 1.3; letter-spacing: -.02em; }
.srv-ir { width: 16px; height: 16px; color: var(--gris); transition: transform .35s var(--suave), color .3s ease; }
.srv:hover .srv-ir { color: var(--tinta); transform: translate(2px, -2px); }
@media (max-width: 1000px) {
  .grupos { grid-template-columns: 1fr; grid-template-rows: none; gap: 44px; }
  .grupo { grid-row: auto; grid-template-rows: none; }
  .boton-cabecera { width: 48px; padding: 0; gap: 0; }
  .boton-cabecera span { display: none; }
}
@media (max-width: 700px) {
  .boton-cabecera { width: 44px; height: 44px; min-height: 44px; }
  .idiomas-boton { height: 44px; padding: 0 11px; }
  .cabecera-acciones { gap: 8px; }
}

/* ---------- Aviso de cookies (informativo: la web no usa cookies de seguimiento) ---------- */
.cookies { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 440px; display: grid; gap: 14px; padding: 16px 16px 16px 20px; background: var(--tinta); color: var(--papel); border-radius: 18px; box-shadow: 0 22px 50px -24px rgba(0, 0, 0, .55); font-size: 14px; line-height: 1.5; }
.cookies[hidden] { display: none; }
.cookies .enlace { color: var(--lima); font-weight: 500; }
.boton-cookies { flex-shrink: 0; min-height: 44px; padding: 0 20px; gap: 0; justify-content: center; background: var(--papel); color: var(--tinta); font-size: 14px; }
.boton-cookies:hover { background: var(--lima); }
.cookies-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.boton-cookies-no { background: transparent; color: var(--papel); box-shadow: inset 0 0 0 1px rgba(247, 247, 239, .45); }
.boton-cookies-no:hover { background: rgba(247, 247, 239, .1); }
@media (max-width: 700px) { .cookies { left: 12px; right: 12px; bottom: 12px; max-width: none; } .boton-cookies { width: 100%; justify-content: center; } }

/* 02 · Desde dentro: fotos grandes y enteras, colocadas a mano y sin alinear */
.dentro { padding: 12px 0 24px; background: var(--tinta); color: var(--papel); }
.dentro :focus-visible { outline-color: var(--lima); }
.dentro-cabeza { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 16px 14px; }
.dentro-cabeza .titulo { font-size: clamp(28px, 3.2vw, 52px); }
.dentro-cabeza .cursiva { color: var(--lima); }
.dentro-cabeza .etiqueta { white-space: nowrap; }
.dentro-mosaico { position: relative; container-type: inline-size; }
.dentro-mosaico::before { content: ''; display: block; padding-top: calc(var(--total) * 1%); }
.dentro-foto { position: absolute; left: calc(var(--l) * 1%); top: calc(var(--t) * 1cqw); width: calc(var(--w) * 1%); padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: var(--linea-oscura); cursor: zoom-in; }
.dentro-foto img { display: block; width: 100%; height: auto; transition: scale .7s var(--suave), opacity .35s ease; }
.dentro-foto:hover img { scale: 1.04; }
.dentro-mosaico:has(.dentro-foto:hover) .dentro-foto:not(:hover) img { opacity: .45; }
/* En móvil y tableta, columnas: más filas y fotos grandes */
@media (max-width: 900px) {
  .dentro { padding: 12px 8px; }
  .dentro-cabeza { padding: 0 4px 10px; }
  .dentro-mosaico { container-type: normal; columns: 3; column-gap: 8px; }
  .dentro-mosaico::before { content: none; }
  .dentro-foto { position: static; display: block; width: 100%; margin-bottom: 8px; break-inside: avoid; }
}
@media (max-width: 700px) {
  .dentro-cabeza .etiqueta { display: none; }
  .dentro-mosaico { columns: 2; }
}

/* El visor: la foto crece desde donde estaba */
.visor { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #14180F; color: var(--papel); overflow: hidden; }
.visor[open] { display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; }
.visor::backdrop { background: transparent; }
.visor-marco { grid-column: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 100dvh; padding-block: 24px; min-width: 0; }
.visor-img { min-height: 0; flex: 0 1 auto; max-width: 100%; max-height: calc(100dvh - 48px); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.visor-boton { width: 48px; height: 48px; justify-self: center; display: grid; place-items: center; background: transparent; color: var(--papel); border: 1px solid var(--linea-oscura); border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; transition: background .25s ease, color .25s ease; }
.visor-boton:hover { background: var(--lima); color: var(--tinta); border-color: var(--lima); }
.visor-antes { grid-column: 1; grid-row: 1; }
.visor-luego { grid-column: 3; grid-row: 1; }
.visor-marco { grid-row: 1; }
.visor-cerrar { position: absolute; z-index: 2; top: 16px; right: 12px; }
.visor :focus-visible { outline-color: var(--lima); }
html.visor-abierto { overflow: hidden; }
::view-transition-group(foto-visor) { animation-duration: .55s; animation-timing-function: var(--suave); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
@media (max-width: 700px) {
  .visor[open] { grid-template-columns: minmax(0, 1fr); }
  .visor-marco { grid-column: 1; padding-inline: 12px; }
  .visor-antes, .visor-luego { position: absolute; z-index: 2; bottom: 16px; grid-column: auto; grid-row: auto; }
  .visor-antes { left: 16px; }
  .visor-luego { right: 16px; }
  .visor-img { max-height: calc(100dvh - 170px); }
}
