/* =========================================================
   LEXIUM FINANCE — PROPUESTA B — Hoja de estilos
   Identidad según la Guía de Identidad Visual (Propuesta B):
   Negro Azulado #0B1220 · Rojo Vino #7A1F1F · Rojo Intenso #C0392B · Blanco #FFFFFF
   Tipografía: Cormorant Garamond (titulares, afín al wordmark) + Montserrat (textos)
   ========================================================= */

/* ---------- Tipografías alojadas en el propio sitio (sin conexión a Google) ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/montserrat-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }

:root {
  /* Colores de marca */
  --ink: #0B1220;          /* negro azulado */
  --wine: #7A1F1F;         /* rojo vino */
  --red: #C0392B;          /* rojo intenso */
  --white: #FFFFFF;

  /* Derivados */
  --ink-2: #111a2d;        /* superficie sobre fondo oscuro */
  --ink-3: #1a2540;        /* bordes sobre fondo oscuro */
  --navy: #1B2E57;         /* azul de la llama, para detalles */
  --soft: #F4F5F8;         /* fondo claro alterno */
  --text: #0B1220;
  --muted: #586074;
  --line: #E3E6EC;
  --on-dark: #E8EBF2;
  --on-dark-muted: #9AA3B5;
  --red-text: #A93226;     /* rojo para texto pequeño sobre blanco (contraste AA) */
  --red-light: #E0685B;    /* rojo para texto pequeño sobre fondo oscuro (contraste AA) */
  --error: #B42318;
  --error-dark: #FF8A7A;
  --success: #1E7A46;
  --whatsapp: #1F9E55;

  /* Tipografía */
  --font-display: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Medidas */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
  --space-section: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body { margin: 0; background: var(--white); color: var(--text); font: 400 15.5px/1.7 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 500; line-height: 1.04; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--red); }
h3, h4 { font-family: var(--font-body); font-weight: 600; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
[hidden] { display: none !important; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { top: 8px; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--red-text); font-weight: 600; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.eyebrow-light { color: var(--red-light); }
.lead { color: var(--muted); font-size: 1.05rem; }
.section-dark .lead, .contact .lead { color: var(--on-dark-muted); }
.sample-note { font-size: .76rem; color: var(--muted); font-style: italic; }
.sample-note.on-dark { color: var(--on-dark-muted); }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border: 1px solid transparent; border-radius: 0;
  font: 600 .78rem/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; position: relative; overflow: hidden;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn-small { padding: 11px 18px; font-size: .7rem; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--wine); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--wine); }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.link-arrow svg, .icon-btn svg, .to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Encabezado ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: #fff; transition: background-color .3s, box-shadow .3s, height .3s; padding-top: env(safe-area-inset-top, 0px); }
.site-header.is-solid, .site-header.is-static { background: rgba(11,18,32,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.site-header.is-static { position: sticky; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); transition: height .3s; }
.site-header.is-solid .header-inner { height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; margin: 0; }
.logo-flame { height: 46px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.logo-word { height: 34px; width: auto; display: block; }
.site-header.is-solid .logo-flame { height: 40px; }
.site-header.is-solid .logo-word { height: 30px; }

.main-nav ul { display: flex; align-items: center; gap: 34px; }
.main-nav a:not(.btn) { text-decoration: none; font-size: .76rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; padding-block: 8px; position: relative; color: rgba(255,255,255,.85); }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 2px; background: var(--red); transition: left .25s var(--ease), right .25s var(--ease); }
.main-nav a:not(.btn):hover, .main-nav a.is-active { color: #fff; }
.main-nav a:not(.btn):hover::after, .main-nav a.is-active::after { left: 0; right: 0; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; color: inherit; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; content: ""; transition: transform .2s ease; }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); background: currentColor; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); background: currentColor; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-top: 1px solid var(--ink-3); display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; }
  .main-nav li a:not(.btn) { display: block; padding: 16px 0; border-bottom: 1px solid var(--ink-3); }
  .main-nav li a:not(.btn)::after { display: none; }
  .main-nav .btn { margin-top: 20px; width: 100%; }
}
@media (max-width: 420px) { .logo-flame { height: 38px; } .logo-word { height: 27px; } }

/* ---------- 1. Portada ---------- */
.hero { position: relative; background: radial-gradient(120% 90% at 75% 40%, #16213a 0%, var(--ink) 60%); color: #fff; overflow: hidden; padding-top: calc(var(--header-h) + 40px); }
.hero-bg { position: absolute; inset: 0; }
.hero-facets { width: 100%; height: 100%; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 40px; min-height: min(72vh, 680px); }
.hero-copy { display: grid; gap: 26px; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: .74rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark); }
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgba(192,57,43,.2); }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); max-width: 18ch; }
.hero h1 em { color: #fff; opacity: .72; }
.hero-sub { color: var(--on-dark-muted); font-size: 1.05rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 4px; }
.hero-actions .link-arrow { color: #fff; }

.hero-visual { position: relative; display: grid; place-items: center; height: 100%; min-height: 420px; }
.hero-flame { position: relative; z-index: 2; width: min(100%, 300px); height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.55)); animation: float 7s ease-in-out infinite; }
.hero-glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(192,57,43,.38), rgba(122,31,31,.12) 45%, transparent 70%); filter: blur(10px); animation: breathe 7s ease-in-out infinite; }
.hero-ring { position: absolute; width: 440px; height: 440px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 46px rgba(255,255,255,.015), 0 0 0 92px rgba(255,255,255,.01); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: 1; } }

.hero-stats { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-stats li { display: grid; gap: 2px; padding: 28px 24px 22px 0; }
.hero-stats li + li { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12); }
.hero-stats strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 4.4vw, 3.4rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.hero-stats strong span { color: #fff; }
.hero-stats li > span { color: var(--on-dark-muted); font-size: .86rem; }
.hero .sample-note { position: relative; padding-bottom: 28px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .hero-visual { order: -1; min-height: 220px; }
  .hero-flame { width: 120px; }
  .hero-glow { width: 220px; height: 220px; }
  .hero-ring { width: 240px; height: 240px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-stats li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
}

/* ---------- Cinta de temas ---------- */
.ticker { background: var(--red); color: #fff; overflow: hidden; padding-block: 16px; }
.ticker .marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.ticker li { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--font-display); font-size: 1.35rem; font-style: italic; white-space: nowrap; }
.ticker li::after { content: "✦"; font-style: normal; font-size: .8rem; opacity: .7; }
.ticker:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding-block: var(--space-section); }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section h2 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); }
.center-head { display: grid; justify-items: center; gap: 14px; text-align: center; margin-bottom: 56px; }

/* ---------- 2. Servicios ---------- */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.split-head { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; justify-items: start; }
.svc-list { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc summary { display: grid; grid-template-columns: 56px 1fr 28px; align-items: center; gap: 12px; padding: 26px 0; cursor: pointer; list-style: none; position: relative; }
.svc summary::-webkit-details-marker { display: none; }
.svc summary::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--red); transition: width .45s var(--ease); }
.svc:hover summary::after, .svc[open] summary::after { width: 100%; }
.svc-num { font-family: var(--font-display); font-size: 1.15rem; color: var(--red-text); font-weight: 600; }
.svc-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; transition: transform .3s var(--ease); }
.svc:hover .svc-title { transform: translateX(6px); }
.svc-icon { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; transition: transform .3s var(--ease); }
.svc[open] .svc-icon { transform: rotate(45deg); stroke: var(--red); }
.svc-body { display: grid; gap: 14px; justify-items: start; padding: 0 0 28px 68px; color: var(--muted); max-width: 56ch; animation: fadeUp .4s var(--ease); }
.svc-body .link-arrow { color: var(--red-text); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-head { position: static; }
  .svc summary { grid-template-columns: 40px 1fr 24px; padding: 20px 0; }
  .svc-body { padding-left: 52px; }
}

/* ---------- 3. Método ---------- */
.method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.method li { background: #fff; padding: 40px 30px 44px; display: grid; gap: 12px; align-content: start; position: relative; transition: background-color .3s, color .3s; }
.method li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.method li:hover { background: var(--ink); color: #fff; }
.method li:hover::before { transform: scaleX(1); }
.method li:hover p { color: var(--on-dark-muted); }
.method-num { font-family: var(--font-display); font-size: 3.6rem; line-height: 1; font-weight: 500; color: transparent; -webkit-text-stroke: 1px var(--red); margin-bottom: 12px; }
.method h3 { font-size: 1.05rem; }
.method p { color: var(--muted); transition: color .3s; }
@media (max-width: 900px) { .method { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .method { grid-template-columns: 1fr; } .method li { padding: 30px 24px; } }

/* ---------- 4. La firma ---------- */
#nosotros { position: relative; overflow: hidden; }
#nosotros::before { content: ""; position: absolute; right: -10%; top: -20%; width: 60%; height: 140%; background: linear-gradient(115deg, transparent 48%, rgba(122,31,31,.22) 48.2%, transparent 70%); pointer-events: none; }
.manifesto { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px 72px; align-items: end; }
.manifesto .eyebrow { grid-column: 1 / -1; }
.manifesto h2 { color: #fff; font-size: clamp(2.6rem, 5.2vw, 4.4rem); }
.manifesto h2 em { color: var(--red-light); }
.manifesto-text { display: grid; gap: 16px; color: var(--on-dark-muted); font-size: 1.05rem; }
@media (max-width: 860px) { .manifesto { grid-template-columns: 1fr; } }

.pillars { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 72px; }
.pillar { padding: 32px 28px; background: var(--ink-2); border: 1px solid var(--ink-3); border-top: 2px solid var(--red); display: grid; gap: 12px; align-content: start; }
.pillar h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.9rem; color: #fff; }
.pillar p { color: var(--on-dark-muted); }
.value-list { display: flex; flex-wrap: wrap; gap: 8px; }
.value-list li { padding: 6px 14px; border: 1px solid var(--ink-3); font-size: .85rem; color: var(--on-dark); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

.team-head { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 96px 0 32px; flex-wrap: wrap; }
.sub-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 3.4vw, 2.6rem); color: #fff; }
.team { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.member { display: grid; gap: 4px; align-content: start; }
.member-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 18px; }
.member-photo::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--red); transition: width .5s var(--ease); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .5s, transform .7s var(--ease); }
.member:hover .member-photo img { filter: none; transform: scale(1.04); }
.member:hover .member-photo::after { width: 100%; }
.member h4 { font-size: 1.02rem; color: #fff; }
.member .role { color: var(--red-light); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.member .bio { color: var(--on-dark-muted); font-size: .92rem; margin-top: 8px; }

@media (max-width: 640px) {
  .team { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; scrollbar-width: none; }
  .team::-webkit-scrollbar { display: none; }
  .team > * { flex: 0 0 78%; scroll-snap-align: start; }
}

/* ---------- 5. Clientes y testimonios ---------- */
.clients-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.clients-grid header { display: grid; gap: 14px; }
.logo-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-wall li { height: 96px; display: grid; place-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8rem; letter-spacing: .08em; transition: background-color .3s, color .3s; }
.logo-wall li:hover { background: var(--soft); color: var(--ink); }
.logo-wall img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.logo-wall li:hover img { filter: none; opacity: 1; }
@media (max-width: 860px) { .clients-grid { grid-template-columns: 1fr; } .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.testimonials { position: relative; margin-top: 96px; padding: clamp(32px, 6vw, 72px); background: var(--soft); }
.quote-mark { position: absolute; top: -48px; left: clamp(20px, 5vw, 56px); font-family: var(--font-display); font-size: 11rem; line-height: 1; color: var(--red); }
.t-viewport { overflow: hidden; }
.t-track { display: flex; transition: transform .7s var(--ease); touch-action: pan-y; }
.testimonial { flex: 0 0 100%; margin: 0; padding-right: 8px; }
.testimonial blockquote { margin: 0 0 28px; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.25; max-width: 30ch; }
.testimonial figcaption { display: grid; gap: 2px; font-size: .9rem; color: var(--muted); padding-left: 18px; border-left: 2px solid var(--red); }
.testimonial figcaption strong { color: var(--ink); }
.t-controls { display: flex; align-items: center; gap: 18px; margin: 36px 0 16px; }
.icon-btn { width: 48px; height: 48px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, color .2s; }
.icon-btn:hover { background: var(--ink); color: #fff; }
.dots { display: flex; gap: 8px; }
.dots button { width: 24px; height: 3px; border: 0; padding: 0; background: #c7ccd6; cursor: pointer; transition: width .3s var(--ease), background-color .3s; }
.dots button[aria-current="true"] { width: 44px; background: var(--red); }

/* ---------- Franja CTA ---------- */
.cta-band { background: linear-gradient(110deg, var(--wine) 0%, var(--red) 100%); color: #fff; padding-block: 56px; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 55%, rgba(11,18,32,.25) 55.2%, rgba(11,18,32,.25) 70%, transparent 70.2%); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner p { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1; max-width: 24ch; }

/* ---------- 6. Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-info { display: grid; gap: 24px; min-width: 0; }
.contact-info h2 { color: #fff; }
.info-list { display: grid; gap: 14px; }
.info-list li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; color: var(--on-dark); }
.info-list svg { width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--red-light); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.info-list a { text-decoration: none; }
.info-list a:hover { text-decoration: underline; }
.contact-info .btn-whatsapp { justify-self: start; }
.map { aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; border: 1px solid var(--ink-3); background: var(--ink-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.4) contrast(1.05); }


@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form { display: grid; gap: 22px; padding: clamp(24px, 4vw, 44px); background: var(--ink-2); border: 1px solid var(--ink-3); border-top: 3px solid var(--red); min-width: 0; color: var(--on-dark); }
.form-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; color: #fff; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-weight: 500; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }
.field input, .field select, .field textarea { width: 100%; padding: 10px 0 12px; font: inherit; color: #fff; background: transparent; border: 0; border-bottom: 1px solid #36405a; border-radius: 0; transition: border-color .2s; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239AA3B5' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 24px; }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #5f6880; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--red); box-shadow: 0 1px 0 var(--red); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-bottom-color: var(--error-dark); }
.error { color: var(--error-dark); font-size: .8rem; }
.error:empty { display: none; }
.checkbox { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); padding: 0; border: 0; }
.checkbox label { font-size: .88rem; letter-spacing: 0; text-transform: none; color: var(--on-dark); font-weight: 400; }
.checkbox .error { grid-column: 1 / -1; }
.contact-form .btn { background: var(--red); color: #fff; }
.contact-form .btn:hover { background: var(--wine); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .92rem; }
.form-status:empty { display: none; }
.form-status.ok { color: #7fd6a3; }
.form-status.fail { color: var(--error-dark); }

/* ---------- Pie de página ---------- */
.site-footer { background: #070C16; color: var(--on-dark-muted); padding-block: 72px 32px; font-size: .9rem; border-top: 1px solid var(--ink-3); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr .8fr; gap: 40px; }
.footer-brand { display: grid; gap: 18px; align-content: start; }
.footer-brand .logo { color: #fff; }
.footer-title { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: #fff; font-weight: 600; margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--on-dark-muted); }
.site-footer a:hover { color: #fff; }
.copy { grid-column: 1 / -1; padding-top: 28px; margin-top: 16px; border-top: 1px solid var(--ink-3); font-size: .8rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Botones flotantes ---------- */
.wa-float { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--whatsapp); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.3); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.to-top { position: fixed; right: 28px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 40px; height: 40px; display: grid; place-items: center; background: var(--ink); color: #fff; border: 1px solid var(--ink-3); }

/* ---------- Animación al aparecer ---------- */
.js .reveal.is-pending { opacity: 0; transform: translateY(26px); }
.js .reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }

/* ---------- Aviso de privacidad ---------- */
.legal { padding-block: 64px 96px; }
.legal-body { max-width: 72ch; display: grid; gap: 16px; }
.legal-body h1 { font-size: clamp(2.4rem, 4.4vw, 3.4rem); }
.legal-body h2 { font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; margin-top: 24px; }
.legal-body ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.legal-body .updated { color: var(--muted); font-size: .9rem; }
.legal-body .draft-note { padding: 12px 16px; border: 1px dashed var(--error); color: var(--error); font-size: .9rem; }
.legal-switch { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal-switch a { color: var(--red-text); }
.back-link { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: inherit; }
.site-header.is-static .back-link { color: var(--on-dark-muted); }
.site-header.is-static .back-link:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker li[aria-hidden="true"] { display: none; }
}

/* Números alineados (Cormorant usa números de estilo antiguo por defecto) */
.svc-num, .method-num, .hero-stats strong { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.testimonial blockquote { max-width: 34ch; }

/* ---------- Socios (2 columnas) ---------- */
.team.team-2 { grid-template-columns: repeat(2, minmax(0, 340px)); }
@media (max-width: 640px) { .team.team-2 { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin: 0; padding: 0; gap: 14px; } .team.team-2 > * { flex: none; } }

/* ---------- Sectores ---------- */
.sector-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sector-wall li { display: grid; justify-items: start; gap: 14px; padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .3s, color .3s; }
.sector-wall svg { width: 34px; height: 34px; fill: none; stroke: var(--red); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.sector-wall span { font-weight: 600; font-size: .95rem; }
.sector-wall li:hover { background: var(--ink); color: #fff; }
.sector-wall li:hover svg { stroke: var(--red-light); }
@media (max-width: 860px) { .sector-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Compromisos ---------- */
.commit-eyebrow { margin-bottom: 22px; }
.testimonial figcaption span { max-width: 52ch; }

/* ---------- Mapa ilustrado ---------- */
.map-card { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--ink-3); background: var(--ink-2); text-decoration: none; color: #fff; }
.map-art { position: absolute; inset: 0; background:
  linear-gradient(28deg, transparent 47%, rgba(192,57,43,.55) 47.4%, rgba(192,57,43,.55) 48.6%, transparent 49%),
  linear-gradient(-62deg, transparent 58%, rgba(255,255,255,.16) 58.3%, rgba(255,255,255,.16) 59.6%, transparent 60%),
  linear-gradient(90deg, transparent 31%, rgba(255,255,255,.08) 31.3%, rgba(255,255,255,.08) 32%, transparent 32.3%),
  linear-gradient(0deg, transparent 64%, rgba(255,255,255,.08) 64.3%, rgba(255,255,255,.08) 65%, transparent 65.3%),
  repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 38px),
  repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 38px),
  radial-gradient(circle at 56% 44%, #1d2b4b, var(--ink-2) 65%);
  transition: transform .8s var(--ease); }
.map-card:hover .map-art { transform: scale(1.06); }
.map-pin { position: absolute; left: 56%; top: 44%; transform: translate(-50%, -100%); width: 44px; height: 44px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--red); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.map-pin svg { width: 20px; height: 20px; rotate: 45deg; fill: none; stroke: #fff; stroke-width: 1.8; }
.map-label { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 16px 20px; background: linear-gradient(0deg, rgba(7,12,22,.92), rgba(7,12,22,0)); }
.map-label strong { font-size: .95rem; }
.map-label > span { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red-light); font-weight: 600; }
.map-label svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- Aviso simplificado junto al formulario ---------- */
.form-notice { font-size: .78rem; line-height: 1.6; color: var(--on-dark-muted); padding: 14px 16px; border-left: 2px solid var(--red); background: rgba(255,255,255,.03); }
.form-notice strong { color: var(--on-dark); }
.form-notice a { color: var(--on-dark); }

/* ---------- Experiencia y formación (sustituye a "Nuestro equipo") ---------- */
.expertise { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 72px); margin-top: 96px; align-items: start; }
.expertise-intro { display: grid; gap: 20px; }
.expertise-years { display: grid; gap: 4px; padding: 22px 0; border-top: 1px solid var(--ink-3); border-bottom: 1px solid var(--ink-3); }
.expertise-years strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(3.4rem, 6vw, 4.6rem); line-height: 1; color: #fff; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.expertise-years span { color: var(--red-light); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.expertise-text { color: var(--on-dark-muted); font-size: 1.02rem; }
.credentials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--ink-3); border: 1px solid var(--ink-3); }
.credential { background: var(--ink-2); padding: 30px 26px; display: grid; gap: 10px; align-content: start; position: relative; transition: background-color .3s; }
.credential::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--red); transition: width .45s var(--ease); }
.credential:hover { background: #16213a; }
.credential:hover::before { width: 100%; }
.credential svg { width: 36px; height: 36px; fill: none; stroke: var(--red-light); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.credential h4 { color: #fff; font-size: 1rem; }
.credential p { color: var(--on-dark-muted); font-size: .9rem; }
@media (max-width: 900px) { .expertise { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .credentials { grid-template-columns: 1fr; } }
