/* ==========================================================================
   HIVE PROJET — hoja de estilos única
   Negro editorial, Bebas Neue display + Work Sans texto.
   Sin frameworks, sin build. Todo lo que hay aquí se sirve tal cual.
   ========================================================================== */

/* --- Tipografías auto-alojadas (nada de Google Fonts: sin terceros) ------ */
@font-face {
  font-family: 'Bebas Neue';
  src: url('../fonts/BebasNeue-latin.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bebas Neue';
  src: url('../fonts/BebasNeue-latin-ext.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F;
}
@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/WorkSans-var.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* --- Tokens ------------------------------------------------------------- */
:root {
  --ink:        #0A0A0A;
  --ink-2:      #111111;
  --ink-3:      #191919;
  --line:       #2A2A2A;
  --paper:      #F3F1EC;
  --muted:      #9A968E;
  --accent:     #FFD300;   /* amarillo del isotipo: color de acento */
  --on-accent:  #0A0A0A;   /* texto sobre el acento (nunca blanco) */
  --danger:     #FF4034;   /* solo para errores de formulario */
  --mint:       #97CDA9;

  --display: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
  --text:    'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --sect: clamp(72px, 11vh, 140px);
  --r: 2px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--text);
  font-size: clamp(15px, .55vw + 13px, 17px);
  line-height: 1.65;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--on-accent); }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r);
}

/* --- Utilidades --------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
/* Al saltar a un ancla, dejar hueco para la cabecera fija: si no, tapa la
   primera línea del titular (y los acentos y diéresis de la primera línea). */
:where(section, [id]):target, section[id] { scroll-margin-top: 96px; }
.section { padding-block: var(--sect); position: relative; }
.section--tight { padding-block: clamp(48px, 7vh, 88px); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--on-accent); padding: 12px 20px; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Rótulo de sección: 01 / SERVICIOS */
.eyebrow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  font-family: var(--text); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  margin-bottom: clamp(24px, 4vh, 44px);
}
.eyebrow > * { min-width: 0; }
.eyebrow::after { content: ''; flex: 1 1 40px; height: 1px; background: var(--line); }
.eyebrow b { color: var(--accent); font-weight: 600; }

/* Titulares display */
.h-xl { font-family: var(--display); font-size: clamp(52px, 11vw, 150px); line-height: .88; letter-spacing: .005em; text-transform: uppercase; }
.h-lg { font-family: var(--display); font-size: clamp(38px, 6.4vw, 88px);  line-height: .92; text-transform: uppercase; }
.h-md { font-family: var(--display); font-size: clamp(28px, 3.4vw, 46px);  line-height: .98; text-transform: uppercase; }
.h-sm { font-family: var(--display); font-size: clamp(21px, 2vw, 28px);    line-height: 1;   text-transform: uppercase; letter-spacing: .01em; }

.lead { font-size: clamp(17px, 1.2vw, 21px); line-height: 1.55; color: #D8D4CC; font-weight: 350; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border: 1px solid var(--paper); border-radius: 100px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; background: transparent; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn--fill { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--fill:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--sm { padding: 11px 20px; font-size: 11.5px; }
.btn .arw { transition: transform .35s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

/* Aparición al hacer scroll.
   Solo se oculta si hay JS (html.js): sin JS el contenido se ve siempre. */
html.js .rise { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .rise { opacity: 1; transform: none; } }

/* ==========================================================================
   Cabecera
   ========================================================================== */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.hdr.stuck {
  background: rgba(10, 10, 10, .82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 34px; height: auto; }
.brand span { font-family: var(--display); font-size: 22px; letter-spacing: .06em; line-height: 1; padding-top: 3px; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.nav a {
  position: relative; text-decoration: none; font-size: 13px; font-weight: 500;
  letter-spacing: .04em; color: #CFCBC3; transition: color .3s var(--ease); padding-block: 6px;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover { color: var(--paper); }
/* El botón del menú no debe heredar el color de los enlaces de navegación:
   sobre el amarillo el texto tiene que ir en negro. */
.nav a.btn--fill { color: var(--on-accent); }
.nav a.btn--fill:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* --- Selector de idioma -------------------------------------------------
   Va con <details>, así que abre y cierra sin JavaScript.
   Vive dentro de .hdr__right, pegado al menú, para que no quede flotando
   con un hueco a su izquierda. */
.hdr__right { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); }
.flag-sprite { display: none; }
.flag {
  width: 18px; height: 12px; border-radius: 2px; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.lang { position: relative; }
.lang > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 9px;
  border: 1px solid var(--line); border-radius: 100px;
  color: #CFCBC3; transition: border-color .3s var(--ease), color .3s var(--ease);
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary b { font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.lang__chev { width: 9px; height: 6px; opacity: .7; transition: transform .3s var(--ease); }
.lang > summary:hover { border-color: #4A4A4A; color: var(--paper); }
.lang[open] > summary { border-color: var(--accent); color: var(--paper); }
.lang[open] .lang__chev { transform: rotate(180deg); }

.lang ul {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 120;
  min-width: 178px; padding: 5px; margin: 0;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 5px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
.lang li { margin: 0; }
.lang ul a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  text-decoration: none; font-size: 13.5px; color: #CFCBC3; border-radius: 3px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lang ul a span { flex: 1; }
.lang ul a b { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.lang ul a:hover { background: var(--ink-3); color: var(--paper); }
.lang ul a[aria-current="true"], .lang ul a[aria-current="true"] b { color: var(--accent); }

.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 100px; background: transparent; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger i { display: block; width: 17px; height: 1.5px; background: var(--paper); transition: transform .35s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--ink); border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 28px;
    clip-path: inset(0 0 100% 0); transition: clip-path .45s var(--ease);
  }
  .nav[data-open="true"] { clip-path: inset(0 0 0 0); }
  .nav a { font-family: var(--display); font-size: 30px; letter-spacing: .02em; padding-block: 12px; border-bottom: 1px solid var(--ink-3); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 18px; justify-content: center; font-family: var(--text); font-size: 12px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { min-height: 100svh; display: flex; align-items: flex-end; position: relative; overflow: hidden; padding-top: 76px; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; filter: grayscale(1) contrast(1.15); }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(255, 211, 0, .13), transparent 58%),
    linear-gradient(to top, var(--ink) 4%, rgba(10,10,10,.55) 45%, rgba(10,10,10,.75));
}
.hero__in { position: relative; z-index: 1; width: 100%; padding-block: clamp(48px, 9vh, 104px); }
.hero__cube {
  position: absolute; z-index: 0; right: clamp(-60px, -2vw, 0px); top: 12%;
  width: clamp(220px, 34vw, 520px); opacity: .1; pointer-events: none;
  animation: float 14s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-26px) rotate(2deg); } }

.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__sub { max-width: 46ch; margin-top: clamp(20px, 3vh, 32px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 4vh, 44px); }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: clamp(18px, 4vw, 56px);
  margin-top: clamp(40px, 6vh, 72px); padding-top: 22px; border-top: 1px solid var(--line);
}
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta b { font-family: var(--display); font-size: clamp(24px, 2.6vw, 36px); line-height: 1; }
.hero__meta small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ==========================================================================
   Valores (abeja / corazón / nube)
   ========================================================================== */
/* La banda ocupa todo el ancho, pero las columnas viven dentro de .wrap para
   que la primera arranque en la misma vertical que el resto de la página. */
.values-band { border-block: 1px solid var(--line); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.4vw, 52px); }
.values > div { padding-block: clamp(32px, 4.4vw, 56px); }
.values > div + div { border-left: 1px solid var(--line); padding-left: clamp(24px, 3.4vw, 52px); }
/* Altura fija y ancho libre: así los tres iconos pesan lo mismo y comparten
   línea de base, pese a tener proporciones muy distintas. */
.values img { height: 50px; width: auto; max-width: 104px; object-fit: contain; object-position: left bottom; margin-bottom: 22px; }
.values h3 { margin-bottom: 6px; }
.values p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
  .values { grid-template-columns: 1fr; gap: 0; }
  .values > div { padding-block: clamp(26px, 6vw, 36px); }
  .values > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}

/* ==========================================================================
   Servicios — lista tipo índice
   ========================================================================== */
.svc { border-top: 1px solid var(--line); }
.svc li { border-bottom: 1px solid var(--line); }
.svc a, .svc__row {
  display: flex; align-items: baseline; gap: clamp(14px, 3vw, 40px);
  padding: clamp(18px, 2.6vw, 30px) 0; text-decoration: none; position: relative;
  transition: padding-left .45s var(--ease), color .35s var(--ease);
}
.svc li:hover a, .svc li:hover .svc__row { padding-left: clamp(10px, 1.6vw, 24px); }
.svc em { font-style: normal; font-family: var(--text); font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--accent); min-width: 34px; }
.svc h3 { flex: 1; transition: color .35s var(--ease); }
.svc li:hover h3 { color: var(--accent); }
.svc p { flex: 0 1 34ch; color: var(--muted); font-size: 14.5px; margin: 0; }
@media (max-width: 860px) { .svc a, .svc__row { flex-wrap: wrap; } .svc p { flex-basis: 100%; padding-left: 48px; } }

/* ==========================================================================
   Sobre nosotros
   ========================================================================== */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.about__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.5), transparent 55%);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags li {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 100px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #CFCBC3;
}
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about__media { order: -1; } .about__media img { aspect-ratio: 16 / 10; } }

/* ==========================================================================
   Proyectos
   ========================================================================== */
.proj { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(6, 1fr); }
.card {
  position: relative; overflow: hidden; background: var(--ink-2);
  border: 1px solid var(--line); min-height: clamp(320px, 46vh, 460px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(22px, 2.6vw, 36px); text-decoration: none; isolation: isolate;
  transition: border-color .4s var(--ease), transform .5s var(--ease);
}
.card--wide { grid-column: span 4; }
.card--half { grid-column: span 3; }
.card--third { grid-column: span 2; }
.card:hover { border-color: #4A4A4A; }
.card__bg { position: absolute; inset: 0; z-index: -2; }
.card__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05); opacity: .48;
  transform: scale(1.02);
  transition: filter .7s var(--ease), opacity .7s var(--ease), transform 1.1s var(--ease);
}
.card:hover .card__bg img { filter: grayscale(0) contrast(1); opacity: .66; transform: scale(1.07); }
.card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(8,8,8,.94) 6%, rgba(8,8,8,.55) 46%, rgba(8,8,8,.2));
}
.card__logo { height: 40px; width: auto; object-fit: contain; object-position: left bottom; margin-bottom: 14px; }
.card__kicker { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #A9A59D; margin-bottom: 12px; }
.card h3 { margin-bottom: 10px; }
.card p { color: #C9C5BD; font-size: 15px; max-width: 44ch; }
.card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); text-decoration: none; align-self: flex-start; }
a.card__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.card__link .arw { transition: transform .35s var(--ease); }
.card:hover .card__link .arw { transform: translateX(4px); }

/* Ficha desplegable con el texto largo de cada proyecto */
.more { margin-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.more > summary {
  list-style: none; cursor: pointer; padding-top: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #CFCBC3;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: '+'; font-family: var(--display); font-size: 24px; line-height: 1; color: var(--accent); transition: transform .35s var(--ease); }
.more[open] > summary::after { transform: rotate(45deg); }
.more__body { padding-top: 14px; font-size: 14.5px; color: #B9B5AD; }
.more__body p { margin-bottom: .9em; }

@media (max-width: 1000px) {
  .proj { grid-template-columns: repeat(2, 1fr); }
  .card--wide, .card--half, .card--third { grid-column: span 2; }
}
@media (max-width: 620px) { .proj { grid-template-columns: 1fr; } .card--wide, .card--half, .card--third { grid-column: span 1; } }

/* ==========================================================================
   Facts & figures
   ========================================================================== */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts > div { background: var(--ink); padding: clamp(26px, 3.4vw, 44px); }
.facts b { display: block; font-family: var(--display); font-size: clamp(38px, 5vw, 66px); line-height: .95; color: var(--paper); }
.facts b i { font-style: normal; color: var(--accent); }
.facts span { display: block; margin-top: 10px; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ==========================================================================
   Franja de llamada
   ========================================================================== */
.band-wrap { border-block: 1px solid var(--line); background: var(--ink-2); }
.band {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(20px, 4vw, 60px); flex-wrap: wrap;
  padding-block: clamp(40px, 6vh, 72px);
}
.band h2 { max-width: 20ch; }
.band .btn { flex-shrink: 0; }

/* ==========================================================================
   Dos accesos (proyección / eventos)
   ========================================================================== */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } }

/* ==========================================================================
   Partners
   ========================================================================== */
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 72px); }
.partners img {
  height: clamp(26px, 3vw, 38px); width: auto; object-fit: contain;
  opacity: .48; transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.partners img:hover { opacity: 1; transform: translateY(-2px); }

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.contact__direct { margin-top: 32px; display: grid; gap: 2px; }
.contact__direct a {
  display: flex; align-items: center; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--line); text-decoration: none;
  font-size: clamp(16px, 1.4vw, 20px); transition: color .3s var(--ease), padding-left .4s var(--ease);
}
.contact__direct a:first-child { border-top: 1px solid var(--line); }
.contact__direct a:hover { color: var(--accent); padding-left: 10px; }
.contact__direct svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .6; }

/* Formulario */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.field label .req { color: var(--danger); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15.5px; color: var(--paper);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; width: 100%;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 132px; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #3C3C3C; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: var(--ink-3); }
.field input::placeholder, .field textarea::placeholder { color: #6A665F; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 20px center, right 14px center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }

.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.consent a { color: #CFCBC3; }

/* trampa antispam: invisible para personas, presente para bots */
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.form__msg { font-size: 14.5px; padding: 14px 16px; border-radius: var(--r); display: none; }
.form__msg[data-state="ok"]   { display: block; background: rgba(151, 205, 169, .12); border: 1px solid var(--mint); color: var(--mint); }
.form__msg[data-state="err"]  { display: block; background: rgba(255, 64, 52, .1); border: 1px solid var(--danger); color: #FF8078; }
button[disabled] { opacity: .55; cursor: progress; }

/* ==========================================================================
   Pie
   ========================================================================== */
.ftr { border-top: 1px solid var(--line); background: var(--ink-2); }
.ftr__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding-block: clamp(48px, 7vh, 80px); }
@media (max-width: 820px) { .ftr__top { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ftr__top { grid-template-columns: 1fr; } }
.ftr h4 { font-size: 11.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-family: var(--text); }
.ftr ul li { margin-bottom: 9px; }
.ftr a { text-decoration: none; font-size: 14.5px; color: #CFCBC3; transition: color .3s var(--ease); }
.ftr a:hover { color: var(--accent); }
.ftr__brand img { width: 42px; margin-bottom: 16px; }
.ftr__brand p { font-size: 14.5px; color: var(--muted); max-width: 34ch; }

/* Bloque Kit Digital / NextGenerationEU */
/* Aviso de financiación europea: bloque centrado, para que no quede
   descolgado a la izquierda con medio contenedor vacío a la derecha. */
.kd { border-top: 1px solid var(--line); padding-block: clamp(30px, 4.5vh, 44px); text-align: center; }
.kd__logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(16px, 2.6vw, 34px); margin-bottom: 20px;
}
.kd__logos img { height: clamp(30px, 3.4vw, 44px); width: auto; object-fit: contain; background: #fff; padding: 5px 8px; border-radius: var(--r); }
.kd p { font-size: 11.5px; line-height: 1.65; color: #6E6A63; max-width: 96ch; margin-inline: auto; text-wrap: balance; }

.ftr__legal {
  border-top: 1px solid var(--line); padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: space-between;
}
.ftr__legal nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.ftr__legal, .ftr__legal a { font-size: 12.5px; color: #6E6A63; }

/* ==========================================================================
   Páginas interiores (legales y contenido)
   ========================================================================== */
.page-hero { padding-top: calc(76px + clamp(48px, 9vh, 96px)); padding-bottom: clamp(28px, 5vh, 52px); border-bottom: 1px solid var(--line); }
.crumb { display: flex; gap: 10px; align-items: center; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--accent); }

/* La medida de lectura se limita en los hijos, no en el contenedor: así el
   texto queda alineado a la izquierda con el titular de la página. */
.prose > * { max-width: 74ch; }
.prose h2 { font-family: var(--display); font-size: clamp(26px, 3vw, 38px); text-transform: uppercase; line-height: 1; margin: clamp(38px, 5vh, 58px) 0 16px; }
.prose h3 { font-family: var(--display); font-size: clamp(20px, 2.1vw, 26px); text-transform: uppercase; line-height: 1.05; margin: 32px 0 12px; color: #E6E2DA; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: #BFBBB3; font-size: 15.5px; line-height: 1.75; }
.prose ul { list-style: none; margin: 0 0 1.2em; padding: 0; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.prose ul li::before { content: ''; position: absolute; left: 2px; top: .72em; width: 6px; height: 1px; background: var(--accent); }
.prose a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); transition: text-decoration-color .3s; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose strong { color: var(--paper); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: clamp(36px, 5vh, 56px) 0; }

.datacard { border: 1px solid var(--line); background: var(--ink-2); padding: clamp(20px, 2.6vw, 30px); margin: 24px 0; }
.datacard dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; margin: 0; }
.datacard dt { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.datacard dd { margin: 0; font-size: 15.5px; color: #E6E2DA; }
@media (max-width: 560px) { .datacard dl { grid-template-columns: 1fr; gap: 2px 0; } .datacard dd { margin-bottom: 12px; } }

.toc { border: 1px solid var(--line); padding: clamp(18px, 2.4vw, 26px); margin-bottom: clamp(32px, 5vh, 48px); }
.toc h4 { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-family: var(--text); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 7px; font-size: 14.5px; }
.toc a { text-decoration: none; color: #CFCBC3; }
.toc a:hover { color: var(--accent); }
