/* INOR · Ingeniería del Noroeste — hoja de estilos (formato 2026). Sin dependencias. */
@font-face { font-family: "Lato"; src: url("/assets/fonts/lato-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/assets/fonts/lato-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --char: #3a3835;        /* gris antracita del documento de formato */
  --char-2: #2e2c29;
  --char-3: #47443f;
  --ink: #222222;         /* gris oscuro de las letras: RGB 34,34,34 (MODIFICACIONES.docx) */
  --paper: #f6f3ec;
  --card: #fffdf8;
  --line: #ddd5c4;
  --line-dark: #57534d;
  --muted: #5c5850;
  --on-dark: #ece9e2;
  --on-dark-muted: #c2bdb2;
  --yellow: #fff000;      /* único amarillo de la web: RGB 255,240,0 · Pantone 102 C (MODIFICACIONES.docx) */
  --accent: var(--yellow);  /* el mismo amarillo para textos sobre fondo oscuro */
  --focus: #6aa8ff;
  --error: #b3261e;
  --ok: #1b6b3a;
  --w: 76rem;
  --gap: clamp(1rem, 3vw, 2rem);
  --r: 12px;
  --font: "Lato", "Helvetica Neue", Arial, sans-serif;
  --step--1: .875rem; --step-0: 1.0625rem; --step-1: 1.25rem; --step-2: 1.55rem;
  --step-3: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.4rem + 3.8vw, 4.2rem);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body { margin: 0; font-family: var(--font); font-size: var(--step-0); line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p, ul, ol, dl { margin: 0 0 1em; }
.wrap { width: min(100% - 2 * var(--gap), var(--w)); margin-inline: auto; }
.narrow { max-width: 52rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--yellow); color: #000; padding: .75rem 1rem; z-index: 200; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.section--dark .kicker, .hero .kicker { color: var(--accent); }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); line-height: 1.6; max-width: 60ch; }
mark.pending { background: #fff3b0; color: #5c4a00; }

/* ---------- Botones y enlaces */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.5rem; font: 700 .95rem/1.2 var(--font); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; border-radius: 4px; cursor: pointer; text-align: center; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--yellow); color: #000; border-color: var(--yellow); }
.btn--primary:hover { background: #fff; border-color: #fff; }
.section--light .btn--primary:hover, .cmp .btn--primary:hover, .form--panel .btn--primary:hover { background: var(--char); color: #fff; border-color: var(--char); }
.btn--dark { background: var(--char); color: #fff; border-color: var(--char); }
.btn--dark:hover { background: #000; }
.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn--light:hover { background: #fff; color: #000; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.more { font-weight: 700; text-decoration: none; border-bottom: 3px solid var(--yellow); padding-bottom: 2px; }
.more:hover { border-bottom-color: currentColor; }
.more--light { color: #fff; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* ---------- Iconos */
.ico { flex: none; }
.ico .ac { fill: var(--yellow); stroke: currentColor; }
.ico .ac-s { stroke: var(--accent); }
.section--light .ico .ac-s { stroke: var(--ink); }   /* sobre claro el amarillo no se ve: trazo en gris */

/* ---------- Cabecera */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--char); color: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.25); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; transition: min-height .25s; }
.is-scrolled .bar { min-height: 58px; }
.brand { display: inline-block; padding: .3rem 0; line-height: 0; }   /* logo con fondo transparente y letras blancas */
.brand img { width: 128px; height: auto; }
@media (min-width: 64em) { .brand img { width: 150px; } }
.menu { display: flex; gap: .25rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu > li > a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 0; color: #fff; text-decoration: none; font-size: .92rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.menu > li > a:hover, .menu > li > a[aria-current="page"] { color: var(--accent); }
.sub-toggle { width: 28px; height: 44px; margin-left: .1rem; background: none; border: 0; color: #fff; cursor: pointer; position: relative; }
/* Sin flechitas (ref-portada.png). Con ratón el submenú se abre al pasar por encima o al llegar con el tabulador;
   en pantallas táctiles y en el menú del móvil el botón sigue funcionando y muestra «+» / «−». */
.sub-toggle::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font: 400 1.25rem/1 var(--font); }
.sub-toggle[aria-expanded="true"]::after { content: "−"; }
@media (min-width: 64em) and (hover: hover) { html.js-nav .sub-toggle { display: none; } }
.sub { list-style: none; margin: 0; padding: .5rem 0; min-width: 17rem; background: var(--char-2); border-top: 3px solid var(--yellow); box-shadow: 0 18px 40px -20px rgba(0,0,0,.6); }
.sub a { display: block; padding: .6rem 1.1rem; color: var(--on-dark); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.sub a:hover { background: var(--char-3); color: var(--accent); }
@media (min-width: 64em) {
  .sub { position: absolute; top: 100%; left: -1rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.sub-open > .sub { opacity: 1; visibility: visible; transform: none; }
  .has-sub.sub-closing > .sub { opacity: 0; visibility: hidden; }   /* recién pinchada una opción: se recoge aunque el ratón siga encima */
}
.nav-toggle { display: none; align-items: center; gap: .6rem; min-height: 44px; padding: .5rem 1rem; font: 700 .9rem var(--font); letter-spacing: .08em; text-transform: uppercase; color: #000; background: var(--yellow); border: 0; border-radius: 4px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; background: #000; position: relative; transition: transform .25s, background-color .25s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle .bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 63.99em) {
  .js-nav .nav-toggle { display: inline-flex; }
  .js-nav .bar { flex-wrap: wrap; }
  .js-nav .nav { display: none; width: 100%; padding-bottom: 1rem; max-height: calc(100vh - 70px); overflow-y: auto; }
  .js-nav.nav-open .nav { display: block; }
  .menu { flex-direction: column; gap: 0; }
  .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line-dark); }
  .menu > li > a { flex: 1; padding: .8rem 0; font-size: 1rem; }
  .sub-toggle { width: 48px; }
  .sub { display: none; width: 100%; border-top: 0; background: var(--char-3); margin-bottom: .5rem; }
  .has-sub.sub-open > .sub { display: block; }
}
html:not(.js-nav) .sub-toggle { display: none; }
@media (max-width: 63.99em) { html:not(.js-nav) .menu { flex-wrap: wrap; flex-direction: row; } html:not(.js-nav) .sub { display: none; } }

/* ---------- Migas */
.breadcrumbs { font-size: var(--step--1); margin-bottom: 1.25rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }
.breadcrumbs a { color: inherit; }

/* ---------- Portada: imágenes rotativas */
.hero { position: relative; isolation: isolate; color: #fff; background: #1b1a18; overflow: hidden; min-height: min(90vh, 52rem); display: flex; flex-direction: column; justify-content: center; }
.slides, .slide { position: absolute; inset: 0; }
.slides { z-index: -2; }
.slide { opacity: 0; transition: opacity 1.4s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide img.focus-top { object-position: 50% 12%; }
.motion .slide.is-active img { animation: kb 9s ease-out both; }
@keyframes kb { from { transform: scale(1.04); } to { transform: scale(1); } }
/* capa oscura ligera: solo la necesaria para leer el texto blanco; la sombra del texto hace el resto */
/* Primera pantalla (ref-portada.png): texto a la derecha, botones abajo a la izquierda */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 55% 50% at 74% 44%, rgba(15,14,12,.4) 0%, rgba(15,14,12,.18) 60%, rgba(15,14,12,0) 100%), linear-gradient(180deg, rgba(15,14,12,.22) 0%, transparent 26%, transparent 66%, rgba(15,14,12,.42) 100%); }
.hero-inner { flex: 1; display: flex; flex-direction: column; padding-block: clamp(3rem, 8vw, 5rem) 4.75rem; }
.hero-copy { margin: auto 0 auto auto; max-width: 38rem; padding-bottom: 2rem; }
.hero .kicker { text-align: right; font-size: .72rem; letter-spacing: .3em; margin-bottom: .9rem; }
.hero h1 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.9rem); line-height: 1.1; margin: 0 0 1.1rem; text-align: right; text-shadow: 0 2px 6px rgba(0,0,0,.45), 0 4px 28px rgba(0,0,0,.5); }
@media (min-width: 48em) { .hero h1 { white-space: nowrap; } }
.hero .lead { color: #fff; font-size: 1rem; line-height: 1.6; max-width: 34rem; margin: 0 0 0 auto; text-align: left; }
.hero .lead, .hero .kicker { text-shadow: 0 1px 4px rgba(0,0,0,.6), 0 2px 18px rgba(0,0,0,.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
.hero-actions .btn { min-height: 40px; padding: .45rem 1.3rem; font-size: .78rem; letter-spacing: .06em; }
@media (max-width: 47.99em) {   /* móvil: todo a la izquierda, botones uno al lado del otro */
  .hero-copy { margin: auto 0; max-width: none; padding-bottom: 1.5rem; }
  .hero .kicker, .hero h1 { text-align: left; }
  .hero .lead { margin: 0; }
  .hero::after { background: linear-gradient(180deg, rgba(15,14,12,.3) 0%, rgba(15,14,12,.38) 45%, rgba(15,14,12,.5) 100%); }
}
.slider-ui { position: absolute; left: 0; right: 0; bottom: 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.dots { display: flex; gap: .5rem; min-width: 0; flex: 0 1 auto; }
@media (max-width: 26em) { .dots { gap: .3rem; } .slider-pause { font-size: .72rem; } }
.dot { width: 34px; height: 24px; flex: 0 1 34px; min-width: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.dot::after { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 4px; background: rgba(255,255,255,.45); transition: background-color .3s; }
.dot.is-active::after { background: var(--yellow); }
.slider-pause { background: none; border: 0; color: #fff; font: 700 .8rem var(--font); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; min-height: 44px; opacity: .85; }
.slider-pause:hover { opacity: 1; text-decoration: underline; }

/* ---------- Cabeceras de página */
.page-hero { position: relative; isolation: isolate; background: var(--char); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,19,17,.58) 0%, rgba(20,19,17,.26) 50%, rgba(20,19,17,.04) 100%), linear-gradient(0deg, rgba(20,19,17,.3) 0%, transparent 45%); }
.page-hero--photo .lead, .page-hero--photo .breadcrumbs { text-shadow: 0 1px 4px rgba(0,0,0,.65), 0 2px 16px rgba(0,0,0,.45); }
.page-hero-inner { display: grid; gap: 1.5rem; align-items: end; min-height: clamp(17rem, 36vw, 27rem); padding-block: 1.25rem clamp(2.5rem, 6vw, 3.5rem); }
.page-hero-text { align-self: stretch; display: flex; flex-direction: column; }
.page-hero .breadcrumbs { color: #ddd8ce; }
.page-hero h1 { margin-top: auto; font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); max-width: 18ch; text-shadow: 0 2px 6px rgba(0,0,0,.45), 0 4px 24px rgba(0,0,0,.45); }
.page-hero .lead { color: #ece9e2; margin: 0; }
.page-hero--claim .lead { font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); max-width: 48ch; }
@media (min-width: 60em) { .page-hero--dept .page-hero-inner { grid-template-columns: 1fr minmax(18rem, 26rem); } }
.hero-services { background: rgba(30,29,26,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-left: 4px solid var(--yellow); padding: 1.1rem 1.4rem; border-radius: 0 8px 8px 0; }
.hero-services ul { list-style: none; margin: 0; padding: 0; }
.hero-services li { padding: .3rem 0; font-size: 1.02rem; color: #fff; }
.title-band { background: var(--char); color: #fff; padding-block: 1.25rem 2rem; }
.title-band .breadcrumbs { color: #ddd8ce; }
.title-band h1 { margin: 0; font-size: var(--step-3); }

/* ---------- Secciones */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--flush { padding-top: 0; }
.section--light { background: var(--paper); }
.section--dark { background: var(--char); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a:not(.btn) { color: #fff; }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head.row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.section-head.row h2 { margin: 0; }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 60em) { .split { grid-template-columns: 1fr 1.5fr; align-items: start; } }

/* Esquema Experiencia · Calidad · Fiabilidad (graficos_INOR_editable.pptx, diapositiva 1) */
.pillars { display: grid; gap: 2rem; }
@media (min-width: 60em) { .pillars { grid-template-columns: minmax(14rem, 1fr) 3fr; align-items: center; } }
.pillars-head h2 { font-size: var(--step-2); font-weight: 400; margin: 0; max-width: 18ch; }
.pillars ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
@media (min-width: 40em) { .pillars ul { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.pillar { padding: .25rem 1.5rem; }
@media (min-width: 40em) { .pillar { border-left: 1px solid var(--line); } }
.pillar-num { display: block; font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--ink); margin-bottom: .6rem; }
.pillar h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.pillar p { color: var(--muted); margin: 0 0 .9rem; font-size: .97rem; }
.meter { display: block; height: 4px; background: #e6e1d6; }
.meter-fill { display: block; height: 100%; background: var(--yellow); width: var(--pw); transition: width 1.4s cubic-bezier(.2,.7,.2,1) .2s; }
.meter-fill.w33 { --pw: 33%; } .meter-fill.w67 { --pw: 67%; } .meter-fill.w100 { --pw: 100%; }
.motion .pillar.reveal .meter-fill { width: 0; }
.motion .pillar.reveal.in .meter-fill { width: var(--pw); }

/* Cita */
.quote-band { background: var(--char); padding-block: clamp(2.2rem, 5vw, 3.2rem); }
.quote-band p { margin: 0 auto; max-width: 30ch; text-align: center; color: var(--accent); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem); line-height: 1.3; }

/* Lista de servicios (portada) */
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list a { display: grid; gap: .2rem; padding: 1rem 0; border-top: 1px solid var(--line-dark); text-decoration: none; transition: padding-left .25s; }
.service-list a:hover { padding-left: .5rem; }
.service-list strong { color: var(--accent); font-size: var(--step-1); }
.service-list span { color: var(--on-dark-muted); }

/* Tarjetas de departamento */
.dcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }
.dcard { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .3s, box-shadow .3s, border-color .3s; }
.dcard:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -28px rgba(0,0,0,.55); border-color: var(--char); }
.dcard-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--char); }
.dcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.dcard:hover .dcard-media img { transform: scale(1.06); }
.dcard-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.4rem 1.3rem; }
.dcard-body .ico { position: absolute; top: -1.6rem; left: 1.25rem; width: 52px; height: 52px; padding: 8px; background: var(--char); color: #fff; border-radius: 8px; }
.dcard-body h2, .dcard-body h3 { margin: .9rem 0 .7rem; font-size: var(--step-1); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; padding: 0; }
.tags li { font-size: .8rem; padding: .15rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.go { margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.go::after { content: ""; width: 1.5rem; height: 2px; background: var(--yellow); transition: width .3s; }
a:hover .go::after { width: 2.6rem; }

/* Muro de logos y CTA */
.logo-wall { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; padding: clamp(.5rem, 2vw, 1.5rem); }
.logo-wall img { width: 100%; height: auto; }
.cta-band { background: var(--char-2); color: var(--on-dark); }
.cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem; padding-block: clamp(2.2rem, 5vw, 3rem); }
.cta-band h2 { color: #fff; font-size: var(--step-2); margin-bottom: .25rem; }
.cta-band p { margin: 0; }
.cta-band a:not(.btn) { color: #fff; }

/* Franja con foto y título */
.photo-band { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(13rem, 28vw, 21rem); display: flex; align-items: flex-end; background: var(--char); }
.photo-band-media { position: absolute; inset: 0; z-index: -2; }
.photo-band-media img { width: 100%; height: 100%; object-fit: cover; }
.photo-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,19,17,.5) 0%, rgba(20,19,17,.14) 55%, transparent 100%); }
.band-title { color: #fff; margin: 0 0 clamp(1.5rem, 4vw, 2.5rem); font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.8rem); text-shadow: 0 2px 6px rgba(0,0,0,.5), 0 4px 24px rgba(0,0,0,.45); }

/* Empresa */
.prose { max-width: 66ch; }
.prose p, .prose li { text-align: left; }
/* Quiénes somos: una sola imagen a la izquierda y el texto a la derecha (FORMATO.pdf) */
.about { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60em) { .about { grid-template-columns: .9fr 1.1fr; gap: 3.5rem; } }
.about .prose p { font-size: 1.12rem; }
.about-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); box-shadow: 0 20px 40px -24px rgba(0,0,0,.8); }
.team { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 60em) { .team { grid-template-columns: .85fr 1.15fr; gap: 3.5rem; } }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: .45rem 0 .45rem 1.6rem; border-bottom: 1px solid var(--line-dark); }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 9px; height: 9px; background: var(--yellow); }
/* Cifras del equipo (ref-equipo.png): bloque compacto, números finos, % pequeño, separadores verticales grises */
.section--shares { padding-block: clamp(1.75rem, 3.5vw, 2.5rem); }
.shares { display: grid; gap: 1.25rem; }
@media (min-width: 64em) { .shares { grid-template-columns: 13rem 1fr; align-items: stretch; gap: 0; } }
.shares-head .kicker { font-size: .68rem; margin-bottom: .45rem; }
.shares-head h2 { font-size: 1.12rem; font-weight: 400; line-height: 1.3; margin: 0; max-width: 16ch; }
.share-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.share { border-left: 1px solid #cfc8bb; padding: .15rem 1rem .5rem; min-width: 0; }
.share strong { display: block; font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); font-weight: 400; line-height: 1; letter-spacing: -.01em; color: var(--ink); }
.share strong small { font-size: .5em; letter-spacing: 0; margin-left: .05em; }
.share > span { display: block; font-size: .74rem; font-weight: 700; line-height: 1.3; margin: .55rem 0 .8rem; overflow-wrap: anywhere; }
.share-bar { display: block; height: 3px; background: #e4ddcf; max-width: 8rem; }
@media (max-width: 47.99em) {   /* móvil: dos columnas ordenadas, separador solo en la de la derecha */
  .share-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.1rem; }
  .share { padding-left: .9rem; }
  .share:nth-child(odd) { border-left: 0; padding-left: 0; }
}
.share-fill { display: block; height: 100%; background: var(--yellow); width: 0; transition: width 1.4s cubic-bezier(.2,.7,.2,1) .2s; }
.share-fill.w39 { --pw: 100%; } .share-fill.w22 { --pw: 56%; } .share-fill.w17 { --pw: 44%; } .share-fill.w11 { --pw: 28%; }
.share-fill { width: var(--pw); }
.motion .share.reveal .share-fill { width: 0; }
.motion .share.reveal.in .share-fill { width: var(--pw); }
/* Valores: cuatro columnas numeradas 01-04 (graficos_INOR_editable.pptx, diapositiva 4) */
.values-head { margin-bottom: 2.5rem; }
.values-head h2 { font-size: var(--step-3); font-weight: 400; margin: 0; }
.values-head h2::after { content: ""; display: block; width: 3.5rem; height: 5px; background: var(--yellow); margin-top: 1.1rem; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
@media (min-width: 64em) { .values { grid-template-columns: repeat(4, 1fr); gap: 0; } .vcard + .vcard { border-left: 1px solid var(--line); } .vcard { padding: 0 1.75rem; } .vcard:first-child { padding-left: 0; } }
.vcard-num { display: block; font-size: clamp(2.4rem, 2rem + 1.6vw, 3.2rem); font-weight: 700; line-height: 1; color: var(--ink); margin-bottom: 1rem; }
.vcard h3 { font-size: var(--step-1); min-height: 2.6em; margin-bottom: .9rem; }
.vcard h3::after { content: ""; display: block; width: 2rem; height: 3px; background: var(--yellow); margin-top: .9rem; }
.vcard p { margin: 0 0 .7rem; color: var(--muted); font-size: 1rem; }
.info-row { display: flex; gap: 1.25rem; align-items: flex-start; max-width: 60rem; }
.info-row > .ico { width: 56px; height: 56px; padding: 9px; border-radius: 50%; background: var(--yellow); color: #000; }
.info-row > .ico .ac { fill: #fff; }
.info-row h2 { font-size: var(--step-2); }
/* Sellos ISO: solo los sellos, sin fechas ni explicaciones (MODIFICACIONES.docx) */
.certs { margin-top: 2rem; max-width: 60rem; display: flex; justify-content: flex-end; }
.certs .seals { gap: 1rem; }
.certs .seals img { width: clamp(84px, 12vw, 110px); }
.policy { margin-top: 1rem; }
.policy summary { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 700; color: var(--accent); list-style: none; min-height: 44px; }
.policy summary::-webkit-details-marker { display: none; }
.policy summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; margin-top: -4px; }
.policy[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.policy-body { margin-top: 1rem; background: var(--card); color: var(--ink); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); max-width: 60rem; }
.section--dark .policy-body a:not(.btn) { color: var(--ink); }
.policy-body ol li, .policy-body ul li { margin-bottom: .45rem; }
.policy-ed { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.policy-sign { font-weight: 700; }
.doc-link { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; text-decoration: none; }
.doc-link small { font-weight: 400; opacity: .8; }

/* Actividad */
.act-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.act-list li { color: var(--on-dark); font-size: 1.05rem; line-height: 1.7; }
.tagbox { display: inline-block; padding: .15rem .6rem; margin-right: .35rem; border: 1.5px solid #fff; border-radius: 6px; color: var(--accent); font-size: 1.1rem; }
.dep-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.dep-links a { display: flex; align-items: center; gap: .8rem; min-height: 56px; padding: .6rem 1rem; border: 1px solid var(--line-dark); border-radius: 8px; text-decoration: none; font-weight: 700; transition: background-color .2s, border-color .2s; }
.dep-links a:hover { background: var(--char-3); border-color: var(--accent); }
.dep-links .ico { color: #fff; }

/* Trabajos de cada departamento */
.wcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.1rem; }
.wcard { background: var(--char); color: var(--on-dark); border-radius: var(--r); padding: 1rem 1rem 1.1rem; scroll-margin-top: 6rem; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.wcard-head { display: flex; flex-direction: column; justify-content: center; margin-bottom: .8rem; }
.wcard h3 { font-size: 1rem; font-weight: 700; line-height: 1.4; color: #fff; text-align: center; margin: .25rem .25rem 0; }
.wcard-detail { font-size: .9rem; color: var(--on-dark-muted); text-align: center; margin: .4rem .25rem 0; }
/* caja de fotos de tamaño fijo: 1 foto entera, 2 apiladas, 3 = una arriba y dos abajo */
.wcard-media { aspect-ratio: 4 / 3; display: grid; gap: .5rem; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.wcard-media > * { grid-column: 1 / -1; min-height: 0; }
.wcard-media.n1 > * { grid-row: 1 / -1; }
.wcard-media.n3 > :nth-child(2) { grid-column: 1; }
.wcard-media.n3 > :nth-child(3) { grid-column: 2; }
.wcard-media.n4 > * { grid-column: auto; }   /* 4 fotos: cuadrícula de 2 × 2 */
.wcard-media .zoom, .wcard-media picture { height: 100%; }
/* Safari/WebKit: los elementos de grid tienen min-width:auto y crecen hasta el ancho natural de las fotos;
   con min-width:0 y max-width:100% la tarjeta y sus fotos no pasan del ancho de su columna */
.wcards > li, .wcard > *, .wcard-media, .wcard-media > *, .wcard-media picture { min-width: 0; max-width: 100%; }
.wcard-media img { max-width: 100%; }
/* Móvil y tablet: con grid-template-rows: subgrid (y row-gap distinto del de la rejilla) Safari calcula las filas
   compartidas más bajas que la tarjeta real; cada tarjeta se sale de su hueco y la última tapa la sección de debajo.
   Aquí no hace falta el subgrid: tarjeta en columna flexible y fotos empujadas abajo (quedan alineadas en tablet). */
@media (max-width: 63.99em) {
  .wcard { display: flex; flex-direction: column; grid-row: auto; grid-template-rows: none; }
  .wcard-media { margin-top: auto; width: 100%; flex: none; }
}
.wcard-media picture { display: block; }
.wcard-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; background: #fff; }
.wcard-empty { display: grid; place-items: center; background: var(--char-3); border-radius: 6px; color: #8d877c; }
.wcard-foot { min-height: 0; }
.wcard-foot p, .wcard p { margin: .9rem 0 0; text-align: center; }
.zoom { display: block; position: relative; cursor: zoom-in; border-radius: 6px; overflow: hidden; }
.zoom img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.zoom:hover img { transform: scale(1.04); }
.zoom::after { content: ""; position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center/18px no-repeat; opacity: 0; transition: opacity .2s; }
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; }
.prose h2 { font-size: var(--step-2); margin-top: 1.5em; }
.prose h3 { margin-top: 1.4em; }

/* Clientes */
.client-groups { display: grid; gap: 1.25rem 2rem; margin-bottom: 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.client-group { border-top: 3px solid var(--char); padding-top: .8rem; }
.client-group h3 { font-size: 1.05rem; }
.client-group ul, .client-cols { list-style: none; margin: 0; padding: 0; }
.client-group li, .client-cols li { padding: .4rem 0; border-bottom: 1px solid var(--line); font-size: .97rem; break-inside: avoid; }
.client-cols { columns: 1; column-gap: 2.5rem; margin-bottom: 3rem; border-top: 3px solid var(--char); padding-top: .4rem; }
@media (min-width: 40em) { .client-cols { columns: 2; } }
@media (min-width: 64em) { .client-cols { columns: 3; } }

/* Formularios */
.form--panel { background: #f1ede4; color: var(--ink); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); }
.form-title { font-size: var(--step-2); font-weight: 400; color: var(--ink) !important; margin-bottom: .3rem; }
.form-title::after { content: ""; display: block; width: 2.5rem; height: 3px; background: var(--yellow); margin-top: .7rem; }
.form-intro { color: var(--muted); font-size: .95rem; }
.fields { display: grid; gap: 0 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 40em) { .fields { grid-template-columns: 1fr 1fr; } .field { grid-column: 1 / -1; } .field--half { grid-column: auto; } }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .35rem; }
.field .hint { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); padding: .65rem .8rem; border: 1px solid #a9a397; border-radius: 4px; background: #fff; min-height: 48px; }
.field input[type="file"] { padding: .5rem; background: #fff; }
.field textarea { min-height: 9rem; resize: vertical; }
.field [aria-invalid="true"] { border: 2px solid var(--error); }
.error-text { color: var(--error); font-size: var(--step--1); font-weight: 700; margin: .3rem 0 0; }
.error-text:empty { display: none; }
.check { display: grid; grid-template-columns: 1.5rem 1fr; gap: .6rem; align-items: start; margin: 1rem 0 .3rem; }
.check input { width: 1.25rem; height: 1.25rem; margin: .2rem 0 0; accent-color: var(--char); }
.first-layer { font-size: .85rem; line-height: 1.55; background: #fff; border-left: 4px solid var(--char); padding: .9rem 1rem; margin: .5rem 0 0; border-radius: 0 6px 6px 0; }
.first-layer p { margin: 0 0 .35rem; }
.first-layer p:last-child { margin: 0; }
.form--panel button[type="submit"] { margin-top: 1.1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error-summary { border: 2px solid var(--error); background: #fff; padding: 1rem; margin-bottom: 1.25rem; border-radius: 6px; }
.error-summary[hidden] { display: none; }
.error-summary h2 { font-size: var(--step-1); color: var(--error) !important; }
.error-summary a { color: var(--error) !important; }
.notice { border-left: 4px solid var(--ok); background: #eef6f0; padding: 1rem; }
.join { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 64em) { .join { grid-template-columns: .8fr 1.2fr; } }
.join-text h2 { font-size: var(--step-2); }

/* Contacto y mapa */
.map { background: var(--char-2); }
.map-frame { position: relative; height: clamp(18rem, 36vw, 26rem); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .3rem; padding: 1.5rem; color: var(--on-dark); background: repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.05) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.05) 39px 40px), var(--char-2); }
.map-placeholder .ico { color: #fff; margin-bottom: .5rem; }
.map-placeholder p { max-width: 46ch; margin: 0 0 .4rem; }
.map-placeholder a:not(.btn) { color: #fff; }
.map-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: .6rem !important; }
.is-loaded .map-placeholder { display: none; }
.contact { display: grid; gap: 2rem; padding-top: clamp(2rem, 5vw, 3rem); }
@media (min-width: 64em) { .contact { grid-template-columns: 1.15fr .85fr; align-items: center; } }
.contact-info address { font-style: normal; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 1.5rem 0; }
.ci { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.1rem; font-size: 1.08rem; }
.ci:last-child { margin: 0; }
.ci .ico { color: #fff; }
.ci .ico .ac { fill: var(--yellow); }

/* Programas UE y textos legales */
.eu { display: grid; gap: 1.5rem; }
.eu-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.eu-item > img { margin-bottom: 1rem; }
.eu-poster { border: 1px solid var(--line); border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.prose th, .prose td { text-align: left; vertical-align: top; border: 1px solid var(--line); padding: .6rem .7rem; }
.prose th { background: #ece6d9; }
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; }

/* Pie */
.site-footer { background: var(--char); color: var(--on-dark-muted); font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 6vw, 3.5rem) 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.site-footer h2 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.f-sub { margin-top: 1.5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .1rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer li > a { display: inline-block; padding-block: .3rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.seals { display: flex; gap: .7rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }   /* lista de sellos sin viñetas */
.seals li { list-style: none; }
.seals img { width: 52px; height: auto; transition: transform .25s; }
.seals a:hover img { transform: translateY(-3px); }
.footer-logo { display: inline-block; line-height: 0; margin-bottom: 1.2rem; }   /* misma versión que la cabecera: sin recuadro blanco */
.footer-logo img { width: 160px; }
.f-contact address { font-style: normal; display: grid; gap: .6rem; }
.f-line { display: flex; gap: .6rem; align-items: flex-start; }
.f-line .ico { margin-top: .2rem; color: var(--on-dark); }
.footer-legal { border-top: 1px solid var(--line-dark); padding-block: 1rem; }
.footer-legal ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3rem 1.5rem; }
.footer-legal li { margin: 0; display: flex; }
.footer-legal li > a, .footer-legal .linklike { color: var(--accent); font: 400 .92rem/1.5 var(--font); text-decoration: none; min-height: 44px; padding: 0; margin: 0; display: inline-flex; align-items: center; vertical-align: middle; }
.footer-legal a:hover, .footer-legal .linklike:hover { text-decoration: underline; color: var(--accent); }
.footer-eu { background: #fff; color: var(--muted); }
.footer-eu .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.5rem; padding-block: 1rem; }
.footer-eu img { height: 36px; width: auto; }
.footer-eu p { margin: 0; flex: 1 1 18rem; font-size: .8rem; }
.footer-eu a { color: var(--muted); }
.footer-copy { margin: 0 auto; padding-block: .9rem; font-size: .82rem; text-align: center; }

/* Ampliación de fotos */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10,10,9,.88); }
.lightbox img { max-width: 100%; max-height: 80vh; width: auto; margin: 0 auto; border-radius: 6px; background: #fff; }
.lb-figure { margin: 0; }
.lb-caption { color: #fff; text-align: center; font-size: .92rem; line-height: 1.4; margin: .7rem auto 0; max-width: 70ch; }
.lb-caption:empty { display: none; }
.lb-close { position: absolute; top: -3rem; right: 0; min-height: 44px; padding: .4rem 1rem; font: 700 .85rem var(--font); letter-spacing: .08em; text-transform: uppercase; background: var(--yellow); color: #000; border: 0; border-radius: 4px; cursor: pointer; }
/* Flechas para pasar a la foto siguiente del mismo trabajo sin cerrar el visor */
.lb-nav { position: absolute; top: 45%; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--yellow); color: #000; cursor: pointer; transform: translateY(-50%); }
.lb-nav[hidden] { display: none; }
.lb-nav::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; }
.lb-prev { left: .5rem; } .lb-prev::after { transform: translate(-30%, -50%) rotate(135deg); }
.lb-next { right: .5rem; } .lb-next::after { transform: translate(-70%, -50%) rotate(-45deg); }
@media (min-width: 90em) { .lb-prev { left: -4rem; } .lb-next { right: -4rem; } }

/* Banner de cookies */
.cmp { position: fixed; inset: auto 0 0 0; z-index: 150; background: var(--card); border-top: 4px solid var(--yellow); box-shadow: 0 -6px 26px rgba(0,0,0,.2); padding: 1.2rem 0; max-height: 90vh; overflow-y: auto; }
.cmp[hidden] { display: none; }
.cmp h2 { font-size: var(--step-1); margin-bottom: .4rem; }
.cmp p { font-size: var(--step--1); max-width: 80ch; }
.cmp-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .9rem; }
.cmp-actions .btn { flex: 1 1 10rem; }
.cmp-cat { border-top: 1px solid var(--line); padding: .8rem 0; }
.cmp-cat-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-weight: 700; }
.cmp-cat p { margin: .3rem 0 0; }
.cmp-cat input { width: 1.4rem; height: 1.4rem; accent-color: var(--char); }
/* Móvil: aviso compacto que no tapa la página (MODIFICACIONES.docx) */
@media (max-width: 40em) {
  .cmp { padding: .6rem 0 .7rem; max-height: 45vh; border-top-width: 3px; }
  .cmp h2 { font-size: .95rem; margin-bottom: .15rem; }
  .cmp p { font-size: .76rem; line-height: 1.4; margin-bottom: 0; }
  .cmp-actions { gap: .4rem; margin-top: .5rem; flex-wrap: nowrap; }
  .cmp-actions .btn { flex: 1 1 0; min-height: 40px; padding: .35rem .4rem; font-size: .74rem; letter-spacing: .02em; }
  .cmp-cat { padding: .5rem 0; }
}

/* ---------- Ajustes de móvil y tablet (revisión móvil). Solo por debajo de 1024 px: el escritorio no cambia. */
@media (max-width: 63.99em) {
  /* migas: zona táctil más alta sin mover el texto */
  .breadcrumbs a { display: inline-block; padding-block: .6rem; margin-block: -.6rem; }
  /* portada: menos hueco entre el botón «Ver actividad» y la lista */
  .split { gap: 1.5rem; }
  .split > .section-head { margin-bottom: 0; }
  /* titulares de los esquemas a todo el ancho */
  .pillars-head h2 { max-width: 24ch; }
  .shares-head h2 { max-width: none; font-size: 1.3rem; }
  .share > span { font-size: .85rem; }
  /* Programas UE: la tarjeta sin logotipos no empieza con un hueco */
  .eu-item > h2:first-child { margin-top: 0; }
  /* pie: teléfono y correo con zona táctil suficiente */
  .f-line a { display: inline-block; padding-block: .55rem; margin-block: -.55rem; }
  .ci a { display: inline-block; padding-block: .5rem; margin-block: -.5rem; }
}
@media (min-width: 40em) and (max-width: 63.99em) {
  /* tablet: pie en dos columnas equilibradas (sin el gran hueco bajo la primera) */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :nth-child(1) { grid-column: 1; grid-row: 1; }
  .footer-grid > :nth-child(2) { grid-column: 2; grid-row: 1 / span 3; }
  .footer-grid > :nth-child(3) { grid-column: 1; grid-row: 3; }
  .footer-grid > :nth-child(4) { grid-column: 1; grid-row: 2; }
}
@media (max-width: 47.99em) {
  /* portada: la frase de arriba en una línea y botones cómodos para el dedo */
  .hero .kicker { font-size: .74rem; letter-spacing: .14em; }
  .hero-actions .btn { min-height: 44px; font-size: .85rem; padding-inline: 1.2rem; }
  .slider-ui { gap: .75rem; }
  .slider-pause { white-space: nowrap; }
  .dot { height: 44px; }
  .dot::after { top: 20px; }
  /* Actividad: cada servicio en su recuadro y la explicación debajo */
  .act-list .tagbox { display: table; margin: 0 0 .4rem; font-size: 1.05rem; line-height: 1.4; padding: .3rem .6rem; }
  /* Empresa: icono encima del texto para que el texto use todo el ancho */
  .info-row { flex-direction: column; gap: .9rem; }
  .certs { justify-content: flex-start; }
  .info-row .btn { text-align: left; justify-content: flex-start; gap: .7rem; }
  /* formularios */
  .field label { font-size: .85rem; }
  .check input { width: 1.4rem; height: 1.4rem; margin-top: .1rem; }
}
@media (max-width: 26em) {
  .slider-pause { font-size: .75rem; }
}
@media (max-width: 22.49em) {   /* pantallas de 320 px (iPhone SE de 1.ª generación y similares) */
  .hero .kicker { font-size: .68rem; letter-spacing: .08em; }
  .slider-ui { gap: .5rem; }
  .slider-pause { letter-spacing: .04em; }
  .dots { gap: .2rem; }
  .dot { min-width: 16px; }
}
@media (max-width: 40em) {
  /* aviso de cookies: sigue compacto, pero se lee y los botones se pulsan bien */
  .cmp p { font-size: .82rem; line-height: 1.45; }
  .cmp-actions .btn { min-height: 44px; font-size: .78rem; }
}

/* ---------- Muro de logos de clientes en móvil y tablet: más grande, en una franja que se desliza con el dedo
   y que se abre ampliada en el visor al tocarla. En el ordenador la pista no existe y todo queda como estaba. */
.swipe-hint { display: none; }
@media (max-width: 63.99em) {
  .logo-strip { position: relative; }
  .logo-wall { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; cursor: zoom-in; }
  .logo-wall picture { display: block; width: clamp(760px, 170%, 1280px); }
  .logo-strip::after { content: ""; position: absolute; top: 1px; right: 1px; bottom: 1px; width: 3.5rem; border-radius: 0 var(--r) var(--r) 0; background: linear-gradient(90deg, rgba(255,255,255,0), #fff 80%); pointer-events: none; transition: opacity .3s; }
  .logo-strip.at-end::after { opacity: 0; }
  .swipe-hint { position: absolute; right: .9rem; bottom: 1.1rem; z-index: 1; display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .85rem; border-radius: 999px; background: rgba(30,29,26,.88); color: #fff; font: 700 .8rem/1.2 var(--font); letter-spacing: .02em; box-shadow: 0 4px 14px rgba(0,0,0,.25); pointer-events: none; transition: opacity .3s; }
  .swipe-hint::before { content: ""; width: 22px; height: 12px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12' fill='none' stroke='%23fff000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6h18M6 2L2 6l4 4M16 2l4 4-4 4'/%3E%3C/svg%3E") center/contain no-repeat; }
  .logo-strip.is-touched .swipe-hint { opacity: 0; }
  .motion .swipe-hint::before { animation: swipe-nudge 1.4s ease-in-out .8s 4; }
  /* visor: la imagen de los logos a buena altura y deslizable dentro */
  .lightbox.lb-wide { width: 96vw; }
  .lightbox.lb-wide .lb-figure { overflow-x: auto; overscroll-behavior-x: contain; border-radius: 6px; }
  .lightbox.lb-wide img { max-width: none; width: auto; height: min(72vh, 1012px); }
}
@keyframes swipe-nudge { 0%, 100% { transform: none; } 30% { transform: translateX(-4px); } 70% { transform: translateX(4px); } }

/* Movimiento */
.motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.motion .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .slide { transition: none; }
}
@media print { .site-header, .cmp, .site-footer, .slider-ui, .map { display: none !important; } body { background: #fff; } }

.section--dark .form--panel a:not(.btn), .section--dark .policy-body a:not(.btn) { color: var(--ink); }
.section--dark .form--panel .error-summary a { color: var(--error); }

.cmp-cat-head .cmp-switch { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; cursor: pointer; }
.cmp-switch input { width: 1.25rem; height: 1.25rem; accent-color: var(--char); }
