/* INESA — static site styles. Hand-translated from the React design tokens. */

:root {
  --font-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --color-bg: #0b0a09;
  --color-bg-elevated: #141210;
  --color-bg-subtle: #1c1916;
  --color-fg: #f2ede4;
  --color-muted: #9a9186;
  --color-subtle: #6e675f;
  --color-accent: #c56a3a;
  --color-accent-fg: #0b0a09;
  --color-line: rgb(242 237 228 / 0.12);
  --color-line-strong: rgb(242 237 228 / 0.22);
  --color-paper: #e8e0d4;
  --color-ink: #161310;
  --color-ink-muted: #5c564e;

  --tracking-caps: 0.2em;
  --text-display: clamp(3.4rem, 2.2rem + 7vw, 8.25rem);
  --text-hero: clamp(2.6rem, 1.4rem + 4.6vw, 5.5rem);
  --text-section: clamp(2rem, 1.2rem + 2.4vw, 3.5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 80rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--color-bg);
  color: var(--color-fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
}

::selection { background: var(--color-accent); color: var(--color-accent-fg); }

h1, h2, h3, h4 { text-wrap: balance; margin: 0; font-weight: 400; }
p { text-wrap: pretty; margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd, dt { margin: 0; padding: 0; list-style: none; }
img, video {
  display: block;
  max-width: 100%;
  outline: 1px solid rgb(242 237 228 / 0.08);
  outline-offset: -1px;
}
button { font: inherit; }

/* ---------- Type helpers ---------- */
.font-serif { font-family: var(--font-serif); }
.text-display { font-size: var(--text-display); line-height: 0.92; letter-spacing: -0.035em; }
.text-hero { font-size: var(--text-hero); line-height: 0.96; letter-spacing: -0.03em; }
.text-section { font-size: var(--text-section); line-height: 1.05; letter-spacing: -0.03em; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
}
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-muted); }
.text-subtle { color: var(--color-subtle); }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .container { padding-inline: 2rem; } }

.blueprint {
  background-image:
    linear-gradient(to right, rgb(242 237 228 / 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(242 237 228 / 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
}

.border-line { border: 1px solid var(--color-line); }
.border-t-line { border-top: 1px solid var(--color-line); }
.border-b-line { border-bottom: 1px solid var(--color-line); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  border: 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 200ms ease-out, background-color 200ms ease-out,
    color 200ms ease-out, border-color 200ms ease-out, opacity 200ms ease-out;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--color-fg); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-paper); }
.btn-ghost { background: transparent; border: 1px solid var(--color-line-strong); color: var(--color-fg); }
.btn-ghost:hover { border-color: var(--color-fg); }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-size: 0.875rem;
  color: rgb(242 237 228 / 0.8);
  transition: color 200ms;
}
.link-arrow:hover { color: var(--color-fg); }
.link-arrow svg { transition: transform 200ms; }
.group:hover .link-arrow svg, .link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: 1px;
  background: transparent;
  pointer-events: none;
}
.scroll-progress > span {
  display: block;
  height: 1px;
  background: var(--color-accent);
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background-color 300ms, border-color 300ms;
}
.site-header.is-solid {
  background: var(--color-bg);
  border-bottom-color: var(--color-line);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) {
  .site-header .bar { height: 4.5rem; padding-inline: 2rem; }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-fg);
  transition: opacity 200ms;
}
.logo:hover { opacity: 0.8; }
.logo .wordmark { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.02em; text-transform: lowercase; }
.logo svg { width: 2rem; height: 2rem; color: var(--color-accent); }

.nav-desktop { display: none; align-items: center; gap: 2rem; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }
.nav-desktop > a:not(.btn), .nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.75rem;
  font-size: 0.875rem;
  color: rgb(242 237 228 / 0.8);
  transition: color 200ms;
}
.nav-desktop > a:not(.btn):hover, .nav-dropdown > a:hover,
.nav-desktop > a:not(.btn).is-active, .nav-dropdown > a.is-active { color: var(--color-fg); }

.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-panel {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 16rem;
  transform: translateX(-50%);
  padding-top: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms, transform 200ms;
}
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
}
.dropdown-panel .dropdown-card {
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: var(--color-bg-elevated);
  padding: 0.5rem;
  box-shadow: 0 0 0 1px rgb(242 237 228 / 0.08), 0 16px 40px rgb(0 0 0 / 0.45);
}
.dropdown-card a {
  display: block;
  border-radius: 4px;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: rgb(242 237 228 / 0.8);
  transition: background-color 200ms, color 200ms;
}
.dropdown-card a:hover { background: var(--color-bg-subtle); color: var(--color-fg); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: 0;
  color: var(--color-fg);
  cursor: pointer;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  padding: 6rem 1.5rem 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex: 1; flex-direction: column; gap: 0.5rem; }
.mobile-menu .menu-item { border-bottom: 1px solid var(--color-line); padding-block: 0.75rem; }
.mobile-menu .menu-item > a {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}
.mobile-menu .menu-children {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 0.25rem;
}
.mobile-menu .menu-children a { color: var(--color-muted); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media video { position: absolute; inset: 0; display: none; }
@media (min-width: 768px) { .hero-media video { display: block; } }
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-bg), rgb(11 10 9 / 0.5), rgb(11 10 9 / 0.3));
}
.hero-blueprint { position: absolute; inset: 0; opacity: 0.4; mix-blend-mode: overlay; }
.hero-body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 7rem 1.25rem 4rem;
}
@media (min-width: 768px) { .hero-body { padding: 7rem 2rem 5rem; } }
.hero-body h1 { margin-top: 1.5rem; max-width: 64rem; }
.hero-lede {
  margin-top: 1.75rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.625;
  color: rgb(242 237 228 / 0.75);
}
@media (min-width: 768px) { .hero-lede { font-size: 1.125rem; } }
.hero-cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.hero-scroll {
  margin-top: 4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: rgb(242 237 228 / 0.55);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 70svh;
  overflow: hidden;
}
.page-hero.compact { min-height: 52svh; }
.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero .hero-veil {
  background: linear-gradient(to top, var(--color-bg), rgb(11 10 9 / 0.55), rgb(11 10 9 / 0.25));
}
.page-hero-body {
  position: relative;
  margin-top: auto;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 8rem 1.25rem 4rem;
}
@media (min-width: 768px) { .page-hero-body { padding: 8rem 2rem 5rem; } }
.page-hero-body h1 { margin-top: 1.25rem; max-width: 56rem; }
.page-hero-body .lede {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1rem;
  color: rgb(242 237 228 / 0.75);
}
@media (min-width: 768px) { .page-hero-body .lede { font-size: 1.125rem; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background: var(--color-bg);
}
.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 2.5rem;
  padding: 1rem 2.5rem 1rem 0;
  animation: marquee 42s linear infinite;
}
.marquee-track span {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--color-muted);
  white-space: nowrap;
}
.marquee-track .dot {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 9999px;
  background: var(--color-accent);
  flex: none;
}

/* ---------- Sections ---------- */
.section { padding-block: 6rem; }
@media (min-width: 768px) { .section { padding-block: 8rem; } }
.section-sm { padding-block: 4rem; }
@media (min-width: 768px) { .section-sm { padding-block: 5rem; } }

.section-head h2 { margin-top: 1rem; }

/* 12-col grid */
.grid-12 { display: grid; gap: 3rem; }
@media (min-width: 768px) {
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4rem; }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-7-start-6 { grid-column: 6 / span 7; }
  .col-6-start-7 { grid-column: 7 / span 6; }
  .col-4-start-9 { grid-column: 9 / span 4; }
  .col-5-start-8 { grid-column: 8 / span 5; }
}

/* Manifesto */
.manifesto blockquote {
  margin: 1.5rem 0 0;
  font-family: var(--font-serif);
}
.manifesto .body { margin-top: 2rem; max-width: 32rem; color: var(--color-muted); line-height: 1.625; }
.figure-rounded { position: relative; overflow: hidden; border-radius: 16px; }
.figure-rounded img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  border-top: 1px solid var(--color-line);
  padding-top: 2rem;
}
.stats dt { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--color-subtle); }
.stats dd { font-family: var(--font-serif); margin-top: 0.25rem; font-size: 2.25rem; letter-spacing: -0.02em; }

/* Home services cards */
.svc-head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 4rem;
}
@media (min-width: 768px) {
  .svc-head { flex-direction: row; align-items: flex-end; padding-block: 5rem; }
}
.svc-grid { display: grid; }
@media (min-width: 768px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc-card {
  position: relative;
  isolation: isolate;
  min-height: 28rem;
  overflow: hidden;
  border-top: 1px solid var(--color-line);
  display: block;
}
@media (min-width: 768px) {
  .svc-card { min-height: 36rem; border-left: 1px solid var(--color-line); }
  .svc-card:first-child { border-left: 0; }
}
.svc-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease-out;
}
.svc-card:hover > img { transform: scale(1.05); }
.svc-card .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-bg), rgb(11 10 9 / 0.5), rgb(11 10 9 / 0.1));
}
.svc-card .body {
  position: relative;
  display: flex;
  height: 100%;
  min-height: inherit;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
@media (min-width: 768px) { .svc-card .body { padding: 2rem; } }
.svc-card h3 { margin-top: 0.75rem; font-family: var(--font-serif); font-size: 1.875rem; letter-spacing: -0.02em; }
.svc-card p { margin-top: 0.75rem; max-width: 24rem; font-size: 0.875rem; line-height: 1.625; color: rgb(242 237 228 / 0.75); }
.svc-card .link-arrow { margin-top: 1.5rem; min-height: 0; color: var(--color-fg); }

/* Paper (trust) section */
.paper { background: var(--color-paper); color: var(--color-ink); }
.paper .text-muted { color: var(--color-ink-muted); }
.values-grid {
  margin-top: 4rem;
  display: grid;
  gap: 1px;
  background: rgb(22 19 16 / 0.1);
}
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.values-grid article { background: var(--color-paper); padding: 2rem; }
@media (min-width: 768px) { .values-grid article { padding: 2.5rem; } }
.values-grid h3 { margin-top: 1rem; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; }
.values-grid p { margin-top: 0.75rem; max-width: 28rem; font-size: 0.875rem; line-height: 1.625; color: var(--color-ink-muted); }

/* Bulletin band */
.bulletin { position: relative; isolation: isolate; overflow: hidden; }
.bulletin > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bulletin .veil { position: absolute; inset: 0; background: rgb(11 10 9 / 0.7); }
.bulletin .container { position: relative; }
.bulletin .lede { margin-top: 1.5rem; max-width: 28rem; color: rgb(242 237 228 / 0.75); }
.bulletin .link-arrow { margin-top: 2rem; color: var(--color-fg); }

/* Big CTA */
.cta h2 { margin-top: 1.25rem; max-width: 56rem; }
.cta .lede { margin-top: 1.5rem; max-width: 36rem; color: var(--color-muted); }
.cta .row { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.cta .phone { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 0.5rem; font-size: 0.875rem; color: var(--color-muted); transition: color 200ms; }
.cta .phone:hover { color: var(--color-fg); }

/* Footer */
.site-footer { border-top: 1px solid var(--color-line); background: var(--color-bg); }
.footer-grid {
  display: grid;
  gap: 3rem;
  padding-block: 4rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); padding-block: 5rem; }
  .footer-grid .f-brand { grid-column: span 4; }
  .footer-grid .f-studio { grid-column: span 2; }
  .footer-grid .f-legal { grid-column: span 2; }
  .footer-grid .f-office { grid-column: span 4; }
}
.f-brand p.about { margin-top: 1.5rem; max-width: 24rem; font-size: 0.875rem; line-height: 1.625; color: var(--color-muted); }
.f-brand .cif { margin-top: 2rem; }
.footer-label { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--color-subtle); }
.f-studio ul, .f-legal ul { margin-top: 1rem; display: grid; gap: 0.5rem; font-size: 0.875rem; }
.f-studio a, .f-legal a, .f-office p { color: var(--color-muted); }
.f-studio a, .f-legal a { transition: color 200ms; }
.f-studio a:hover, .f-legal a:hover { color: var(--color-fg); }
.f-office p { margin-top: 1rem; font-size: 0.875rem; line-height: 1.625; }
.f-office a.tel { margin-top: 1rem; display: block; font-size: 0.875rem; }
.f-office a.mail { margin-top: 0.25rem; display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; }
.f-office a:hover { opacity: 0.8; }
.footer-bottom { border-top: 1px solid var(--color-line); }
.footer-bottom .inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 1.5rem;
  font-size: 0.75rem;
  color: var(--color-subtle);
}
@media (min-width: 768px) {
  .footer-bottom .inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-bottom a:hover { color: var(--color-muted); }

/* Service detail rows (/servicios) */
.svc-row { display: grid; align-items: center; gap: 2.5rem; margin-bottom: 6rem; }
.svc-row:last-child { margin-bottom: 0; }
.svc-row .img-wrap img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.svc-row .lede { margin-top: 1rem; color: var(--color-muted); }
.svc-row ul { margin-top: 1.5rem; display: grid; gap: 0.5rem; font-size: 0.875rem; color: rgb(242 237 228 / 0.8); }
.svc-row ul li { display: flex; gap: 0.75rem; align-items: flex-start; }
.svc-row ul li::before {
  content: "";
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 9999px;
  background: var(--color-accent);
  flex: none;
  margin-top: 0.5rem;
}
.svc-row .link-arrow { margin-top: 2rem; }
@media (min-width: 768px) {
  .svc-row { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem; }
  .svc-row .img-wrap { grid-column: span 6; }
  .svc-row .txt { grid-column: 8 / span 5; }
  .svc-row.flip .img-wrap { grid-column: 7 / span 6; grid-row: 1; }
  .svc-row.flip .txt { grid-column: 1 / span 5; grid-row: 1; }
}

/* Inesa split band */
.split-band { border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.split-band .container { display: grid; }
@media (min-width: 768px) { .split-band .container { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split-band img { height: 100%; min-height: 22rem; width: 100%; object-fit: cover; }
.split-band .txt { display: flex; flex-direction: column; justify-content: center; padding: 4rem 1.25rem; }
@media (min-width: 768px) { .split-band .txt { padding: 4rem 3rem; } }
.split-band .txt p.body { margin-top: 1.5rem; max-width: 28rem; color: var(--color-muted); }
.split-band .txt .cif { margin-top: 1rem; }

/* Value list (inesa metodo, auditoria) */
.value-list { margin-top: 3.5rem; display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .value-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.value-list article { border-top: 1px solid var(--color-line); padding-top: 1.5rem; }
.value-list h3 { margin-top: 0.75rem; font-size: 1.25rem; font-weight: 500; }
.value-list p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.625; color: var(--color-muted); }

/* Prose body columns */
.prose p + p { margin-top: 1.25rem; }
.prose { color: var(--color-muted); line-height: 1.625; }

/* Scope cards (ingenieria) */
.scope-grid { margin-top: 5rem; display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .scope-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.scope-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.scope-grid h3 { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 500; }
.scope-grid p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.625; color: var(--color-muted); }

/* Item tiles (consultoria) */
.item-tiles { display: grid; }
@media (min-width: 768px) { .item-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.item-tiles article { border-bottom: 1px solid var(--color-line); padding: 2.5rem 1.25rem; }
@media (min-width: 768px) {
  .item-tiles article { padding: 2.5rem 3rem; border-right: 1px solid var(--color-line); }
  .item-tiles article:nth-child(2n) { border-right: 0; }
}
.item-tiles h3 { font-size: 1.25rem; font-weight: 500; }
.item-tiles p { margin-top: 0.75rem; max-width: 28rem; font-size: 0.875rem; color: var(--color-muted); }

/* Item list (auditoria) */
.item-list { margin-top: 4rem; display: grid; gap: 0.75rem; font-size: 0.875rem; }
@media (min-width: 768px) { .item-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.item-list li { display: flex; gap: 0.75rem; align-items: flex-start; border-bottom: 1px solid var(--color-line); padding-block: 1rem; }
.item-list li::before {
  content: "";
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 9999px;
  background: var(--color-accent);
  flex: none;
  margin-top: 0.5rem;
}

/* News list */
.news-list { border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.news-list > li { padding-block: 2rem; }
.news-list > li + li { border-top: 1px solid var(--color-line); }
.news-list h2 { margin-top: 0.75rem; max-width: 36rem; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }
.news-list p { margin-top: 0.75rem; max-width: 36rem; font-size: 0.875rem; line-height: 1.625; color: var(--color-muted); }

/* Cards (elevated panels) */
.card {
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: var(--color-bg-elevated);
  padding: 1.5rem;
}
@media (min-width: 768px) { .card.sticky { position: sticky; top: 6rem; } }
.card h2, .card h3 { margin-top: 0.75rem; font-family: var(--font-serif); font-size: 1.875rem; font-weight: 400; }
.card p { margin-top: 0.75rem; font-size: 0.875rem; color: var(--color-muted); }

/* Contact data list */
.contact-list { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
.contact-list li { display: flex; gap: 1rem; }
.contact-list svg { margin-top: 0.125rem; width: 1rem; height: 1rem; flex: none; color: var(--color-accent); }
.contact-list .value { margin-top: 0.25rem; color: var(--color-fg); display: block; }
.contact-list a:hover { opacity: 0.8; }
.contact-list .maps { margin-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.25rem; min-height: 2.75rem; font-size: 0.875rem; color: var(--color-muted); transition: color 200ms; }
.contact-list .maps:hover { color: var(--color-fg); }

/* Forms */
.form-stack { display: flex; flex-direction: column; gap: 2rem; }
.form-row { display: grid; gap: 2rem; }
@media (min-width: 768px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field > span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--color-muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--color-line);
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--color-fg);
  transition: border-color 200ms;
}
.field input { height: 3rem; }
.field select { height: 3rem; appearance: none; }
.field textarea { min-height: 8rem; resize: vertical; padding-block: 0.75rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--color-subtle); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-bottom-color: var(--color-accent);
  outline: none;
}
.field select option { background: var(--color-bg); color: var(--color-fg); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.form-foot p { max-width: 24rem; font-size: 0.75rem; color: var(--color-subtle); }
/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Notice (form feedback) */
.notice { margin-bottom: 2rem; }
.notice-ok { border-color: var(--color-accent); }
.notice .kicker { display: block; }
.notice h3 { margin-top: 1rem; }
.notice .btn { margin-top: 2rem; }

/* Contact image band */
.img-band { border-top: 1px solid var(--color-line); }
.img-band img { width: 100%; height: 42vh; object-fit: cover; }
@media (min-width: 768px) { .img-band img { height: 52vh; } }

/* Inline strip CTA */
.strip-cta { border-top: 1px solid var(--color-line); }
.strip-cta .inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding-block: 4rem;
}
@media (min-width: 768px) {
  .strip-cta .inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.strip-cta p { font-family: var(--font-serif); font-size: 1.875rem; }

/* ---------- Legal prose (aviso legal, privacidad, cookies) ---------- */
.legal-prose { max-width: 44rem; color: var(--color-muted); line-height: 1.7; }
.legal-prose h2 {
  margin-top: 3rem;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-fg);
}
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p, .legal-prose ul, .legal-prose ol { margin-top: 1rem; }
.legal-prose ul, .legal-prose ol { padding-left: 1.25rem; }
.legal-prose ul { list-style: disc; }
.legal-prose ol { list-style: decimal; }
.legal-prose li + li { margin-top: 0.5rem; }
.legal-prose strong { color: var(--color-fg); font-weight: 500; }
.legal-prose a { color: var(--color-fg); text-decoration: underline; text-underline-offset: 3px; transition: opacity 200ms; }
.legal-prose a:hover { opacity: 0.8; }
.legal-id {
  margin-top: 2.5rem;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: var(--color-bg-elevated);
  padding: 1.5rem;
  font-size: 0.875rem;
}
.legal-id p { margin-top: 0.25rem; color: var(--color-muted); }
.legal-id p:first-child { margin-top: 0; }
.legal-id strong { color: var(--color-fg); font-weight: 500; }

/* ---------- Consent checkbox + GDPR note ---------- */
.consent { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.875rem; color: var(--color-muted); }
.consent input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  flex: none;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.consent a { color: var(--color-fg); text-decoration: underline; text-underline-offset: 3px; transition: opacity 200ms; }
.consent a:hover { opacity: 0.8; }
.gdpr-note { font-size: 0.75rem; line-height: 1.6; color: var(--color-subtle); }
.gdpr-note a { color: var(--color-muted); text-decoration: underline; text-underline-offset: 3px; transition: color 200ms; }
.gdpr-note a:hover { color: var(--color-fg); }

/* ---------- Animations ---------- */
@keyframes ken-burns {
  from { transform: scale(1.04); }
  to { transform: scale(1.12); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-ken {
  animation: ken-burns 22s var(--ease-out) alternate infinite;
  transform-origin: center;
}

/* Above-the-fold reveals: CSS keyframe fallback (no JS needed) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(4px);
  animation: rise 700ms var(--ease-out) forwards;
}
.reveal-delay-1 { animation-delay: 80ms; }
.reveal-delay-2 { animation-delay: 160ms; }
.reveal-delay-3 { animation-delay: 240ms; }
.reveal-delay-4 { animation-delay: 320ms; }

/* Below-the-fold reveals driven by IntersectionObserver */
.js .reveal-io {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(4px);
}
.js .reveal-io.in {
  animation: rise 700ms var(--ease-out) forwards;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-ken, .marquee-track, .reveal, .js .reveal-io.in { animation: none !important; }
  .reveal, .js .reveal-io { opacity: 1; transform: none; filter: none; }
  .hero-media video { display: none; }
}
