/* =====================================================================
   Ventanas Martinez — hoja de estilos
   Marca: azul pizarra #1F3A5F · madera #C8894B · gris aluminio #9AA5B1 · blanco roto #F7F5F2
   Tipografías: Montserrat (titulares) · Source Sans 3 (texto)
   ===================================================================== */

:root {
  --slate: #1F3A5F;
  --slate-d: #152B47;
  --slate-dd: #0E1E33;
  --slate-l: #34598A;
  --slate-ll: #6F8FB5;
  --wood: #C8894B;
  --wood-d: #9C5F26;
  --wood-dd: #7E4E22;
  --wood-l: #DDAA74;
  --wood-ll: #F3E3CD;
  --alu: #9AA5B1;
  --alu-d: #6D7987;
  --alu-l: #C3CBD4;
  --alu-ll: #E6EAEE;
  --off: #F7F5F2;
  --off-d: #EFEAE3;
  --off-dd: #E0D8CD;
  --ink: #1B2430;
  --ink-2: #4A5563;
  --white: #FFFFFF;
  --ok: #2F7A4F;
  --error: #B23B2E;

  --font-head: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 4px;
  --header-h: 84px;
  --shadow-1: 0 1px 2px rgba(14, 30, 51, .06), 0 6px 20px rgba(14, 30, 51, .06);
  --shadow-2: 0 18px 50px rgba(14, 30, 51, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--off);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--slate-l); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--wood-d); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--wood); outline-offset: 3px; }

h1, h2, h3, h4, .h1, .h2, .h3 {
  font-family: var(--font-head);
  color: var(--slate-dd);
  margin: 0 0 .6em;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}
h1, .h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
h2, .h2 { font-size: clamp(1.75rem, 3.3vw, 2.7rem); font-weight: 800; letter-spacing: -0.03em; }
h3, .h3 { font-size: 1.24rem; font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.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: 12px; top: -60px; z-index: 200; background: var(--wood); color: var(--ink); padding: 10px 16px; font-family: var(--font-head); font-weight: 700; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }
.small { font-size: .92rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: .76rem;
  letter-spacing: .17em; text-transform: uppercase; color: var(--wood-d);
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--wood-l); }

/* ------------------------------------------------------------------ botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: .9rem 1.45rem; border-radius: 3px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: .93rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--wood { background: var(--wood); color: var(--ink); }
.btn--wood:hover { background: var(--wood-l); color: var(--ink); box-shadow: 0 8px 24px rgba(200, 137, 75, .35); }
.btn--slate { background: var(--slate); color: var(--white); }
.btn--slate:hover { background: var(--slate-l); color: var(--white); }
.btn--ghost { border-color: currentColor; color: var(--slate); background: transparent; }
.btn--ghost:hover { background: var(--slate); border-color: var(--slate); color: var(--white); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .7); color: var(--white); background: rgba(255, 255, 255, .04); }
.btn--ghost-light:hover { background: var(--white); color: var(--slate-dd); border-color: var(--white); }
.btn--sm { padding: .62rem 1rem; font-size: .86rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--wood-d); text-decoration: none;
}
.link-arrow svg { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--slate); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------------ cabecera */
.header { position: sticky; top: 0; z-index: 100; background: rgba(247, 245, 242, .94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(31, 58, 95, .08); transition: background-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease); }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(14, 30, 51, .08); }

.topbar { background: var(--slate-dd); color: var(--alu-l); font-size: .84rem; transition: margin .3s var(--ease); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar__claim { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; letter-spacing: .02em; }
.topbar__claim b { color: var(--wood-l); font-weight: 800; }
.topbar__links { display: flex; gap: 22px; }
.topbar a { color: var(--alu-l); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--white); }
.topbar svg { width: 15px; height: 15px; }

.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--slate); flex: none; }
.logo svg { width: 46px; height: 46px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); }
.logo__text span { font-weight: 600; font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; }
.logo__text strong { font-weight: 800; font-size: 1.32rem; letter-spacing: .02em; text-transform: uppercase; margin-top: 4px; }
.logo:hover { color: var(--slate); }

.nav { display: flex; align-items: center; gap: 8px; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 13px; border: 0; background: none;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink); text-decoration: none; cursor: pointer; border-radius: 3px;
}
.nav__link svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav__link:hover, .nav__item:focus-within > .nav__link { color: var(--wood-d); }
.nav__link[aria-current="page"], .nav__item.is-active > .nav__link { color: var(--slate); box-shadow: inset 0 -2px 0 var(--wood); }
.nav__cta { margin-left: 12px; }

.nav__sub {
  position: absolute; top: calc(100% + 6px); left: -12px; min-width: 330px; list-style: none; margin: 0; padding: 12px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-2); border-top: 3px solid var(--wood);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub, .nav__item.is-open > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__item:hover > .nav__link svg, .nav__item.is-open > .nav__link svg { transform: rotate(180deg); }
.nav__sub a { display: block; padding: 10px 12px; border-radius: 3px; text-decoration: none; color: var(--ink); }
.nav__sub a strong { display: block; font-family: var(--font-head); font-size: .92rem; font-weight: 700; color: var(--slate-dd); }
.nav__sub a span { display: block; font-size: .88rem; color: var(--ink-2); line-height: 1.35; margin-top: 2px; }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--off); }
.nav__sub a:hover strong { color: var(--wood-d); }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: none; padding: 10px; cursor: pointer; color: var(--slate-dd); }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-close { display: none; }

/* Cabecera superpuesta en la portada */
.home .header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: rgba(255, 255, 255, .14); backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .header .topbar { background: rgba(14, 30, 51, .35); }
.home .header:not(.is-scrolled) .logo, .home .header:not(.is-scrolled) .nav__list > .nav__item > .nav__link { color: var(--white); }
.home .header:not(.is-scrolled) .nav__list > .nav__item > .nav__link:hover { color: var(--wood-l); }
.home .header:not(.is-scrolled) .nav-toggle { color: var(--white); }
.home .header.is-scrolled { background: rgba(247, 245, 242, .96); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom-color: rgba(31, 58, 95, .08); }
.home .header.is-scrolled .topbar { margin-top: -38px; }
.header.is-scrolled .topbar { margin-top: -38px; }

/* ------------------------------------------------------------------ portada: hero con vídeo */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; align-items: flex-end; color: var(--white); background: var(--slate-dd); overflow: hidden; isolation: isolate; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(14, 30, 51, .9) 0%, rgba(14, 30, 51, .66) 42%, rgba(14, 30, 51, .18) 100%),
  linear-gradient(0deg, rgba(14, 30, 51, .85) 0%, rgba(14, 30, 51, 0) 42%); }
.hero__frame { position: absolute; inset: calc(var(--header-h) + 62px) var(--gutter) 150px auto; width: min(36vw, 520px); border: 1px solid rgba(255, 255, 255, .26); pointer-events: none; z-index: -1; }
.hero__frame::before, .hero__frame::after { content: ""; position: absolute; background: rgba(255, 255, 255, .22); }
.hero__frame::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.hero__frame::after { top: 34%; left: 0; right: 0; height: 1px; }
.hero__inner { width: 100%; padding-top: calc(var(--header-h) + 110px); padding-bottom: 40px; }
.hero__content { max-width: 900px; }
.hero h1 { color: var(--white); font-size: clamp(2.5rem, 6vw, 4.9rem); margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--wood-l); }
.hero .lead { color: rgba(255, 255, 255, .86); max-width: 58ch; margin-bottom: 34px; }
.hero__facts { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, .22); }
.hero__fact { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px 4px 0; }
.hero__fact + .hero__fact { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .22); }
.hero__fact svg { width: 30px; height: 30px; color: var(--wood-l); flex: none; margin-top: 2px; }
.hero__fact strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.hero__fact span { display: block; font-size: .95rem; color: rgba(255, 255, 255, .72); line-height: 1.4; }
.hero__badge { position: absolute; right: var(--gutter); bottom: 160px; width: 148px; height: 148px; border-radius: 50%; background: var(--wood); color: var(--ink); display: grid; place-items: center; text-align: center; font-family: var(--font-head); box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
.hero__badge strong { display: block; font-size: 3.1rem; font-weight: 800; line-height: .9; letter-spacing: -0.04em; }
.hero__badge span { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.hero__badge::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 1px dashed rgba(27, 36, 48, .45); }

/* ------------------------------------------------------------------ cabecera de página interior */
.page-hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); background:
  linear-gradient(rgba(31, 58, 95, .045) 1px, transparent 1px) 0 0 / 32px 32px,
  linear-gradient(90deg, rgba(31, 58, 95, .045) 1px, transparent 1px) 0 0 / 32px 32px,
  var(--off); border-bottom: 1px solid var(--off-dd); overflow: hidden; }
.page-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero h1, .page-hero .titulo-pagina { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.page-hero--simple .page-hero__grid { grid-template-columns: 1fr; }
.page-hero--slate { background: var(--slate-dd); color: var(--white); border-bottom: 0; }
.page-hero--slate h1, .page-hero--slate .titulo-pagina { color: var(--white); }
.page-hero--slate .lead { color: rgba(255, 255, 255, .8); }
.titulo-pagina { font-family: var(--font-head); font-weight: 800; color: var(--slate-dd); letter-spacing: -0.035em; line-height: 1.06; margin: 0 0 .5em; }

.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; font-size: .88rem; color: var(--ink-2); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--alu); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--wood-d); }
.page-hero--slate .breadcrumb, .page-hero--slate .breadcrumb a { color: var(--alu-l); }

/* Marco de ventana: el motivo gráfico de la marca */
.marco { position: relative; margin: 0 0 18px; padding: 14px; background: var(--slate); border-radius: 2px; box-shadow: var(--shadow-2); }
.marco::after { content: ""; position: absolute; left: -16px; right: -16px; bottom: -16px; height: 16px; background: var(--wood); border-radius: 2px; box-shadow: 0 10px 20px rgba(14, 30, 51, .18); }
.marco img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--off-d); }
.marco--madera { background: var(--wood-d); }
.marco--madera::after { background: var(--slate); }
.marco--claro { background: var(--white); }
.marco--claro::after { background: var(--alu-l); }
.marco--sin-sombra { box-shadow: none; }
.marco__parteluz::before { content: ""; position: absolute; top: 14px; bottom: 14px; left: 50%; width: 8px; transform: translateX(-50%); background: inherit; z-index: 1; }
.marco figcaption { position: absolute; left: 28px; bottom: 28px; background: rgba(14, 30, 51, .78); color: var(--white); font-family: var(--font-head); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: 2px; }

/* ------------------------------------------------------------------ secciones */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tint { background: var(--off-d); }
.section--white { background: var(--white); }
.section--slate { background: var(--slate-dd); color: rgba(255, 255, 255, .84); }
.section--slate h2, .section--slate h3, .section--slate h4 { color: var(--white); }
.section--slate .lead, .section--slate .muted { color: rgba(255, 255, 255, .72); }
.section--slate a:not(.btn) { color: var(--wood-l); }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head--row > div { max-width: 720px; }

.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split--wide-text { grid-template-columns: 1.15fr .85fr; }
.split--reverse > :first-child { order: 2; }
.split--form { grid-template-columns: 1.25fr .75fr; align-items: start; }
.nav-open .cookies { visibility: hidden; }

/* ------------------------------------------------------------------ tarjetas */
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--off-dd); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.card__media { position: relative; background: var(--off-d); overflow: hidden; }
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { margin: 0; }
.card__body p { margin: 0; color: var(--ink-2); }
.card__body .link-arrow { margin-top: auto; padding-top: 12px; }
.card__tag { position: absolute; top: 16px; left: 16px; background: var(--white); color: var(--slate-dd); font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 2px; }
.card__num { font-family: var(--font-head); font-weight: 800; font-size: .82rem; color: var(--wood-d); letter-spacing: .14em; }
.card--link { text-decoration: none; color: inherit; }
.card--link:hover { color: inherit; }
.stretched::after { content: ""; position: absolute; inset: 0; }

/* Tarjeta de material (portada) */
.material { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--off-dd); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.material:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.material__media { background: var(--off); border-bottom: 4px solid var(--slate); }
.material--alu .material__media { border-bottom-color: var(--alu-d); }
.material--madera .material__media { border-bottom-color: var(--wood); }
.material__media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.material__body { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.material__body h3 { font-size: 1.5rem; margin: 0; }
.material__body p { margin: 0; color: var(--ink-2); }
.material__series { font-size: .9rem; color: var(--ink-2); border-top: 1px solid var(--off-dd); padding-top: 12px; margin-top: 4px; }
.material__series b { font-family: var(--font-head); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); display: block; margin-bottom: 2px; }

.mini-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; justify-content: center; }
.mini-link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--white); border: 1px solid var(--off-dd); border-radius: 40px; text-decoration: none; color: var(--slate-dd); font-family: var(--font-head); font-weight: 600; font-size: .92rem; transition: border-color .2s, color .2s; }
.mini-link svg { width: 18px; height: 18px; color: var(--wood-d); }
.mini-link:hover { border-color: var(--wood); color: var(--wood-d); }

/* ------------------------------------------------------------------ proceso */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 7), 1fr); gap: 0; counter-reset: paso; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 4%; right: 4%; height: 2px; background: repeating-linear-gradient(90deg, var(--wood) 0 10px, transparent 10px 18px); }
.steps li { position: relative; padding: 0 10px; text-align: center; counter-increment: paso; }
.steps__icon { position: relative; width: 56px; height: 56px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--white); border: 2px solid var(--slate); border-radius: 50%; color: var(--slate); }
.steps__icon svg { width: 24px; height: 24px; }
.steps li::after { content: counter(paso); position: absolute; top: -6px; left: calc(50% + 16px); width: 22px; height: 22px; border-radius: 50%; background: var(--wood); color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: .72rem; display: grid; place-items: center; }
.steps strong { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--slate-dd); line-height: 1.25; }
.steps span { display: block; font-size: .9rem; color: var(--ink-2); line-height: 1.4; margin-top: 4px; }
.section--slate .steps__icon { background: var(--slate-dd); border-color: var(--wood-l); color: var(--wood-l); }
.section--slate .steps strong { color: var(--white); }
.section--slate .steps span { color: rgba(255, 255, 255, .66); }

/* Promesa: plazo por escrito */
.promesa { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; margin-bottom: clamp(48px, 6vw, 80px); }
.promesa__cita { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; color: var(--white); margin: 0; }
.promesa__cita em { font-style: normal; color: var(--wood-l); }
.documento { position: relative; background: var(--off); color: var(--ink); border-radius: 2px; padding: 30px 32px; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); transform: rotate(-1.2deg); max-width: 520px; justify-self: end; }
.documento::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--off-dd); pointer-events: none; }
.documento__head { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 2px solid var(--slate); padding-bottom: 12px; margin-bottom: 16px; font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.documento__head svg { width: 34px; height: 34px; }
.documento dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: .95rem; }
.documento dt { color: var(--ink-2); }
.documento dd { margin: 0; font-weight: 600; }
.documento__plazo { margin-top: 18px; padding: 14px 16px; background: var(--wood-ll); border-left: 4px solid var(--wood); font-family: var(--font-head); font-weight: 700; color: var(--slate-dd); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.documento__sello { position: absolute; right: 24px; bottom: -26px; width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--wood-d); color: var(--wood-d); display: grid; place-items: center; text-align: center; font-family: var(--font-head); font-weight: 800; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-14deg); background: rgba(247, 245, 242, .9); line-height: 1.2; }

/* ------------------------------------------------------------------ cifras */
.stats { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); }
.stat { padding: 8px 28px 8px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .16); }
.stat__num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; color: var(--wood-l); }
.stat__num small { font-size: .45em; letter-spacing: 0; margin-left: 4px; }
.stat__label { display: block; margin-top: 10px; color: rgba(255, 255, 255, .78); font-size: 1rem; line-height: 1.4; }
.stats--light .stat + .stat { border-left-color: var(--off-dd); }
.stats--2 .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
.stats--light .stat__num { color: var(--slate); }
.stats--light .stat__label { color: var(--ink-2); }

/* ------------------------------------------------------------------ listas de ventajas */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.feature__icon { width: 48px; height: 48px; border-radius: 3px; background: var(--wood-ll); color: var(--wood-dd); display: grid; place-items: center; }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3, .feature h4 { margin: 2px 0 4px; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--ink-2); }
.section--slate .feature__icon { background: rgba(221, 170, 116, .14); color: var(--wood-l); }
.section--slate .feature p { color: rgba(255, 255, 255, .7); }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 50%; background: var(--wood-ll) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237E4E22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.section--slate .checklist li::before { background-color: rgba(221, 170, 116, .2); }

/* ------------------------------------------------------------------ banda CTA */
.cta-band { position: relative; background: var(--wood); color: var(--ink); overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, transparent 0 calc(100% - 1px), rgba(27, 36, 48, .12) 0) 0 0 / 120px 120px,
  linear-gradient(transparent 0 calc(100% - 1px), rgba(27, 36, 48, .12) 0) 0 0 / 120px 120px; opacity: .8; }
.cta-band .container { position: relative; display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; padding-block: clamp(48px, 6vw, 80px); }
.cta-band h2 { color: var(--ink); margin-bottom: .3em; }
.cta-band p { margin: 0; font-size: 1.12rem; max-width: 60ch; }
.cta-band__contact { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-band__tel { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; color: var(--ink); text-decoration: none; }
.cta-band__tel svg { width: 20px; height: 20px; }
.cta-band__tel:hover { color: var(--slate); }

/* ------------------------------------------------------------------ cita / aniversario */
.aniversario { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.aniversario__num { position: relative; font-family: var(--font-head); font-weight: 800; font-size: clamp(7rem, 16vw, 13rem); line-height: .8; letter-spacing: -0.07em; color: transparent; -webkit-text-stroke: 2px var(--wood); padding: 24px 32px 18px 20px; border: 2px solid var(--slate); }
.aniversario__num::after { content: ""; position: absolute; left: -14px; right: -14px; bottom: -14px; height: 12px; background: var(--wood); }
.aniversario blockquote { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.25rem, 2.3vw, 1.75rem); line-height: 1.35; color: var(--slate-dd); letter-spacing: -0.015em; }
.aniversario cite { display: block; margin-top: 16px; font-style: normal; font-size: .95rem; color: var(--ink-2); font-family: var(--font-body); }

/* ------------------------------------------------------------------ certificaciones */
.certs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cert { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; background: var(--white); border: 1px solid var(--off-dd); border-radius: var(--radius); }
.cert__sello { width: 62px; height: 62px; border-radius: 50%; border: 2px solid var(--slate); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: .64rem; color: var(--slate); text-align: center; line-height: 1.05; letter-spacing: .02em; }
.cert strong { font-family: var(--font-head); font-size: .95rem; color: var(--slate-dd); line-height: 1.25; }
.cert span { font-size: .9rem; color: var(--ink-2); line-height: 1.35; }

/* ------------------------------------------------------------------ perfiles (soluciones) */
.perfiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.perfil { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 240px; padding: 26px 22px 22px; border-radius: var(--radius); background: var(--slate); color: var(--white); text-decoration: none; overflow: hidden; transition: transform .3s var(--ease), background-color .3s var(--ease); }
.perfil::before { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border: 1px solid rgba(255, 255, 255, .18); }
.perfil::after { content: ""; position: absolute; right: 30px; top: -30px; width: 1px; height: 120px; background: rgba(255, 255, 255, .18); }
.perfil:hover { transform: translateY(-5px); background: var(--slate-l); color: var(--white); }
.perfil svg { width: 34px; height: 34px; color: var(--wood-l); }
.perfil strong { display: block; font-family: var(--font-head); font-size: 1.12rem; margin-top: 28px; line-height: 1.2; }
.perfil span { display: block; font-size: .93rem; color: rgba(255, 255, 255, .74); margin-top: 6px; line-height: 1.4; }
.perfil:nth-child(2) { background: var(--slate-d); }
.perfil:nth-child(4) { background: var(--slate-d); }

/* ------------------------------------------------------------------ productos: series */
.series { display: grid; gap: clamp(28px, 4vw, 48px); }
.serie { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(20px, 3vw, 36px); background: var(--white); border: 1px solid var(--off-dd); border-radius: var(--radius); }
.serie:nth-child(even) .serie__media { order: 2; }
.serie__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; background: var(--off); }
.serie__body h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: .3em; }
.serie__body > p { color: var(--ink-2); }
.serie__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px; }
.tag { display: inline-block; padding: 5px 11px; border-radius: 20px; background: var(--off-d); color: var(--slate-dd); font-size: .84rem; font-weight: 600; }
.tag--wood { background: var(--wood-ll); color: var(--wood-dd); }

.prestaciones { display: grid; gap: 12px; margin: 18px 0 20px; padding: 18px 20px; background: var(--off); border-radius: 3px; }
.prestacion { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 14px; font-size: .95rem; }
.prestacion span { color: var(--ink-2); }
.medidor { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.medidor i { height: 12px; border: 1.5px solid var(--slate); border-radius: 1px; background: transparent; }
.medidor i.on { background: var(--slate); }
.medidor--wood i { border-color: var(--wood-d); }
.medidor--wood i.on { background: var(--wood); }

.series-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }

/* ------------------------------------------------------------------ especificaciones y tablas */
.spec { width: 100%; border-collapse: collapse; font-size: .98rem; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.spec th, .spec td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--off-dd); vertical-align: top; }
.spec th { font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); background: var(--off-d); }
.spec tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--off-dd); border-radius: var(--radius); }

.garantia { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.garantia__item { padding: 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--off-dd); border-top: 4px solid var(--wood); }
.garantia__item strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--slate); letter-spacing: -0.04em; }
.garantia__item strong small { font-size: .4em; letter-spacing: 0; margin-left: 4px; }
.garantia__item span { display: block; margin-top: 8px; color: var(--ink-2); }

/* ------------------------------------------------------------------ línea de tiempo */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--off-dd); transform: translateX(-50%); }
.timeline li { position: relative; width: 50%; padding: 0 48px 40px 0; text-align: right; }
.timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 40px 48px; text-align: left; }
.timeline li::before { content: ""; position: absolute; top: 8px; right: -9px; width: 14px; height: 14px; background: var(--off); border: 3px solid var(--wood); border-radius: 2px; transform: rotate(45deg); }
.timeline li:nth-child(even)::before { right: auto; left: -9px; }
.timeline__year { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--slate); letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px; }
.timeline li.destacado .timeline__year { color: var(--wood-d); }
.timeline p { margin: 0; color: var(--ink-2); }

/* ------------------------------------------------------------------ valores */
.valores { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid rgba(255, 255, 255, .16); }
.valor { padding: 30px 24px; border-right: 1px solid rgba(255, 255, 255, .16); }
.valor:last-child { border-right: 0; }
.valor__n { font-family: var(--font-head); font-weight: 800; color: var(--wood-l); font-size: .82rem; letter-spacing: .14em; }
.valor h3 { margin: 14px 0 8px; font-size: 1.15rem; }
.valor p { margin: 0; font-size: .97rem; color: rgba(255, 255, 255, .72); }

/* ------------------------------------------------------------------ equipo */
.equipo { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.persona { background: var(--white); border: 1px solid var(--off-dd); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 4px; }
.persona__ventana { position: relative; width: 112px; height: 112px; margin-bottom: 26px; border: 8px solid var(--slate); background: linear-gradient(160deg, var(--slate-l), var(--slate-dd)); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; color: var(--white); letter-spacing: -0.02em; }
.persona__ventana::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; transform: translateX(-50%); background: var(--slate); opacity: .9; z-index: 0; }
.persona__ventana span { position: relative; z-index: 1; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.persona__ventana::after { content: ""; position: absolute; left: -16px; right: -16px; bottom: -18px; height: 9px; background: var(--wood); }
.persona h3 { margin: 0; font-size: 1.25rem; }
.persona__cargo { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--wood-d); margin-bottom: 10px; }
.persona p { color: var(--ink-2); font-size: .98rem; margin: 0 0 14px; }
.persona__mail { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; text-decoration: none; font-weight: 600; }
.persona__mail svg { width: 18px; height: 18px; }
.persona__desde { font-size: .86rem; color: var(--ink-2); }

/* ------------------------------------------------------------------ proyectos */
.filtros { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filtro { padding: 9px 16px; border-radius: 30px; border: 1.5px solid var(--off-dd); background: var(--white); font-family: var(--font-head); font-weight: 600; font-size: .88rem; cursor: pointer; color: var(--slate-dd); transition: all .2s; }
.filtro:hover { border-color: var(--wood); }
.filtro[aria-pressed="true"] { background: var(--slate); border-color: var(--slate); color: var(--white); }
.proyectos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.proyecto[hidden] { display: none; }
.proyecto__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; color: var(--ink-2); }
.proyecto__meta span { display: inline-flex; align-items: center; gap: 6px; }
.proyecto__meta svg { width: 15px; height: 15px; color: var(--wood-d); }

.ficha-proyecto { display: none; }
.ficha-proyecto.is-active { display: block; }
.ficha-proyecto__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ficha-proyecto__grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(28px, 4vw, 56px); margin-top: 48px; }
.ficha-datos { background: var(--white); border: 1px solid var(--off-dd); border-radius: var(--radius); padding: 26px; align-self: start; }
.ficha-datos dl { margin: 0; display: grid; gap: 14px; }
.ficha-datos dt { font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wood-d); }
.ficha-datos dd { margin: 2px 0 0; font-weight: 600; color: var(--slate-dd); }
.volver { display: flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: 26px; font-family: var(--font-head); font-weight: 700; font-size: .92rem; text-decoration: none; }
.volver svg { width: 17px; height: 17px; transform: rotate(180deg); }
.vista-detalle .listado-proyectos { display: none; }
.detalle-proyecto { display: none; }
.vista-detalle .detalle-proyecto { display: block; }

/* ------------------------------------------------------------------ empleo */
.vacantes { display: grid; gap: 16px; }
.vacante { background: var(--white); border: 1px solid var(--off-dd); border-radius: var(--radius); transition: box-shadow .2s, border-color .2s; }
.vacante[open] { box-shadow: var(--shadow-1); border-color: var(--alu-l); }
.vacante summary { list-style: none; cursor: pointer; padding: 24px 28px; display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; }
.vacante summary::-webkit-details-marker { display: none; }
.vacante__ref { font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .12em; color: var(--wood-d); }
.vacante__head, .vacante__ref { display: block; }
.vacante__titulo { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.22rem; color: var(--slate-dd); margin: 4px 0 8px; line-height: 1.25; }
.vacante__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.vacante__toggle { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--off-dd); display: grid; place-items: center; color: var(--slate); transition: transform .3s var(--ease), background .2s; grid-row: span 3; }
.vacante__toggle svg { width: 18px; height: 18px; }
.vacante[open] .vacante__toggle { transform: rotate(180deg); background: var(--off); }
.vacante__body { padding: 0 28px 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 40px; border-top: 1px solid var(--off-dd); padding-top: 24px; margin: 0 28px; padding-inline: 0; }
.vacante__body h4 { margin: 0 0 8px; color: var(--slate); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.vacante__body ul { margin: 0 0 18px; color: var(--ink-2); }
.vacante__body .full { grid-column: 1 / -1; }

.beneficios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.beneficio { padding: 24px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--off-dd); }
.beneficio svg { width: 30px; height: 30px; color: var(--wood-d); margin-bottom: 14px; }
.beneficio h3 { font-size: 1.05rem; margin-bottom: 6px; }
.beneficio p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* ------------------------------------------------------------------ formularios */
.form-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--off-dd); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-1); position: relative; }
.form-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--slate) 0 70%, var(--wood) 70%); border-radius: var(--radius) var(--radius) 0 0; }
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--slate-dd); }
.field label .opc { font-family: var(--font-body); font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--off-dd); border-radius: 3px; background: var(--off);
  font-size: 1rem; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F3A5F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--alu); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--slate); background: var(--white); box-shadow: 0 0 0 4px rgba(31, 58, 95, .1); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); background: #FCF4F2; }
.field__error { display: none; font-size: .86rem; color: var(--error); font-weight: 600; }
.field.is-invalid .field__error { display: block; }
.field input[type="file"] { padding: 10px; background: var(--white); }
.check { grid-column: 1 / -1; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .94rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--slate); }
.check.is-invalid { color: var(--error); }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; margin-top: 4px; }
.form__nota { font-size: .88rem; color: var(--ink-2); margin: 0; }
.radios { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.radios legend { margin-bottom: 8px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pill span { display: inline-block; padding: 10px 16px; border: 1.5px solid var(--off-dd); border-radius: 30px; background: var(--off); font-size: .95rem; font-weight: 600; color: var(--slate-dd); transition: all .2s; cursor: pointer; }
.radio-pill input:checked + span { background: var(--slate); border-color: var(--slate); color: var(--white); }
.radio-pill input:focus-visible + span { outline: 3px solid var(--wood); outline-offset: 2px; }

.form-ok { display: none; text-align: center; padding: clamp(20px, 4vw, 40px) 10px; }
.form-card.is-sent .form { display: none; }
.form-card.is-sent .form-ok { display: block; animation: aparecer .5s var(--ease); }
.form-ok__icon { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: var(--wood-ll); color: var(--wood-dd); display: grid; place-items: center; }
.form-ok__icon svg { width: 36px; height: 36px; }
.form-ok h3 { font-size: 1.6rem; }
.form-ok__ref { display: inline-block; margin: 6px 0 18px; padding: 8px 14px; background: var(--off); border-radius: 3px; font-family: var(--font-head); font-weight: 700; letter-spacing: .06em; color: var(--slate); }
@keyframes aparecer { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ contacto */
.sedes { display: grid; gap: 18px; }
.sede { background: var(--white); border: 1px solid var(--off-dd); border-radius: var(--radius); padding: 26px; }
.sede h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 14px; }
.sede h3 svg { width: 22px; height: 22px; color: var(--wood-d); }
.datos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .98rem; }
.datos li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.datos svg { width: 19px; height: 19px; color: var(--slate-l); margin-top: 3px; }
.datos a { text-decoration: none; font-weight: 600; }
.buzones { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.buzon { padding: 20px 22px; background: var(--white); border: 1px solid var(--off-dd); border-radius: var(--radius); border-left: 4px solid var(--slate); }
.buzon strong { display: block; font-family: var(--font-head); font-size: .98rem; color: var(--slate-dd); }
.buzon span { display: block; font-size: .92rem; color: var(--ink-2); margin: 4px 0 10px; line-height: 1.4; }
.buzon a { font-weight: 700; text-decoration: none; word-break: break-all; }
.mapa { background: var(--white); border: 1px solid var(--off-dd); border-radius: var(--radius); overflow: hidden; }
.mapa img { width: 100%; }

/* ------------------------------------------------------------------ FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--off-dd); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative; font-family: var(--font-head); font-weight: 700; color: var(--slate-dd); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 500; color: var(--wood-d); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 24px 20px; color: var(--ink-2); }

/* ------------------------------------------------------------------ avisos y prosa */
.aviso { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 22px; background: var(--white); border-left: 4px solid var(--wood); border-radius: 0 var(--radius) var(--radius) 0; }
.aviso svg { width: 24px; height: 24px; color: var(--wood-d); }
.aviso p { margin: 0; color: var(--ink-2); }
.aviso strong { color: var(--slate-dd); }
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-top: 1.8em; scroll-margin-top: 120px; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose table { margin: 1em 0 1.6em; }
.indice-legal { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.indice-legal a { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--off-dd); border-radius: 30px; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--slate-dd); background: var(--white); }
.indice-legal a:hover { border-color: var(--wood); }

.notas-normativa { font-size: .95rem; }
.notas-normativa li { margin-bottom: 6px; }

/* ------------------------------------------------------------------ procesos (documentos internos) */
.docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.6vw, 32px); }
.doc { display: grid; grid-template-columns: 170px 1fr; gap: 26px; align-items: start; padding: 26px; background: var(--white); border: 1px solid var(--off-dd); border-radius: var(--radius); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.doc:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.doc__portada { position: relative; display: block; border: 1px solid var(--off-dd); box-shadow: 0 10px 24px rgba(14, 30, 51, .14); }
.doc__portada::after { content: ""; position: absolute; left: -8px; right: -8px; bottom: -9px; height: 7px; background: var(--wood); }
.doc__portada img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; object-position: top; }
.doc__body { display: flex; flex-direction: column; gap: 8px; }
.doc__body h2 { margin: 0; }
.doc__body h2 a { color: var(--slate-dd); text-decoration: none; }
.doc__body h2 a:hover { color: var(--wood-d); }
.doc__body p { margin: 0; color: var(--ink-2); }
.doc__meta { font-size: .9rem; border-top: 1px solid var(--off-dd); padding-top: 10px; }
.doc__body .btn-row { margin-top: 8px; gap: 10px; }
@media (max-width: 1080px) { .docs { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .doc { grid-template-columns: 1fr; } .doc__portada { max-width: 200px; } .doc__body .btn-row .btn { width: auto; } }

/* ------------------------------------------------------------------ pie */
.footer { background: var(--slate-dd); color: var(--alu-l); font-size: .96rem; position: relative; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--wood) 0 25%, var(--slate-l) 25% 50%, var(--alu) 50% 75%, var(--off) 75%); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.3fr; gap: 40px; padding-block: 80px 56px; }
.footer .logo { color: var(--white); }
.footer__claim { margin: 22px 0 22px; color: var(--alu-l); max-width: 34ch; }
.footer h2 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--wood-l); margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--alu-l); text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer__sede { margin-bottom: 18px; line-height: 1.5; }
.footer__sede strong { display: block; color: var(--white); font-family: var(--font-head); font-size: .9rem; margin-bottom: 2px; }
.redes { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.redes span { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; color: var(--alu-l); }
.redes svg { width: 17px; height: 17px; }
.redes__handle { display: block; margin-top: 10px; font-family: var(--font-head); font-weight: 700; color: var(--white); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-block: 24px; font-size: .88rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__certs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer__certs span { font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .08em; padding: 5px 9px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 2px; color: var(--alu-l); }

/* ------------------------------------------------------------------ banner de cookies */
.cookies { position: fixed; left: 20px; bottom: 20px; z-index: 150; max-width: 420px; background: var(--white); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 22px 24px; border-top: 4px solid var(--wood); transform: translateY(140%); transition: transform .5s var(--ease); }
.cookies.is-visible { transform: none; }
.cookies p { margin: 0 0 14px; font-size: .94rem; color: var(--ink-2); }
.cookies strong { display: block; font-family: var(--font-head); color: var(--slate-dd); margin-bottom: 6px; }

/* ------------------------------------------------------------------ animación de entrada */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .material, .perfil, .card__media img { transition: none; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__top > :last-child { grid-column: span 3; }
  .perfiles { grid-template-columns: repeat(3, 1fr); }
  .certs { grid-template-columns: repeat(3, 1fr); }
  .valores { grid-template-columns: repeat(3, 1fr); }
  .valor:nth-child(3) { border-right: 0; }
  .valor:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, .16); }
}

@media (max-width: 1080px) {
  :root { --header-h: 72px; }
  .topbar__links a:not(:first-child) { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 120; flex-direction: column; align-items: stretch; gap: 0; padding: 22px 24px 32px; background: var(--slate-dd); overflow-y: auto; transform: translateX(105%); transition: transform .4s var(--ease); box-shadow: -20px 0 60px rgba(0, 0, 0, .3); }
  .nav.is-open { transform: none; }
  .nav-close { display: inline-grid; place-items: center; align-self: flex-end; width: 44px; height: 44px; border: 0; background: none; color: var(--white); cursor: pointer; }
  .nav-close svg { width: 26px; height: 26px; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav__link, .home .header .nav__list > .nav__item > .nav__link, .home .header.is-scrolled .nav__list > .nav__item > .nav__link { color: var(--white) !important; width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.05rem; }
  .nav__link[aria-current="page"], .nav__item.is-active > .nav__link { box-shadow: none; color: var(--wood-l) !important; }
  .nav__sub { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 12px; display: none; }
  .nav__item.is-open > .nav__sub { display: block; }
  .nav__item:hover > .nav__sub { display: none; }
  .nav__item.is-open:hover > .nav__sub { display: block; }
  .nav__sub a { padding: 8px 12px; }
  .nav__sub a strong { color: var(--white); font-weight: 600; }
  .nav__sub a span { display: none; }
  .nav__sub a:hover, .nav__sub a[aria-current="page"] { background: rgba(255, 255, 255, .06); }
  .nav__cta { margin: 26px 0 0; }
  .header, .home .header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header { background: var(--off); }
  .home .header:not(.is-scrolled) { background: transparent; }
  .home .header.is-scrolled { background: var(--off); }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(14, 30, 51, .5); z-index: 99; opacity: 0; visibility: hidden; transition: opacity .3s; }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  .hero__frame, .hero__badge { display: none; }
  .grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
  .promesa { grid-template-columns: 1fr; }
  .documento { justify-self: start; }
  .equipo { grid-template-columns: repeat(2, 1fr); }
  .proyectos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .page-hero__grid, .split, .split--wide-text, .split--form, .serie, .ficha-proyecto__grid, .cta-band .container, .aniversario { grid-template-columns: 1fr; }
  .split--reverse > :first-child, .serie:nth-child(even) .serie__media { order: 0; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hero__facts { grid-template-columns: 1fr; }
  .hero__fact + .hero__fact { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
  .hero__fact { padding: 16px 0; }
  .hero__inner { padding-top: calc(var(--header-h) + 96px); }
  .perfiles, .certs, .beneficios, .garantia { grid-template-columns: repeat(2, 1fr); }
  .valores { grid-template-columns: 1fr 1fr; }
  .valor { border-right: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
  .valor:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .16); }
  .timeline::before { left: 8px; }
  .timeline li, .timeline li:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 32px 40px; text-align: left; }
  .timeline li::before, .timeline li:nth-child(even)::before { left: 1px; right: auto; }
  .vacante__body { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; padding-block: 64px 40px; }
  .footer__top > :first-child, .footer__top > :last-child { grid-column: 1 / -1; }
  .aniversario__num { justify-self: start; }
  .prestacion { grid-template-columns: 130px 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .topbar__claim span { display: none; }
  .logo svg { width: 40px; height: 40px; }
  .logo__text strong { font-size: 1.12rem; }
  .logo__text span { font-size: .7rem; }
  .form { grid-template-columns: 1fr; }
  .grid--4, .grid--5, .perfiles, .certs, .beneficios, .garantia, .equipo, .proyectos { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 0 0 22px; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .stats--light .stat { border-bottom-color: var(--off-dd); }
  .valores { grid-template-columns: 1fr; }
  .valor:nth-child(odd) { border-right: 0; }
  .marco { padding: 9px; }
  .marco::after { left: -10px; right: -10px; bottom: -11px; height: 11px; }
  .documento { padding: 24px 22px; transform: none; }
  .cookies { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .vacante summary { padding: 20px; }
  .vacante__body { margin: 0 20px; }
  .footer__top { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .perfil { min-height: 0; }
}
