/* Lake Forest Company — sitio web
   Identidad de marca LFC v1.0 (nov. 2026). Mobile-first. Sin dependencias externas. */

/* ---------- Fuentes (subconjuntos, SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("../fonts/montserrat-subset.woff2?v=20261201") format("woff2-variations"),
       url("../fonts/montserrat-subset.woff2?v=20261201") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/nunito-sans-subset.woff2?v=20261201") format("woff2-variations"),
       url("../fonts/nunito-sans-subset.woff2?v=20261201") format("woff2");
}

/* ---------- Variables de marca ---------- */
:root {
  --lfc-azul: #0B2545;
  --lfc-verde: #1B4332;
  --lfc-rojo: #B21E2B;
  --lfc-gris: #8E9AAB;
  --lfc-gris-claro: #EEF1F4;
  --lfc-blanco: #FFFFFF;
  --lfc-texto: #3D4A5C;

  /* Derivados técnicos */
  --lfc-azul-oscuro: #071B33;
  --lfc-rojo-hover: #951924;
  --lfc-borde: rgba(142, 154, 171, 0.42);
  --lfc-verde-tinte: #E4EDE8;
  --on-dark: rgba(255, 255, 255, 0.86);
  --on-dark-soft: rgba(255, 255, 255, 0.72);
  --on-dark-line: rgba(255, 255, 255, 0.16);

  --font-titulos: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-texto: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: 20px;
  --gap: 20px;
  --radius: 14px;
  --radius-sm: 8px;
  --section-y: 72px;
  --header-h: 68px;
  --shadow: 0 1px 2px rgba(11, 37, 69, 0.06), 0 10px 30px rgba(11, 37, 69, 0.07);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-texto);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--lfc-texto);
  background: var(--lfc-blanco);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--font-titulos); color: var(--lfc-azul); line-height: 1.2; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
address { font-style: normal; }
svg, img, video { display: block; flex-shrink: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--lfc-azul); outline-offset: 3px; border-radius: 4px; }
.topbar :focus-visible, .hero :focus-visible, .method :focus-visible,
.purpose :focus-visible, .site-footer :focus-visible { outline-color: var(--lfc-blanco); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: var(--gutter); top: 10px; z-index: 100;
  padding: 10px 16px; background: var(--lfc-blanco); color: var(--lfc-azul);
  font-family: var(--font-titulos); font-weight: 700; border-radius: var(--radius-sm);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Imágenes de fondo de sección */
.hero__media, .method__media, .purpose__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__media video, .method__media img, .purpose__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Elementos comunes ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-titulos); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--lfc-verde);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--lfc-rojo); }
.eyebrow--light { color: var(--lfc-blanco); }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--lfc-gris-claro); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-title {
  margin-top: 12px;
  font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  letter-spacing: -0.01em; text-wrap: balance;
}
.section-head--light .section-title { color: var(--lfc-blanco); }
.section-intro { margin-top: 14px; font-size: 1.0625rem; }
.lead { font-size: 1.125rem; font-weight: 600; color: var(--lfc-azul); }

.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--lfc-verde-tinte); color: var(--lfc-verde);
  font-family: var(--font-titulos); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
}

/* ---------- Botones ---------- */
.actions { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border-radius: var(--radius-sm);
  font-family: var(--font-titulos); font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.25; text-align: center;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 0.82rem; }
.btn__icon { width: 20px; height: 20px; fill: currentColor; }
.btn__icon--line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { background: var(--lfc-rojo); color: var(--lfc-blanco); border-color: var(--lfc-rojo); }
.btn--primary:hover { background: var(--lfc-rojo-hover); border-color: var(--lfc-rojo-hover); }
.hero .btn--primary { border-color: rgba(255, 255, 255, 0.35); }
.btn--ghost { color: var(--lfc-blanco); border-color: rgba(255, 255, 255, 0.75); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--lfc-blanco); }
.btn--outline { color: var(--lfc-azul); border-color: var(--lfc-azul); }
.btn--outline:hover { background: var(--lfc-azul); color: var(--lfc-blanco); }

/* ---------- Redes sociales ---------- */
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social__link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32); color: var(--lfc-blanco);
  transition: background-color .15s ease, border-color .15s ease;
}
.social__link svg { width: 16px; height: 16px; fill: currentColor; }
.social__link:hover { background: var(--lfc-rojo); border-color: var(--lfc-rojo); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--lfc-azul-oscuro); color: var(--lfc-blanco); font-size: 0.85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding-block: 4px; }
.social--top { gap: 4px; }
.topbar__wa {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 5px 14px 5px 8px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-family: var(--font-titulos); font-weight: 600; font-size: 0.82rem; text-decoration: none;
  transition: background-color .15s ease;
}
.topbar__wa svg { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: #1FA855; fill: var(--lfc-blanco); }
.topbar__wa:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--lfc-blanco); border-bottom: 1px solid var(--lfc-borde);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(11, 37, 69, 0.08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: block; padding-block: 8px; }
.brand img { width: 180px; height: auto; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0; border-radius: var(--radius-sm);
  border: 1px solid var(--lfc-borde); background: var(--lfc-blanco); color: var(--lfc-azul); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-toggle__close { display: none; }
.is-open .nav-toggle__open { display: none; }
.is-open .nav-toggle__close { display: block; }

.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-nav a:not(.btn) {
  font-family: var(--font-titulos); font-size: 0.9rem; font-weight: 600; color: var(--lfc-azul);
  text-decoration: none; padding-block: 8px; border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--lfc-rojo); }
.site-nav { display: flex; align-items: center; gap: 24px; }

/* Menú colapsable (solo con JavaScript) */
@media (max-width: 1079.98px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px; background: var(--lfc-blanco);
    border-bottom: 1px solid var(--lfc-borde); box-shadow: 0 12px 24px rgba(11, 37, 69, 0.1);
  }
  .js .is-open .site-nav { display: flex; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav a:not(.btn) { display: block; padding-block: 12px; border-bottom: 1px solid var(--lfc-borde); }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .site-nav { flex-wrap: wrap; }
}

/* ---------- Cabecera principal ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--lfc-blanco); overflow: hidden;
  background: linear-gradient(125deg, var(--lfc-azul-oscuro) 0%, var(--lfc-azul) 52%, #133A3A 82%, var(--lfc-verde) 100%);
}
/* Fondo de marca: símbolo LFC y silueta corporativa (decorativos) */
.hero__media { overflow: hidden; }
.hero .hero__media img { width: auto; height: auto; object-fit: initial; }
.hero__symbol {
  position: absolute; right: -18%; top: 50%; transform: translateY(-50%);
  height: 92% !important; max-height: 560px; opacity: 0.09;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 15% 40%, rgba(7, 27, 51, 0.55), transparent 65%);
}
.hero__inner { position: relative; z-index: 1; padding-block: 72px 80px; }
.hero__title {
  max-width: 17ch; margin-top: 18px;
  font-weight: 800; font-size: clamp(2rem, 1.25rem + 3.2vw, 3.4rem);
  line-height: 1.1; letter-spacing: -0.015em; color: var(--lfc-blanco); text-wrap: balance;
}
.hero__lead { max-width: 58ch; margin-top: 22px; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.2rem); color: var(--on-dark); }
.hero__proof {
  margin-top: 32px; padding-left: 14px; border-left: 3px solid var(--lfc-rojo);
  font-family: var(--font-titulos); font-size: 0.85rem; font-weight: 600; color: var(--on-dark);
}

/* ---------- Clientes ---------- */
.clients { background: var(--lfc-blanco); border-bottom: 1px solid var(--lfc-borde); }
.clients__inner { padding-block: 36px; text-align: center; }
.clients__title {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lfc-texto);
}
/* Carrusel continuo de clientes (derecha a izquierda) */
.marquee {
  position: relative; margin-top: 26px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: lfc-marquee 38s linear infinite; }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track,
.clients.is-paused .marquee__track { animation-play-state: paused; }
.clients__list { display: flex; align-items: flex-start; gap: 56px; padding-right: 56px; }
.clients__list .client { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 120px; text-align: center; }
@keyframes lfc-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.marquee__toggle {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; padding: 6px 12px;
  border: 1px solid var(--lfc-borde); border-radius: 999px; background: var(--lfc-blanco); color: var(--lfc-texto);
  font-family: var(--font-titulos); font-size: 0.72rem; font-weight: 600; cursor: pointer;
}
.marquee__toggle[hidden] { display: none; }
.marquee__toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.marquee__icon-play { display: none; }
.clients.is-paused .marquee__icon-pause { display: none; }
.clients.is-paused .marquee__icon-play { display: block; fill: currentColor; }
.marquee__toggle:hover { border-color: var(--lfc-azul); color: var(--lfc-azul); }
.client { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 120px; }
.client__mark { display: flex; align-items: center; justify-content: center; height: 60px; }
.client__logo { height: 56px; width: auto; filter: grayscale(1); opacity: 0.75; transition: filter .2s ease, opacity .2s ease; }
.client__logo--wide { height: 38px; }
.client__logo--round { height: 60px; }
.client__logo--tall { height: 60px; }
.client:hover .client__logo { filter: none; opacity: 1; }
.client__wordmark { font-family: var(--font-titulos); font-size: 1.25rem; font-weight: 800; letter-spacing: 0.02em; color: #4F5B6D; }
.client__flag { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(11, 37, 69, 0.12); }
.client__name { font-size: 0.75rem; font-weight: 600; line-height: 1.3; color: var(--lfc-texto); }
.proj__client svg { height: 13px; width: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(11, 37, 69, 0.12); }

/* ---------- Quiénes somos ---------- */
.about__inner { display: grid; gap: 40px; align-items: center; }
.about__text .section-title { max-width: 18ch; }
.about__text p { max-width: 62ch; }
.about__media { position: relative; }
.about__media::before {
  content: ""; position: absolute; inset: 18px -12px -12px 18px; z-index: 0;
  border-radius: var(--radius); background: var(--lfc-azul);
}
.about__media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.about__text .lead { margin-top: 20px; }
.about__text > p:not(.eyebrow):not(.lead) { margin-top: 14px; }

/* ---------- Servicios ---------- */
.svc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.svc {
  flex: 0 0 100%; display: flex; flex-direction: column;
  background: var(--lfc-blanco); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.svc__media { position: relative; }
.svc__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.svc__num {
  position: absolute; left: 20px; bottom: -18px;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px;
  background: var(--lfc-azul); color: var(--lfc-blanco); border: 3px solid var(--lfc-blanco);
  font-family: var(--font-titulos); font-weight: 800; font-size: 0.95rem;
}
.svc__body { padding: 34px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.svc__title { font-size: 1.15rem; font-weight: 700; }
.svc__lead { margin-top: 10px; font-size: 0.97rem; }
.svc__list { margin-top: 16px; display: grid; gap: 8px; }
.svc__list li { position: relative; padding-left: 20px; font-size: 0.93rem; line-height: 1.45; }
.svc__list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 2px; background: var(--lfc-verde); }
.svc__sub {
  margin-top: 18px; padding: 12px 14px; border-left: 3px solid var(--lfc-verde);
  background: var(--lfc-gris-claro); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.9rem; line-height: 1.5;
}
.svc__sub strong { color: var(--lfc-verde); font-family: var(--font-titulos); }

/* ---------- Cómo trabajamos ---------- */
.method { position: relative; isolation: isolate; color: var(--lfc-blanco); padding-block: var(--section-y); overflow: hidden; }
.method::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(120deg, rgba(27, 67, 50, 0.95), rgba(11, 37, 69, 0.92)); }
.method__inner { position: relative; z-index: 1; }
.steps { display: grid; gap: 20px; counter-reset: paso; }
.step {
  position: relative; padding: 28px 24px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.18);
}
.step__num {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-titulos); font-size: 2.6rem; font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.4);
}
.step__icon { width: 40px; height: 40px; fill: none; stroke: var(--lfc-blanco); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step__title { margin-top: 16px; font-size: 1.15rem; color: var(--lfc-blanco); }
.step p { margin-top: 10px; color: var(--on-dark); font-size: 0.97rem; }
.method__close { margin-top: 28px; max-width: 60ch; font-family: var(--font-titulos); font-weight: 600; color: var(--on-dark); }

/* ---------- Experiencia ---------- */
.work-grid { display: grid; gap: var(--gap); }
.proj { display: flex; flex-direction: column; background: var(--lfc-blanco); border: 1px solid var(--lfc-borde); border-radius: var(--radius); overflow: hidden; }
.proj__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* Portada con el logo de la entidad */
.proj__media--logo {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9;
  background: var(--lfc-blanco); border-bottom: 3px solid var(--lfc-azul);
}
.proj__media--logo .proj__logo { width: auto; height: auto; max-height: 46%; max-width: 46%; aspect-ratio: auto; object-fit: contain; }
.proj__media--logo .proj__logo--wide { max-width: 64%; max-height: 32%; }
.proj__media--logo .proj__logo--tall { max-height: 62%; }
.proj__wordmark { font-family: var(--font-titulos); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 900; letter-spacing: 0.02em; color: #4F5B6D; }
.proj__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.proj__client {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-titulos); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lfc-azul);
}
.proj__client svg { width: 20px; }
.proj__title { margin-top: 10px; font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.proj__body > p:not(.proj__client):not(.proj__meta) { margin-top: 10px; font-size: 0.93rem; line-height: 1.55; }
.proj__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: auto; padding-top: 16px; font-size: 0.85rem; font-weight: 600; color: var(--lfc-texto); }

/* ---------- Propósito ---------- */
.purpose { position: relative; isolation: isolate; color: var(--lfc-blanco); padding-block: var(--section-y); overflow: hidden; }
.purpose::after { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(11, 37, 69, 0.9); }
.purpose__inner { position: relative; z-index: 1; }
.purpose__quote { margin-top: 18px; max-width: 900px; }
.purpose__quote p {
  font-family: var(--font-titulos); font-weight: 700; font-size: clamp(1.45rem, 1rem + 2vw, 2.3rem);
  line-height: 1.4; color: var(--lfc-blanco); text-wrap: balance;
}
.mv { display: grid; gap: 20px; margin-top: 40px; }
.mv__item { padding: 24px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); }
.mv__item h3 { font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lfc-blanco); }
.mv__item p { margin-top: 10px; color: var(--on-dark); font-size: 0.97rem; }

/* ---------- Valores ---------- */
.values__list { display: grid; gap: 16px; }
.value { padding: 24px 20px; border-radius: var(--radius); border: 1px solid var(--lfc-borde); text-align: center; }
.value svg {
  width: 56px; height: 56px; margin-inline: auto; padding: 14px; border-radius: 50%;
  background: var(--lfc-verde-tinte); fill: none; stroke: var(--lfc-verde); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.value h3 { margin-top: 14px; font-size: 1.05rem; }
.value p { margin-top: 8px; font-size: 0.92rem; line-height: 1.5; }

/* ---------- Contacto ---------- */
.contact__inner { display: grid; gap: 36px; align-items: center; }
.contact__text { margin-top: 14px; font-size: 1.0625rem; max-width: 46ch; }
.contact__card { padding: 28px 22px; border-radius: var(--radius); background: var(--lfc-blanco); box-shadow: var(--shadow); }
.contact__intro .details { margin-top: 24px; border-top: 1px solid var(--lfc-borde); }
.contact__inner { align-items: start; }
.details__row { display: grid; gap: 4px; padding-block: 18px; border-bottom: 1px solid var(--lfc-borde); }
.details__row:last-child { border-bottom: 0; }
.details__label { display: flex; align-items: center; gap: 10px; font-family: var(--font-titulos); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.details__icon { width: 18px; height: 18px; color: var(--lfc-verde); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.details__icon--fill { fill: currentColor; stroke: none; }
.details__value { font-size: 1.05rem; line-height: 1.45; overflow-wrap: anywhere; }
.details__value a {
  display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-titulos); font-weight: 700; color: var(--lfc-azul);
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--lfc-borde); text-underline-offset: 5px;
}
.details__value a:hover { color: var(--lfc-verde); text-decoration-color: currentColor; }

/* ---------- Formulario ---------- */
.form__title { font-size: 1.25rem; font-weight: 700; }
.form__note { margin-top: 6px; font-size: 0.85rem; }
.form__grid { display: grid; gap: 16px; margin-top: 20px; }
.field label { display: block; margin-bottom: 6px; font-family: var(--font-titulos); font-size: 0.8rem; font-weight: 600; color: var(--lfc-azul); }
.req { color: var(--lfc-rojo); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: inherit; font-size: 1rem; color: var(--lfc-azul);
  background: var(--lfc-blanco); border: 1px solid #66748A; border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 128px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--lfc-azul) 50%), linear-gradient(135deg, var(--lfc-azul) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lfc-azul); box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.18); }
.field [aria-invalid="true"], .consent [aria-invalid="true"] { border-color: var(--lfc-rojo); box-shadow: 0 0 0 3px rgba(178, 30, 43, 0.14); }
.field__error { min-height: 0; margin-top: 6px; font-size: 0.82rem; font-weight: 600; color: var(--lfc-rojo); }
.field__error:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin-top: 20px; padding: 14px; border-radius: var(--radius-sm); background: var(--lfc-gris-claro); }
.consent input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--lfc-azul); }
.consent label { font-size: 0.88rem; line-height: 1.5; }
.consent label a { color: var(--lfc-azul); font-weight: 700; text-underline-offset: 3px; }
.consent .field__error { grid-column: 2; }
.form__submit { width: 100%; margin-top: 20px; }
.form__submit[disabled] { opacity: .7; cursor: progress; }
.form__status { margin-top: 14px; font-weight: 600; font-size: 0.95rem; }
.form__status:empty { display: none; }
.form__status.is-ok { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--lfc-verde-tinte); color: var(--lfc-verde); }
.form__status.is-error { padding: 12px 14px; border-radius: var(--radius-sm); background: #FBEAEC; color: #8C1722; }
@media (min-width: 640px) {
  .contact__card { padding: 36px 32px; }
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .form__submit { width: auto; }
}

/* ---------- Página de política ---------- */
.legal { padding-block: 48px 80px; }
.legal__inner { max-width: 820px; }
.legal h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); font-weight: 800; }
.legal__meta { margin-top: 10px; font-size: 0.9rem; }
.legal h2 { margin-top: 40px; font-size: 1.25rem; font-weight: 700; }
.legal h3 { margin-top: 24px; font-size: 1.02rem; font-weight: 700; }
.legal p, .legal li { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-top: 8px; }
.legal a { color: var(--lfc-azul); font-weight: 700; text-underline-offset: 3px; }
.legal__box { margin-top: 20px; padding: 18px 20px; border-left: 4px solid var(--lfc-verde); background: var(--lfc-gris-claro); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.legal__box p:first-child { margin-top: 0; }
.legal__toc { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--lfc-borde); border-radius: var(--radius-sm); }
.legal__toc ol { margin-top: 6px; columns: 2 220px; }
.legal__toc li { margin-top: 4px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-titulos); font-size: 0.85rem; font-weight: 700; color: var(--lfc-azul); text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--lfc-azul); color: var(--on-dark); font-size: 0.92rem; }
.site-footer:has(.site-footer__art) { position: relative; overflow: hidden; isolation: isolate; }
.site-footer__art { position: absolute; z-index: -1; right: -60px; bottom: 0; width: min(980px, 95%); height: auto; opacity: 0.07; pointer-events: none; }
.footer-top { padding-block: 48px 28px; border-bottom: 1px solid var(--on-dark-line); }
.footer-top img { width: 200px; height: auto; }
.footer-top p { margin-top: 12px; color: var(--on-dark-soft); }
.footer-top__lines { font-family: var(--font-titulos); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-top__lines span { color: var(--lfc-rojo-claro, #E2626C); margin-inline: 4px; }
.footer-cols { display: grid; gap: 32px; padding-block: 36px; }
.footer-col h2 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lfc-blanco); }
.footer-col ul:not(.social) { margin-top: 8px; display: grid; gap: 0; }
.footer-col ul:not(.social) a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-contact li { min-height: 44px; padding-block: 2px; }
.footer-contact li svg { margin-top: 14px !important; }
.footer-contact li > a, .footer-contact li > span { display: inline-flex; align-items: center; min-height: 44px; }
.footer-col a { color: var(--on-dark); text-decoration: none; }
.footer-col a:hover { color: var(--lfc-blanco); text-decoration: underline; text-underline-offset: 4px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact li svg { width: 16px; height: 16px; margin-top: 4px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-contact li svg.fill { fill: currentColor; stroke: none; }
.social--footer { margin-top: 20px; gap: 10px; }
.social--footer .social__link { width: 44px; height: 44px; border-color: var(--lfc-rojo); }
.social--footer .social__link svg { width: 16px; height: 16px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  padding-block: 20px; border-top: 1px solid var(--on-dark-line); font-size: 0.82rem; color: var(--on-dark-soft);
}

/* ---------- Breakpoints ---------- */
@media (min-width: 540px) {
  .actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 400px) {
  .btn { font-size: 0.88rem; letter-spacing: 0.02em; padding-inline: 16px; }
  .topbar__wa { font-size: 0.78rem; }
  .social--top { gap: 6px; }
}
@media (min-width: 640px) {
  :root { --gutter: 32px; --section-y: 88px; }
  .svc { flex-basis: calc((100% - var(--gap)) / 2); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .values__list { grid-template-columns: repeat(2, 1fr); }
  .mv { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .brand img { width: 200px; }
  .hero__inner { padding-block: 96px 104px; }
}
@media (min-width: 900px) {
  .about__inner { grid-template-columns: 5fr 6fr; gap: 64px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .contact__inner { grid-template-columns: 5fr 6fr; gap: 64px; }
  .values__list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1080px) {
  :root { --gutter: 40px; --gap: 24px; --section-y: 104px; --header-h: 76px; }
  .svc { flex-basis: calc((100% - 2 * var(--gap)) / 3); }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .values__list { grid-template-columns: repeat(5, 1fr); }
  .footer-cols { grid-template-columns: 0.9fr 1.3fr 1fr 1.4fr; gap: 40px; }
  .brand img { width: 220px; }
  .hero { min-height: min(760px, calc(100vh - 46px - var(--header-h))); display: flex; align-items: center; }
  .hero__inner { padding-block: 112px; }
  .hero__symbol { right: 5%; opacity: 0.12; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .hero__media video { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; animation: none; justify-content: center; }
  .marquee__track .clients__list[aria-hidden="true"], .marquee__toggle { display: none !important; }
  .marquee__track .clients__list { flex-wrap: wrap; justify-content: center; gap: 28px 40px; padding-right: 0; }
}

/* ---------- Alto contraste forzado ---------- */
@media (forced-colors: active) {
  .btn, .svc, .proj, .value, .step, .social__link { border: 1px solid CanvasText; }
}

/* Utilidades de la página legal (antes estilos en línea; permiten una CSP sin 'unsafe-inline') */
.legal__toc-title { margin-top: 0; font-size: 1rem; }
.legal__back { margin-top: 40px; }
.footer-col ul:not(.social) a { min-width: 44px; }
.step p, .step__title { max-width: 62ch; }
.footer-credit { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.footer-credit:hover { color: var(--lfc-blanco); }

/* ---------- Intro del logotipo (una vez por sesión; ver assets/js/intro-gate.js e intro.js) ---------- */
.intro { display: none; }
.intro-on .intro {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  background-color: #F4F6F9;
  background-image: linear-gradient(rgba(11, 37, 69, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 37, 69, 0.07) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center;
  cursor: pointer;
  /* Seguro: si el script no llegara a ejecutarse, la intro se retira sola a los 4,5 s */
  animation: intro-failsafe 0.4s ease 4.5s forwards;
}
.intro-on .intro::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 35%, #F4F6F9 85%); }
.intro-on body { overflow: hidden; }
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.intro__logo { position: relative; z-index: 1; width: min(1100px, 100%); max-height: 62vh; height: auto; overflow: hidden; }
.intro__logo .c-ink { fill: var(--lfc-azul); }
.intro__logo .c-green { fill: var(--lfc-verde); }
.intro__logo .c-red { fill: var(--lfc-rojo); }
.intro__logo .grow { transform-box: fill-box; transform-origin: 50% 100%; }
.intro__logo .camera { transform-box: view-box; transform-origin: 0 0; }
.intro__logo .line-l { transform-box: fill-box; transform-origin: 100% 50%; }
.intro__logo .line-r { transform-box: fill-box; transform-origin: 0% 50%; }
.intro__logo .ground { transform-box: fill-box; transform-origin: 50% 50%; }
.intro__logo .cltr, .intro__logo .ltr { transform-box: view-box; }
.intro__logo #in-guides, .intro__logo #in-ground, .intro__logo #in-main-outline { opacity: 0; }
.intro__logo .guide { fill: none; stroke: rgba(11, 37, 69, 0.16); stroke-width: 1; stroke-dasharray: 4 6; }
.intro__logo .dim { fill: none; stroke: var(--lfc-rojo); stroke-width: 1.2; }
.intro__logo .dim-label { font-family: var(--font-titulos); font-weight: 700; font-size: 11px; fill: var(--lfc-rojo); letter-spacing: 0.04em; }
.intro__logo .outline { fill: none; stroke: var(--lfc-azul); stroke-width: 1.6; stroke-linejoin: round; }
.intro__skip {
  position: absolute; z-index: 1; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  font-family: var(--font-titulos); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lfc-texto);
}
@media (prefers-reduced-motion: reduce) { .intro-on .intro { display: none; } .intro-on body { overflow: auto; } }

/* ---------- Nuestro equipo ---------- */
.leader {
  display: grid; gap: 28px; padding: 22px; border-radius: var(--radius);
  background: var(--lfc-blanco); box-shadow: var(--shadow);
}
.leader__media { position: relative; max-width: 380px; width: 100%; margin-inline: auto; }
.leader__media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.leader__name { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 800; line-height: 1.2; color: var(--lfc-azul); text-wrap: balance; }
.leader__role {
  display: inline-flex; margin-top: 10px; padding: 6px 12px; border-radius: 999px;
  background: var(--lfc-verde-tinte); color: var(--lfc-verde);
  font-family: var(--font-titulos); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.leader__bio { margin-top: 18px; display: grid; gap: 12px; max-width: 66ch; }
.leader__bio p { font-size: 0.98rem; line-height: 1.65; }
.leader__links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--lfc-borde); }
.leader__link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; overflow-wrap: anywhere;
  font-family: var(--font-titulos); font-weight: 700; font-size: 0.86rem; color: var(--lfc-azul);
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--lfc-borde); text-underline-offset: 5px;
}
.leader__link:hover { color: var(--lfc-verde); text-decoration-color: currentColor; }
.leader__link svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--lfc-verde); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.leader__link svg.fill { fill: var(--lfc-verde); stroke: none; }

.areas__title { margin-top: 56px; font-size: 1.25rem; font-weight: 700; color: var(--lfc-azul); }
.areas { display: grid; gap: 16px; margin-top: 20px; }
.area {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start;
  padding: 20px; border-radius: var(--radius); background: var(--lfc-blanco); border: 1px solid var(--lfc-borde);
}
.area__icon {
  width: 44px; height: 44px; padding: 11px; border-radius: 50%;
  background: var(--lfc-verde-tinte); fill: none; stroke: var(--lfc-verde); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.area__name { align-self: center; font-size: 1rem; font-weight: 700; color: var(--lfc-azul); }
.area__mail, .area__use { grid-column: 1 / -1; }
.area__mail { margin-top: 8px; }
.area__mail {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 0; overflow-wrap: anywhere;
  font-family: var(--font-titulos); font-size: 0.86rem; font-weight: 700; color: var(--lfc-azul);
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--lfc-borde); text-underline-offset: 4px;
}
.area__mail:hover { color: var(--lfc-verde); text-decoration-color: currentColor; }
.area__use { font-size: 0.88rem; line-height: 1.5; }

@media (min-width: 640px) {
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .leader { grid-template-columns: minmax(260px, 340px) 1fr; gap: 44px; padding: 32px; align-items: start; }
  .leader__media { margin-inline: 0; }
}
@media (min-width: 1080px) {
  .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Pie de página: contactos por área */
.footer-areas { margin-top: 8px; display: grid; gap: 4px; }
.footer-areas li { display: grid; }
.footer-areas span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-soft); }
.footer-areas a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; font-size: 0.88rem; }
.footer-col a { overflow-wrap: anywhere; }
@media (min-width: 1080px) {
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1240px) {
  .footer-cols { grid-template-columns: 0.7fr 1.2fr 0.85fr 1.45fr 1.15fr; gap: 28px; }
}

/* Menú de escritorio con 6 enlaces: más compacto entre 1080 y 1279 px para que quepa en una línea */
@media (min-width: 1080px) and (max-width: 1279px) {
  .site-nav ul { gap: 4px 14px; }
  .site-nav a:not(.btn) { font-size: 0.88rem; }
}
@media (min-width: 1080px) { .site-nav .btn { white-space: nowrap; } }
@media (min-width: 1080px) and (max-width: 1179px) {
  .site-nav ul { gap: 4px 11px; }
  .site-nav a:not(.btn) { font-size: 0.84rem; }
  .site-nav .btn--sm { padding-inline: 16px; }
  .brand img { width: 190px; }
}
