/* ==========================================================================
   CONSULFINCO — Sistema de diseño 2026
   Paleta de marca: rojo #EE1109 · carbón #2C2F2E · blanco
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Marca */
  --red: #ee1109;
  --red-600: #c60d06;
  --red-700: #9d0a04;
  --red-tint: #fdecea;

  /* Neutros */
  --ink: #0e1113;
  --carbon: #2c2f2e;
  --carbon-2: #212528;
  --slate: #5b6268;
  --muted: #7a8288;
  --line: #e2e5e8;
  --line-soft: #eef0f2;
  --mist: #f6f7f8;
  --paper: #ffffff;

  /* Acentos de datos */
  --up: #1f9d5c;
  --down: var(--red);

  /* Tipografía */
  --serif: "Source Serif 4", "Georgia", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Métrica */
  --container: 1240px;
  --gutter: 24px;
  --nav-h: 84px;
  --radius: 2px;

  /* Sombras */
  --sh-1: 0 1px 2px rgba(14, 17, 19, .06), 0 4px 14px rgba(14, 17, 19, .05);
  --sh-2: 0 10px 30px rgba(14, 17, 19, .10), 0 2px 6px rgba(14, 17, 19, .06);
  --sh-3: 0 24px 60px rgba(14, 17, 19, .16);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--carbon);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 880px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #cfd4d8; }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }

/* ---------- 4. Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--red);
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); display: block; }
.eyebrow--center { justify-content: center; }
.section-title { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 18px; }
.section-lead { font-size: 19px; color: var(--slate); max-width: 68ch; margin-bottom: 0; }
.section-head { margin-bottom: 56px; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }
.rule { width: 64px; height: 3px; background: var(--red); margin: 0 0 26px; }
.rule--center { margin-left: auto; margin-right: auto; }
.small { font-size: 14px; color: var(--muted); }

/* ---------- 5. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; cursor: pointer; transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-600); box-shadow: 0 8px 22px rgba(238, 17, 9, .28); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--carbon); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn--light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { padding: 10px 18px; font-size: 12.5px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--red); border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.link-arrow:hover { border-color: var(--red); gap: 14px; }

/* ---------- 6. Navegación ---------- */
.site-header { position: sticky; top: 0; z-index: 900; }
.nav {
  background: rgba(255, 255, 255, .96); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.nav.is-stuck { box-shadow: var(--sh-1); }
.nav .container { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 44px; width: auto; }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.brand-name span { color: var(--red); }
.brand-tag { display: block; font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-menu > li > a {
  display: block; padding: 10px 14px; font-size: 13px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--carbon);
  position: relative; transition: color .2s;
}
.nav-menu > li > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav-menu > li > a:hover { color: var(--ink); }
.nav-menu > li > a:hover::after, .nav-menu > li > a.is-active::after { transform: scaleX(1); }
.nav-menu > li > a.is-active { color: var(--ink); }
.nav-cta { margin-left: 14px; }
/* El botón del menú conserva su color propio pese a la regla de los enlaces. */
.nav-menu > li.nav-cta > a { color: #fff; padding: 10px 18px; }
.nav-menu > li.nav-cta > a:hover { color: #fff; }
.nav-menu > li.nav-cta > a::after { display: none; }
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-left: auto; background: none;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 8. Ticker de indicadores ---------- */
.ticker-wrap {
  background: var(--carbon-2); border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  overflow: hidden; padding: 11px 0; position: relative;
}
.ticker-wrap::before, .ticker-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.ticker-wrap::before { left: 0; background: linear-gradient(90deg, var(--carbon-2), transparent); }
.ticker-wrap::after { right: 0; background: linear-gradient(270deg, var(--carbon-2), transparent); }
.ticker { display: flex; width: max-content; animation: ticker 68s linear infinite; }
.ticker-wrap:hover .ticker { animation-play-state: paused; }
.ticker__item {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 0 26px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em;
  color: #98a0a6; white-space: nowrap; border-right: 1px solid rgba(255, 255, 255, .07);
}
.ticker__item b { font-weight: 500; color: #cfd4d8; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.ticker__item i { font-style: normal; color: var(--up); font-weight: 600; }
/* Periodo de referencia de cada cifra: ningún dato se presenta como "de hoy". */
.ticker__item em { font-style: normal; color: #6b7379; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.ticker__item.is-brand { color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.ticker__item.is-brand em { color: var(--red); text-transform: none; letter-spacing: .04em; font-size: 11px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- 9. Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 88% 12%, rgba(238, 17, 9, .20), transparent 62%),
    linear-gradient(180deg, #14181b 0%, #0b0d0f 100%);
}
.hero::after {
  content: ""; position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: 620px; height: 620px; background: url("../assets/logoNoLetters.png") center/contain no-repeat;
  opacity: .05; filter: grayscale(1) brightness(3); pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; padding: 104px 0 96px; }
.hero-eyebrow { color: #fff; opacity: .85; }
.hero-eyebrow::before { background: var(--red); }
.hero h1 { font-size: clamp(38px, 5vw, 64px); color: #fff; line-height: 1.06; margin-bottom: 26px; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-lead { font-size: 19.5px; color: #b9c0c6; max-width: 56ch; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }
/* Tres columnas fijas: evita que el tercer dato caiga solo a una segunda fila. */
.hero-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 26px;
}
.hero-meta div strong { display: block; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); color: #fff; line-height: 1; margin-bottom: 8px; }
.hero-meta div span { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #8b9399; line-height: 1.4; }

.hero-card {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px); padding: 38px; border-radius: var(--radius);
}
.hero-card h3 { font-size: 21px; color: #fff; margin-bottom: 22px; }
.hero-card ul li {
  display: flex; gap: 14px; padding: 15px 0; border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: 15px; color: #c3c9ce; align-items: flex-start;
}
.hero-card ul li:first-child { border-top: 0; padding-top: 0; }
.hero-card ul li svg { width: 18px; height: 18px; color: var(--red); flex: none; margin-top: 2px; }
.hero-card .btn { margin-top: 24px; }

/* Hero interior (páginas secundarias) */
.page-hero { position: relative; background: var(--ink); color: #fff; padding: 84px 0 72px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 380px at 92% 0%, rgba(238, 17, 9, .22), transparent 60%), linear-gradient(180deg, #14181b, #0c0e10);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 54px); color: #fff; margin-bottom: 18px; }
.page-hero p { font-size: 19px; color: #b9c0c6; max-width: 64ch; margin: 0; }
.breadcrumb { display: flex; gap: 10px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: #8b9399; margin-bottom: 22px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: var(--red); }

/* ---------- 10. Franja de valor ---------- */
.value-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.value-strip .container { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.value-strip p { font-size: 18.5px; color: var(--slate); margin: 0; max-width: 90ch; }
.value-strip p strong { color: var(--ink); font-weight: 600; }

/* ---------- 11. Tarjetas ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; position: relative; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  height: 100%;
}
.card::before {
  content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px;
  background: var(--red); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-soft); }
.card:hover::before { transform: scaleY(1); }
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { color: var(--slate); font-size: 15.5px; margin-bottom: 0; }
.card-icon {
  width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
  background: var(--red-tint); border-radius: 50%; margin-bottom: 22px;
}
.card-icon svg { width: 24px; height: 24px; color: var(--red); }
.card-num {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--muted); margin-bottom: 18px; display: block;
}

/* Tarjeta de servicio */
.service-card { display: flex; flex-direction: column; }
.service-card .service-img {
  width: 74px; height: 74px; object-fit: contain; margin-bottom: 22px;
}
.service-card ul { margin: 18px 0 26px; }
.service-card ul li {
  position: relative; padding: 7px 0 7px 20px; font-size: 15px; color: var(--slate);
  border-top: 1px solid var(--line-soft);
}
.service-card ul li:first-child { border-top: 0; }
.service-card ul li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 6px; height: 6px;
  background: var(--red); border-radius: 50%;
}
.service-card .link-arrow { margin-top: auto; align-self: flex-start; }

/* ---------- 12. Pilares / valores ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); background: var(--paper); }
.pillars > div {
  padding: 44px 38px 48px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; transition: background .3s;
}
.pillars > div:last-child { border-right: 0; }
.pillars > div:hover { background: var(--mist); }
.pillars h3 {
  font-size: 12.5px; font-family: var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); margin: 0 0 18px; padding-bottom: 16px; position: relative;
}
.pillars h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--red); }
.pillars p { font-size: 15.5px; color: var(--slate); margin: 0; line-height: 1.75; }

/* ---------- 13. Perfil CEO ---------- */
.profile { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center; }
.profile-mark {
  background: var(--ink); padding: 54px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); position: relative; overflow: hidden;
}
.profile-mark::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 260px at 50% 0%, rgba(238, 17, 9, .25), transparent 70%);
}
.profile-mark img { width: 160px; position: relative; z-index: 2; }
.profile blockquote { margin: 0; }
.profile .role { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.profile h3 { font-size: 30px; margin-bottom: 18px; }
.profile p { color: var(--slate); font-size: 16.5px; }

/* ---------- 14. Muro de clientes ---------- */
.client-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.client-search { position: relative; flex: 1; max-width: 340px; }
.client-search input {
  width: 100%; padding: 12px 16px 12px 42px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--paper); font-size: 15px; transition: border-color .2s;
}
.client-search input:focus { border-color: var(--ink); outline: none; }
.client-search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.client-count { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .06em; }

.client-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.client-grid figure {
  margin: 0; background: var(--paper); aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center;
  padding: 22px; transition: background .3s, transform .3s var(--ease); position: relative;
}
.client-grid figure:hover { background: var(--mist); z-index: 2; }
.client-grid img {
  max-height: 100%; max-width: 100%; object-fit: contain;
  transition: transform .35s var(--ease);
}
.client-grid figure:hover img { transform: scale(1.06); }
.client-grid figure.is-hidden { display: none; }
.client-empty { padding: 60px; text-align: center; color: var(--muted); grid-column: 1 / -1; background: var(--paper); }

/* ---------- 15. Instalaciones ---------- */
.facility { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: start; }
.facility-specs { border-top: 1px solid var(--line); }
.facility-specs li { display: flex; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; align-items: center; }
.facility-specs li svg { width: 18px; height: 18px; color: var(--red); flex: none; }
.facility-price {
  display: flex; align-items: baseline; gap: 12px; margin: 30px 0 6px;
}
.facility-price strong { font-family: var(--serif); font-size: 44px; color: var(--ink); line-height: 1; }
.facility-price span { font-size: 14px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery--wide { grid-template-columns: 1.6fr 1fr 1fr; }

/* ---------- 16. Datos / cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); }
.stats > div { background: var(--ink); padding: 38px 30px; }
.stats strong { display: block; font-family: var(--serif); font-size: 42px; color: #fff; line-height: 1; margin-bottom: 10px; }
.stats span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #8b9399; }

/* ---------- 17. CTA ---------- */
.cta-band { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 15% 50%, rgba(238, 17, 9, .22), transparent 65%);
}
.cta-band .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 44px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); margin-bottom: 12px; }
.cta-band p { color: #b9c0c6; margin: 0; font-size: 18px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 18. Formulario ---------- */
.form-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--carbon); margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14, 17, 19, .06);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-note { font-size: 13.5px; color: var(--muted); margin-top: 16px; }
.form-status { display: none; padding: 14px 16px; border-left: 3px solid var(--red); background: var(--red-tint); font-size: 15px; margin-bottom: 22px; }
.form-status.is-visible { display: block; }

.contact-info { background: var(--mist); padding: 40px; border-radius: var(--radius); }
.contact-info h3 { font-size: 20px; margin-bottom: 24px; }
.contact-info li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-info li:first-of-type { border-top: 0; padding-top: 0; }
.contact-info li svg { width: 19px; height: 19px; color: var(--red); flex: none; margin-top: 3px; }
.contact-info .label { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.contact-info .value { font-size: 16px; color: var(--ink); }
.contact-info a.value:hover { color: var(--red); }
.map-embed { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-embed iframe { display: block; width: 100%; height: 260px; border: 0; }

/* ---------- 19. Acordeón ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink);
}
.accordion-trigger:hover { color: var(--red); }
.accordion-trigger .chev { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; flex: none; transition: transform .3s var(--ease), background .3s, border-color .3s; }
.accordion-trigger .chev svg { width: 14px; height: 14px; }
.accordion-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); background: var(--red); border-color: var(--red); color: #fff; }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.accordion-panel > div { padding: 0 0 26px; color: var(--slate); font-size: 16px; }
.accordion-panel ul li { position: relative; padding: 8px 0 8px 22px; }
.accordion-panel ul li::before { content: ""; position: absolute; left: 0; top: 17px; width: 6px; height: 6px; background: var(--red); border-radius: 50%; }

/* ---------- 20. Enlaces de interés ---------- */
.links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.links-grid a {
  display: flex; align-items: center; justify-content: center; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; height: 96px;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.links-grid a:hover { box-shadow: var(--sh-2); transform: translateY(-3px); }
.links-grid img { max-height: 100%; max-width: 100%; object-fit: contain; }

/* ---------- 21. Footer ---------- */
.site-footer { background: var(--ink); color: #9aa2a8; padding: 76px 0 0; font-size: 15px; }
/* Cuatro bloques: marca, servicios, firma y contacto. */
.footer-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1.15fr; gap: 48px; padding-bottom: 56px; }
.site-footer h4 {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  color: #fff; margin: 0 0 20px; padding-bottom: 14px; position: relative;
}
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--red); }
.site-footer a { color: #9aa2a8; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-col ul li { padding: 0; }
.footer-col > ul > li + li { margin-top: 12px; }
.footer-col nav ul li a, .footer-col ul li a { display: inline-block; }
/* La lista de secciones se alinea con la línea base del bloque de contacto. */
.footer-col a { position: relative; }
.footer-contact li { line-height: 1.6; }
.footer-contact .label {
  display: block; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: #5f686e; margin-bottom: 4px;
}
.footer-brand img { height: 52px; margin-bottom: 22px; }
.footer-brand p { max-width: 38ch; font-size: 15px; line-height: 1.75; margin-bottom: 0; }
.footer-social { display: flex; gap: 12px; margin-top: 26px; }
.footer-social a {
  width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 50%;
  color: #b6bdc2; display: grid; place-items: center;
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; display: block; }
/* El aviso legal cierra el bloque superior; bajo la línea sólo va el crédito. */
.footer-legal { margin: 0 0 26px; font-size: 13.5px; color: #9aa2a8; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 26px 0 32px;
  display: flex; justify-content: center; font-size: 13.5px;
}
.footer-bottom .powered {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: .04em; color: #7f878d;
}
.footer-bottom .powered > span { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.footer-bottom .powered a {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 9px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 100px;
  transition: border-color .25s, background .25s;
}
.footer-bottom .powered a:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .05); }
.footer-bottom .powered img { width: 22px; height: auto; display: block; }
.footer-bottom .powered strong { color: #fff; font-weight: 600; letter-spacing: .01em; font-size: 14px; }

/* ---------- 22. Volver arriba ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; width: 46px; height: 46px; z-index: 800;
  background: var(--ink); color: #fff; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--sh-2);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); }
.to-top svg { width: 18px; height: 18px; }

/* Al cargar ocupa la esquina; sube sólo cuando aparece el botón "volver arriba". */
.wa-float {
  position: fixed; right: 26px; bottom: 26px; width: 46px; height: 46px; z-index: 800;
  background: #25d366; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--sh-2);
  transition: transform .3s var(--ease), bottom .3s var(--ease);
}
body.has-to-top .wa-float { bottom: 84px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 24px; height: 24px; color: #fff; }

/* ---------- 23. Animación de entrada ---------- */
/* Sin JavaScript el contenido siempre es visible: sólo ocultamos si hay JS. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }
.reveal[data-delay="5"] { transition-delay: .45s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 24. Responsive ---------- */
@media (max-width: 1080px) {
  .client-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 44px; }
  .links-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  :root { --nav-h: 72px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--paper); flex-direction: column; align-items: stretch; gap: 0;
    padding: 18px var(--gutter) 40px; border-top: 1px solid var(--line);
    transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto;
  }
  .nav-menu.is-open { transform: none; }
  .nav-menu > li > a { padding: 16px 0; font-size: 15px; border-bottom: 1px solid var(--line-soft); }
  .nav-menu > li > a::after { display: none; }
  .nav-menu > li > a.is-active { color: var(--red); }
  .nav-cta { margin: 22px 0 0; }
  .nav-cta .btn { width: 100%; }
  body.nav-open { overflow: hidden; }

  .hero-grid { grid-template-columns: 1fr; gap: 44px; padding: 68px 0 64px; }
  .hero::after { width: 380px; height: 380px; opacity: .04; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .pillars > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .pillars > div:last-child { border-bottom: 0; }
  .profile { grid-template-columns: 1fr; gap: 34px; }
  .profile-mark { padding: 42px; }
  .facility { grid-template-columns: 1fr; gap: 40px; }
  .form-grid { grid-template-columns: 1fr; gap: 44px; }
  .value-strip .container, .cta-band .container { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery, .gallery--wide { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { text-align: center; }
  .field-row { grid-template-columns: 1fr; }
  .hero-meta { gap: 18px; }
  .hero-meta div span { font-size: 10.5px; letter-spacing: .06em; }
  .section { padding: 60px 0; }
  .card, .contact-info { padding: 26px; }
  .brand-name { font-size: 18px; }
  .brand img { height: 38px; }
  .to-top, .wa-float { right: 16px; }
  .to-top { bottom: 16px; }
  .wa-float { bottom: 16px; }
  body.has-to-top .wa-float { bottom: 72px; }
}

@media (max-width: 420px) {
  .client-grid { grid-template-columns: repeat(2, 1fr); }
}
