/* =============================================================
   LEX Consultores — styles.css
   1. Tokens  2. Reset & base  3. Utilities  4. Typography
   5. Components  6. Sections  7. Effects  8. Responsive  9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #F6F5F1;
  --surface: #FFFFFF;
  --surface-inverted: #121110;
  --text: #121110;
  --text-on-inverted: #F3F0E8;
  --text-muted: #6B685E;
  --text-muted-on-inverted: #A9A497;
  --border: #DEDAD0;
  --border-strong: #C7C1B0;
  --border-on-inverted: #33312A;
  --accent: #24456F;
  --accent-strong: #16304F;
  --accent-tint: #E1E7EE;
  --accent-on-inverted: #6E97C7;
  --state-error: #8C2F2F;
  --state-success: #3F5D3A;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Archivo', -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --text-2xs: .6875rem;
  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: clamp(1.375rem, 1.28rem + .4vw, 1.625rem);
  --text-xl: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  --text-2xl: clamp(2.1rem, 1.7rem + 1.7vw, 3.1rem);
  --text-3xl: clamp(2.5rem, 1.7rem + 3.4vw, 4.5rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem;
  --space-9: 6rem; --space-10: 8rem; --space-11: 12rem;

  --radius-sm: 2px;
  --radius-md: 4px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --header-h: 4.5rem;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
html.nav-open { overflow: hidden; }
html.lex-intro { overflow: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 500;
  text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em;
}
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--text-on-inverted); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--text); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* --- preloader (entrada de marca, una vez por sesión) --- */
.preloader { display: none; }
html.lex-intro .preloader {
  display: flex; position: fixed; inset: 0; z-index: 10000;
  align-items: center; justify-content: center;
  background: var(--bg);
}
.preloader-mark { width: clamp(96px, 16vw, 180px); }
.preloader-mark img { width: 100%; height: auto; display: block; }

/* =============================================================
   3. Utilities
   ============================================================= */
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.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;
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: var(--space-3);
}
.eyebrow::before { content: ""; width: 1.4em; height: 1px; background: var(--text-muted); display: inline-block; }

.section { padding-block: var(--space-9); border-top: 1px solid var(--border); }
.section-inverted {
  background: var(--surface-inverted); color: var(--text-on-inverted); border-top: none;
  --accent: var(--accent-on-inverted); /* mantiene 4.5:1+ de contraste de texto sobre fondo oscuro */
}
.section-inverted .eyebrow { color: var(--text-muted-on-inverted); }
.section-inverted .eyebrow::before { background: var(--text-muted-on-inverted); }
.section-head { max-width: 44rem; margin-bottom: var(--space-8); }
.section-head h2, .section-head h1 { font-size: var(--text-2xl); margin-top: var(--space-4); }
.section-head p { color: var(--text-muted); font-size: var(--text-md); margin-top: var(--space-4); line-height: 1.65; }
.section-inverted .section-head p { color: var(--text-muted-on-inverted); }

.cta-band .wrap { max-width: 38rem; }
.cta-band p { color: var(--text-muted-on-inverted); margin-top: var(--space-4); font-size: var(--text-md); }
.cta-band .hero-actions { margin-top: var(--space-7); }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.lede { font-size: var(--text-md); line-height: 1.7; max-width: 60ch; }
.measure { max-width: 66ch; }
.italic-accent { font-family: var(--font-display); font-style: italic; font-weight: 500; }

/* =============================================================
   5. Components
   ============================================================= */

/* --- header / nav --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; height: var(--header-h);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out);
}
.site-header.is-scrolled { background: rgba(246,245,241,.92); backdrop-filter: blur(10px); border-color: var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); width: 100%; }
.brand-logo { display: inline-flex; align-items: center; height: 2.35rem; width: auto; flex: none; }
.brand-logo img { height: 100%; width: auto; display: block; }

.nav-links { display: none; align-items: center; gap: var(--space-7); font-size: var(--text-sm); font-weight: 600; }
.nav-links a { position: relative; padding-block: .3em; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-panel a[aria-current="page"] { color: var(--accent); }

.nav-cta.desktop-only { display: none; }
.nav-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 26px; height: 26px;
  flex: none;
}
.nav-burger span { height: 1.5px; background: var(--text); display: block; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-panel {
  position: fixed; inset: 0; top: var(--header-h); background: var(--bg); z-index: 90;
  padding: var(--space-8) var(--gutter); display: flex; flex-direction: column; gap: var(--space-6);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out), visibility .35s;
}
.nav-panel.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.nav-panel a:not(.btn) { font-family: var(--font-display); font-size: var(--text-xl); }
.nav-panel .nav-cta { display: inline-flex; margin-top: var(--space-4); align-self: flex-start; }

/* --- buttons / links --- */
.btn {
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); letter-spacing: .01em;
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: .95em 1.6em; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid transparent; transition: background .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), transform .2s var(--ease-out), box-shadow .35s var(--ease-out);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--text-on-inverted); box-shadow: 0 12px 28px -16px rgba(18,17,16,.45); }
.section-inverted .btn-primary { background: var(--text-on-inverted); color: var(--surface-inverted); }
.section-inverted .btn-primary:hover { background: var(--accent); color: var(--surface-inverted); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--text); }
.section-inverted .btn-secondary { color: var(--text-on-inverted); border-color: var(--border-on-inverted); }
.section-inverted .btn-secondary:hover { border-color: var(--text-on-inverted); }

.link-anim {
  position: relative; text-decoration: none; font-weight: 600; padding-bottom: .15em;
  display: inline-flex; align-items: center; gap: .5em;
  transition: color .3s var(--ease-out);
}
.link-anim:hover, .link-anim:focus-visible { color: var(--accent); }
.link-anim::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.link-anim:hover::after, .link-anim:focus-visible::after { transform: scaleX(1); }
.link-anim svg { width: 1em; height: 1em; transition: transform .3s var(--ease-out); }
.link-anim:hover svg { transform: translateX(3px); }

/* --- badges --- */
.badge {
  font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--border-strong); border-radius: 100px; padding: .4em .9em; color: var(--text-muted);
  display: inline-block;
}

/* --- cards --- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-6); transition: transform .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 18px 36px -24px rgba(18,17,16,.35); }
.card .badge { margin-bottom: var(--space-4); }
.card p { color: var(--text-muted); font-size: var(--text-sm); margin-top: var(--space-3); }
.card-icon { width: 28px; height: 28px; stroke: var(--text); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: var(--space-5); transition: stroke .35s var(--ease-out); }
.card:hover .card-icon { stroke: var(--accent); }

.grid-auto { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }

/* --- photography --- */
.photo-frame {
  border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.photo-frame:hover img { transform: scale(1.03); }
.photo-frame-wide { aspect-ratio: 16 / 9; margin-bottom: var(--space-8); }
.section-inverted .photo-frame { border-color: var(--border-on-inverted); }

.roster { display: flex; flex-direction: column; border-bottom: 1px solid var(--border); }
.roster-item { display: grid; grid-template-columns: 1fr; gap: .2em; padding: var(--space-5) 0; border-top: 1px solid var(--border); }
.roster-item h4 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); }
.roster-item .cargo { color: var(--text-muted); font-size: var(--text-sm); }

/* --- process --- */
.process-list { display: flex; flex-direction: column; }
.process-row {
  display: grid; grid-template-columns: 3rem 1fr; gap: var(--space-5); padding: var(--space-5) 0;
  border-top: 1px solid var(--border-on-inverted);
}
.process-row:last-child { border-bottom: 1px solid var(--border-on-inverted); }
.process-row .n { font-family: var(--font-mono); color: var(--accent); font-size: var(--text-sm); padding-top: .2em; }
.process-row h4 { font-family: var(--font-body); font-size: var(--text-base); color: var(--text-on-inverted); }
.process-row p { color: var(--text-muted-on-inverted); font-size: var(--text-sm); margin-top: .3em; }

/* --- accordion (servicios) --- */
.accordion { border-top: 1px solid var(--border); }
.accordion details { border-bottom: 1px solid var(--border); }
.accordion summary {
  cursor: pointer; list-style: none; padding: var(--space-5) 0; display: flex; justify-content: space-between;
  align-items: center; gap: var(--space-4); -webkit-tap-highlight-color: transparent;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 600; }
.accordion summary .sum-meta { color: var(--text-muted); font-size: var(--text-sm); margin-top: .2em; font-weight: 400; }
.accordion summary .plus { font-family: var(--font-mono); color: var(--accent); font-size: 1.4rem; transition: transform .35s var(--ease-out); flex: none; }
.accordion details[open] summary .plus { transform: rotate(45deg); }
.accordion-body { padding: 0 0 var(--space-6); }
.accordion-body .responsable {
  font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: var(--space-5);
}
.accordion-subgroup { margin-bottom: var(--space-6); }
.accordion-subgroup:last-child { margin-bottom: 0; }
.accordion-subgroup h4 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--space-3); }
.service-items { display: grid; grid-template-columns: 1fr; gap: .6em var(--space-6); }
.service-items li { position: relative; padding-left: 1.3em; font-size: var(--text-sm); color: var(--text-muted); }
.service-items li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.service-items-nested { margin-top: .5em; padding-left: .5em; }

/* --- values --- */
.value-list { display: flex; flex-direction: column; }
.value-row { display: grid; grid-template-columns: 1fr; gap: var(--space-2); padding: var(--space-5) 0; border-top: 1px solid var(--border); }
.value-row:last-child { border-bottom: 1px solid var(--border); }
.value-row h4 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); }
.value-row p { color: var(--text-muted); font-size: var(--text-sm); }

/* --- form --- */
.form { display: flex; flex-direction: column; gap: var(--space-5); max-width: 34rem; }
.form-note { font-size: var(--text-xs); color: var(--accent); min-height: 1.2em; }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: var(--text-base); color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: .85em 1em; transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.consent { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-xs); color: var(--text-muted); }
.consent input { margin-top: .2em; flex: none; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }

/* --- contact list --- */
.contact-list { display: flex; flex-direction: column; gap: var(--space-5); }
.contact-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-item svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; margin-top: .1em; }
.contact-item .k { font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted-on-inverted); }
.contact-item .v { font-size: var(--text-md); margin-top: .2em; }
.contact-item a.v:hover { color: var(--accent); }

/* --- footer --- */
.site-footer { background: var(--surface-inverted); color: var(--text-on-inverted); padding-block: var(--space-8) var(--space-6); }
.foot-cols { display: grid; grid-template-columns: 1fr; gap: var(--space-7); }
.foot-brand .brand-logo {
  height: 3.4rem; padding: var(--space-3) var(--space-4);
  background: var(--bg); border-radius: var(--radius-md);
}
.foot-brand p { color: var(--text-muted-on-inverted); font-size: var(--text-sm); margin-top: var(--space-4); max-width: 26rem; }
.foot-col h5 { font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted-on-inverted); margin-bottom: var(--space-4); }
.foot-col a, .foot-col p { display: block; font-size: var(--text-sm); color: var(--text-on-inverted); margin-bottom: .6em; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--border-on-inverted);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between;
  font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-muted-on-inverted);
}

/* =============================================================
   6. Sections
   ============================================================= */

/* --- hero --- */
.hero { position: relative; padding-top: calc(var(--space-9) + var(--header-h) * .3); padding-bottom: var(--space-9); overflow: hidden; }
.hero-motif { position: absolute; top: 8%; right: -8%; width: 46%; max-width: 640px; opacity: .5; pointer-events: none; }
.hero-motif polyline, .hero-motif circle { stroke: var(--accent); }
.hero-inner { position: relative; max-width: 40rem; }
.hero h1 { margin-top: var(--space-5); }
.hero .tagline { margin-top: var(--space-4); font-size: var(--text-lg); }
.hero .lede { margin-top: var(--space-6); color: var(--text-muted); }
.hero-actions { margin-top: var(--space-7); display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: center; }

/* --- interior page header --- */
.page-header { padding-top: calc(var(--space-9) + var(--header-h) * .3); padding-bottom: var(--space-8); }
.page-header .wrap { max-width: 46rem; }
.page-header h1 { font-size: var(--text-2xl); margin-top: var(--space-4); }
.page-header .lede { margin-top: var(--space-5); color: var(--text-muted); }

/* --- legal / long-form prose (Aviso de Privacidad) --- */
.prose { max-width: 66ch; display: flex; flex-direction: column; gap: var(--space-6); }
.prose h2 { font-size: var(--text-xl); margin-top: var(--space-3); }
.prose p, .prose li { color: var(--text-muted); font-size: var(--text-base); line-height: 1.75; }
.prose ul { display: flex; flex-direction: column; gap: var(--space-3); }
.prose li { position: relative; padding-left: 1.3em; }
.prose li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }
.prose .updated { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); }

/* --- 404 --- */
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-page .n { font-family: var(--font-mono); color: var(--accent); font-size: var(--text-sm); }
.error-page h1 { margin-top: var(--space-4); }
.error-page p { margin-top: var(--space-5); color: var(--text-muted); max-width: 46ch; }
.error-page .hero-actions { margin-top: var(--space-7); }

/* --- trust bar --- */
.trust-bar { padding-block: var(--space-6); }
.trust-row { display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-8); align-items: baseline; justify-content: space-between; }
.trust-item { display: flex; align-items: baseline; gap: var(--space-3); }
.trust-item .n { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 500; }
.trust-item .k { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); letter-spacing: .04em; max-width: 12rem; }

/* --- nosotros --- */
.nosotros-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-8); }
.nosotros-text p + p { margin-top: var(--space-4); }
.mv-cards { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }

/* --- especialidad (urbano) --- */
.urbano {
  background:
    linear-gradient(rgba(18, 17, 16, .74), rgba(18, 17, 16, .74)),
    url("assets/img/urbano-atmosfera.webp") center / cover no-repeat,
    var(--surface-inverted);
  color: var(--text-on-inverted);
}
.urbano-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-7); align-items: start; }
.urbano-text .eyebrow { color: var(--text-muted-on-inverted); }
.urbano-text .eyebrow::before { background: var(--text-muted-on-inverted); }
.urbano-text h2 { color: var(--text-on-inverted); margin-top: var(--space-4); }
.urbano-text p { color: var(--text-muted-on-inverted); margin-top: var(--space-5); font-size: var(--text-md); line-height: 1.7; }
.urbano-list { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-6); }
.urbano-list li { display: flex; gap: var(--space-3); align-items: baseline; font-size: var(--text-sm); color: var(--text-on-inverted); }
.urbano-list li::before { content: "→"; color: var(--accent); font-family: var(--font-mono); }

/* --- servicios overview cards --- */
.servicios-overview { display: grid; grid-template-columns: 1fr; gap: var(--space-5); margin-bottom: var(--space-8); }

/* --- proceso --- */
.proceso { background: var(--surface-inverted); color: var(--text-on-inverted); }
.proceso-top { display: grid; grid-template-columns: 1fr; gap: var(--space-7); align-items: center; margin-bottom: var(--space-8); }

/* --- publico --- */
.publico-grid { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.publico-chip {
  font-size: var(--text-sm); padding: .7em 1.2em; border: 1px solid var(--border-strong);
  border-radius: 100px; transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.publico-chip:hover { border-color: var(--accent); background: var(--accent-tint); }

/* --- contacto --- */
.contacto {
  background:
    linear-gradient(rgba(18, 17, 16, .76), rgba(18, 17, 16, .76)),
    url("assets/img/contacto-atmosfera.webp") center / cover no-repeat,
    var(--surface-inverted);
  color: var(--text-on-inverted);
}
.contacto-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-9); }
.contacto .field input, .contacto .field textarea { background: rgba(243,240,232,.04); border-color: var(--border-on-inverted); color: var(--text-on-inverted); }
.contacto .field label { color: var(--text-muted-on-inverted); }
.contacto .consent { color: var(--text-muted-on-inverted); }

/* =============================================================
   7. Effects
   ============================================================= */
[data-reveal] { opacity: 0; transform: translateY(22px); }
.is-ready [data-reveal].is-revealed { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.is-ready:not(.js-anim) [data-reveal] { opacity: 1; transform: none; }
html:not(.is-ready) [data-reveal] { opacity: 1; transform: none; }

/* --- cross-page transitions (native, no JS) --- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: .5s;
  animation-timing-function: var(--ease-out);
}
::view-transition-old(root) { animation-name: lex-fade-out-up; }
::view-transition-new(root) { animation-name: lex-fade-in-up; }
@keyframes lex-fade-out-up { to { opacity: 0; transform: translateY(-10px); } }
@keyframes lex-fade-in-up { from { opacity: 0; transform: translateY(10px); } }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .mv-cards { grid-template-columns: repeat(2, 1fr); }
  .grid-auto.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .nosotros-grid { grid-template-columns: 1.1fr .9fr; }
  .grid-auto.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .servicios-overview { grid-template-columns: repeat(2, 1fr); }
  .foot-cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .contacto-grid { grid-template-columns: 1fr 1fr; }
  .service-items { grid-template-columns: repeat(2, 1fr); }
  .roster { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: var(--space-6); }
  .proceso-top { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta.desktop-only { display: inline-flex; }
  .nav-burger, .nav-panel { display: none; }
  .grid-auto.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .servicios-overview { grid-template-columns: repeat(3, 1fr); }
  .urbano-grid { grid-template-columns: 1fr 1fr; }
  .trust-row { flex-wrap: nowrap; }
  .roster { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  .hero h1 { max-width: 22ch; }
  .servicios-overview { grid-template-columns: repeat(5, 1fr); }
}

/* =============================================================
   9. Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-motif { display: none; }
  html.lex-intro .preloader { display: none; }
  html.lex-intro { overflow: visible; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
