/* ============================================================
   SOTEINTEC — Sistema visual del landing page
   Paleta derivada de la identidad corporativa:
   verde lima (#8CC63F) + azul acero (#3E7CB8) + gris carbón
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Marca */
  --brand:        #8cc63f;
  --brand-600:    #77ad2f;
  --brand-700:    #5f8e24;
  --brand-soft:   rgba(140, 198, 63, .14);
  --blue:         #3e7cb8;
  --blue-600:     #2f6ba5;
  --blue-soft:    rgba(62, 124, 184, .12);
  --wa:           #25d366;

  /* Neutros */
  --ink:          #08121b;
  --ink-2:        #0e1d29;
  --ink-3:        #16293a;
  --text:         #1b2733;
  --muted:        #5a6b7b;
  --muted-2:      #8496a6;
  --line:         #e3e9ee;
  --line-strong:  #cfd9e2;
  --bg:           #ffffff;
  --bg-alt:       #f5f8fa;
  --surface:      #ffffff;

  /* Tipografía */
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Escala fluida */
  --fs-h1:   clamp(2.1rem, 1.35rem + 3.2vw, 4rem);
  --fs-h2:   clamp(1.65rem, 1.25rem + 1.7vw, 2.6rem);
  --fs-h3:   clamp(1.12rem, 1.02rem + .4vw, 1.32rem);
  --fs-lead: clamp(1rem, .95rem + .3vw, 1.15rem);

  /* Espaciado / forma */
  --sp-section: clamp(3.75rem, 2.5rem + 5vw, 7rem);
  --radius:     16px;
  --radius-sm:  10px;
  --radius-lg:  24px;
  --shadow-sm:  0 1px 2px rgba(8, 18, 27, .06), 0 2px 8px rgba(8, 18, 27, .04);
  --shadow-md:  0 4px 12px rgba(8, 18, 27, .07), 0 12px 32px rgba(8, 18, 27, .07);
  --shadow-lg:  0 18px 50px rgba(8, 18, 27, .16);
  --header-h:   74px;
  --ease:       cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset y base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.01em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-700); }

img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

svg { width: 100%; height: 100%; display: block; }

/* Iconos: por defecto relleno; .ico-stroke para trazo */
svg path, svg circle, svg rect { fill: currentColor; }
svg.ico-stroke path, svg.ico-stroke circle, svg.ico-stroke rect,
svg.ico-stroke line, svg.ico-stroke polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- 3. Layout ---------- */
.container {
  width: min(100% - 2.5rem, 1200px);
  margin-inline: auto;
}
.container-narrow { width: min(100% - 2.5rem, 820px); }

.section { padding-block: var(--sp-section); }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 1.2rem + 2.4vw, 3.25rem);
}

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: .7rem;
}

.section-lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- 4. Botones ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .78rem 1.4rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease);
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-sm { padding: .55rem 1.05rem; font-size: .87rem; }
.btn-lg { padding: .95rem 1.85rem; font-size: 1.02rem; }

.btn-primary {
  --btn-bg: var(--brand);
  --btn-fg: #0a1508;
  --btn-bd: var(--brand);
  box-shadow: 0 4px 14px rgba(140, 198, 63, .35);
}
.btn-primary:hover {
  --btn-bg: var(--brand-600);
  --btn-bd: var(--brand-600);
  color: #0a1508;
  box-shadow: 0 8px 22px rgba(140, 198, 63, .42);
}

.btn-outline {
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
}
.btn-outline:hover {
  --btn-bd: #fff;
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.btn-ghost {
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
}
.btn-ghost:hover { --btn-bd: var(--brand); color: var(--brand-700); }

.btn-wa {
  --btn-bg: var(--wa);
  --btn-fg: #06301a;
  --btn-bd: var(--wa);
}
.btn-wa:hover { --btn-bg: #1fbb59; --btn-bd: #1fbb59; color: #06301a; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--brand-700);
}
.link-arrow::after {
  content: "→";
  transition: transform .2s var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease),
              box-shadow .25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 18px rgba(8, 18, 27, .07);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav-list a {
  position: relative;
  font-family: var(--font-head);
  font-size: .93rem;
  font-weight: 600;
  color: var(--text);
  padding-block: .35rem;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-list a:hover, .nav-list a.is-active { color: var(--brand-700); }
.nav-list a:hover::after, .nav-list a.is-active::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex: none;
  padding: 12px 10px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .28s var(--ease), opacity .18s var(--ease);
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(8, 18, 27, .5);
  backdrop-filter: blur(2px);
  animation: fade .25s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(600px, 92vh, 900px);
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(6, 15, 23, .95) 0%, rgba(6, 15, 23, .86) 42%, rgba(6, 15, 23, .55) 72%, rgba(6, 15, 23, .72) 100%),
    radial-gradient(90% 65% at 8% 92%, rgba(140, 198, 63, .22) 0%, transparent 60%);
}

.hero-inner { position: relative; max-width: 880px; }

.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero h1 .hl {
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.4rem;
  padding: .45rem 1rem .45rem .8rem;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(140, 198, 63, .7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(140, 198, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(140, 198, 63, 0); }
}

.hero-sub {
  max-width: 62ch;
  font-size: clamp(1.02rem, .96rem + .5vw, 1.24rem);
  color: rgba(255, 255, 255, .82);
  margin-bottom: 2rem;
}
.hero-sub strong { color: #fff; font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  overflow: hidden;
}
.trust-strip li {
  padding: 1.1rem 1.15rem;
  background: rgba(9, 20, 30, .55);
  backdrop-filter: blur(8px);
}
.trust-strip strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
}
.trust-strip span {
  font-size: .82rem;
  color: rgba(255, 255, 255, .72);
  line-height: 1.35;
  display: block;
  margin-top: .2rem;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 14px;
}
.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--brand);
  border-radius: 2px;
  animation: wheel 1.8s infinite var(--ease);
}
@keyframes wheel {
  0%   { opacity: 0; transform: translateY(0); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

/* ---------- 7. Aliados ---------- */
.partners {
  padding-block: 2.25rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.partners-label {
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1.25rem;
}
.partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.25rem);
}
.partners-row img {
  height: 30px;
  width: auto;
  opacity: .6;
  filter: grayscale(1);
  /* los logos vienen con fondo blanco: multiply lo funde con el fondo */
  mix-blend-mode: multiply;
  transition: opacity .25s var(--ease), filter .25s var(--ease);
}
.partners-row img:hover { opacity: 1; filter: grayscale(0); }

/* ---------- 8. Servicios ---------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}

.card {
  position: relative;
  padding: 1.85rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--brand), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card:hover::after { opacity: 1; }

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.15rem;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-700);
}
.card-icon svg { width: 26px; height: 26px; }

.card p { color: var(--muted); font-size: .95rem; }

.card-list {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line-strong);
  display: grid;
  gap: .5rem;
}
.card-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .89rem;
  color: var(--text);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.card-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(150deg, var(--ink-2), var(--ink));
  border-color: transparent;
  color: #fff;
}
.card-cta h3 { color: #fff; }
.card-cta p { color: rgba(255, 255, 255, .74); margin-bottom: 1.5rem; }
.card-cta:hover::after { opacity: 0; }

/* ---------- 9. Soluciones (tabs) ---------- */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.75rem;
  padding: .4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
  box-shadow: var(--shadow-sm);
}
.tab-btn {
  padding: .65rem 1.25rem;
  background: none;
  border: none;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .22s var(--ease), color .22s var(--ease);
}
.tab-btn:hover { color: var(--ink); background: var(--bg-alt); }
.tab-btn.is-active {
  background: var(--ink);
  color: #fff;
}

.tab-panel { animation: panelIn .35s var(--ease); }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.panel-copy p { color: var(--muted); }

.check-list {
  display: grid;
  gap: .7rem;
  margin: 1.4rem 0 1.75rem;
}
.check-list li {
  position: relative;
  padding-left: 2rem;
  font-size: .95rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f8e24' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.panel-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.panel-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- 10. Por qué elegirnos ---------- */
.section-dark {
  position: relative;
  background: linear-gradient(165deg, var(--ink-2) 0%, var(--ink) 55%, #061019 100%);
  color: rgba(255, 255, 255, .82);
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 45% at 85% 12%, rgba(62, 124, 184, .22) 0%, transparent 65%),
              radial-gradient(50% 40% at 5% 95%, rgba(140, 198, 63, .16) 0%, transparent 65%);
  pointer-events: none;
}
.section-dark .container { position: relative; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .kicker { color: var(--brand); }
.section-dark .section-lead { color: rgba(255, 255, 255, .7); }

.why-grid {
  display: grid;
  /* 3 columnas fijas en escritorio: 6 tarjetas llenan exactamente 2 filas */
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  overflow: hidden;
}
.why-item {
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  background: rgba(9, 20, 30, .72);
  transition: background-color .25s var(--ease);
}
.why-item:hover { background: rgba(19, 38, 53, .9); }
.why-num {
  display: block;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--brand);
  margin-bottom: .85rem;
}
.why-item h3 { font-size: 1.13rem; margin-bottom: .55rem; }
.why-item p { font-size: .93rem; color: rgba(255, 255, 255, .68); }

.values-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  font-family: var(--font-head);
  font-size: clamp(1.1rem, .9rem + .9vw, 1.6rem);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
}
.values-row em { color: var(--brand); font-style: normal; }

/* ---------- 11. Experiencia ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
.metric {
  padding: 1.6rem 1.4rem;
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.metric strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.03em;
}
.metric span {
  display: block;
  margin-top: .5rem;
  font-size: .88rem;
  color: var(--muted);
}

.client-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
.client-cloud li {
  padding: .55rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
  transition: border-color .2s var(--ease), color .2s var(--ease),
              transform .2s var(--ease);
}
.client-cloud li:hover {
  border-color: var(--brand);
  color: var(--ink);
  transform: translateY(-2px);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
}
.quote {
  position: relative;
  margin: 0;
  padding: 2.4rem 1.6rem 1.6rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.quote::before {
  content: "”";
  position: absolute;
  top: -.1em;
  left: .5rem;
  font-family: var(--font-head);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  opacity: .35;
}
.quote blockquote {
  margin: 0 0 1.1rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
}
.quote figcaption {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink);
}
.quote figcaption span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .82rem;
  color: var(--muted);
}

/* ---------- 12. Acordeón FAQ ---------- */
.accordion {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-item h3 { margin: 0; font-size: inherit; }

.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.4rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.acc-trigger:hover { background: var(--bg-alt); color: var(--brand-700); }

.acc-icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-soft);
  transition: background-color .2s var(--ease), transform .28s var(--ease);
}
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  margin: -1px 0 0 -5px;
  background: var(--brand-700);
  border-radius: 2px;
  transition: transform .28s var(--ease);
}
.acc-icon::after { transform: rotate(90deg); }
.acc-trigger[aria-expanded="true"] .acc-icon { background: var(--brand); }
.acc-trigger[aria-expanded="true"] .acc-icon::before,
.acc-trigger[aria-expanded="true"] .acc-icon::after { background: #0a1508; }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: rotate(0deg); }

.acc-panel { padding: 0 1.4rem 1.4rem; }
.acc-panel p { color: var(--muted); font-size: .95rem; max-width: 68ch; }

/* ---------- 13. Contacto ---------- */
.section-contact {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 1.15rem;
  margin: 2rem 0;
}
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .ci {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-700);
}
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list strong {
  display: block;
  font-family: var(--font-head);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: .1rem;
}
.contact-list div > a, .contact-list div > span {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
}
.contact-list div > a:hover { color: var(--brand-700); }

.social-row { display: flex; gap: .6rem; }
.social-row a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.social-row a svg { width: 19px; height: 19px; }
.social-row a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.form-wrap {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1.5rem;
  letter-spacing: -.01em;
}

.field { margin-bottom: 1.1rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field label {
  display: block;
  margin-bottom: .4rem;
  font-family: var(--font-head);
  font-size: .87rem;
  font-weight: 600;
  color: var(--text);
}
.req { color: var(--brand-700); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem .95rem;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), background-color .2s var(--ease),
              box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b7b' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #d9534f;
  box-shadow: 0 0 0 3px rgba(217, 83, 79, .12);
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin-bottom: .5rem;
}
.field-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: .18rem;
  accent-color: var(--brand-600);
  cursor: pointer;
}
.field-check label {
  margin: 0;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
}

.error {
  margin: .35rem 0 0;
  font-size: .82rem;
  font-weight: 500;
  color: #c9302c;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}
.form-actions .btn { flex: 1 1 190px; }

.form-status {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-ok {
  background: var(--brand-soft);
  color: var(--brand-700);
  border: 1px solid rgba(140, 198, 63, .4);
}
.form-status.is-error {
  background: rgba(217, 83, 79, .1);
  color: #c9302c;
  border: 1px solid rgba(217, 83, 79, .3);
}

.form-note {
  margin-top: 1rem;
  font-size: .82rem;
  color: var(--muted-2);
  line-height: 1.5;
}

/* ---------- 14. Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .68);
  padding-top: clamp(3rem, 5vw, 4.5rem);
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: clamp(1.75rem, 3vw, 2.75rem);
  padding-bottom: 3rem;
}
.footer-brand img {
  height: 34px;
  width: auto;
  margin-bottom: 1.1rem;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.footer-brand p { font-size: .89rem; line-height: 1.6; max-width: 40ch; }
.footer-addr { color: rgba(255, 255, 255, .5); margin-top: .9rem; }

.footer-col h2 {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a {
  color: rgba(255, 255, 255, .68);
  font-size: .89rem;
}
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .82rem;
  color: rgba(255, 255, 255, .45);
}
.footer-bottom p { margin: 0; }
.footer-legal { max-width: 62ch; text-align: right; }

/* ---------- 15. WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 95;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .45);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover {
  color: #fff;
  transform: scale(1.07);
  box-shadow: 0 10px 28px rgba(37, 211, 102, .55);
}

/* ---------- 16. Animación de entrada ----------
   Sólo se oculta cuando JS está activo (clase .js en <html>),
   para que el contenido siga visible si el script no carga. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   17. RESPONSIVE
   ============================================================ */

/* Escritorio pequeño */
@media (max-width: 1080px) {
  .nav-list { gap: 1.15rem; }
  .nav { gap: 1.25rem; }
  .nav-cta .btn-ghost { display: none; }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .footer-grid .footer-col:last-child { grid-column: 2 / -1; }
  .footer-grid .footer-col:last-child ul {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Tablet y móvil: menú hamburguesa */
@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    z-index: 99;
    width: min(340px, 88vw);
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 1.5rem 1.5rem 2.5rem;
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transform: translateX(102%);
    visibility: hidden;
    transition: transform .32s var(--ease), visibility .32s;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 1.5rem;
  }
  .nav-list li + li { border-top: 1px solid var(--line); }
  .nav-list a {
    display: block;
    padding: 1rem .25rem;
    font-size: 1.05rem;
  }
  .nav-list a::after { display: none; }

  .nav-cta {
    flex-direction: column;
    align-items: stretch;
    gap: .7rem;
  }
  .nav-cta .btn { width: 100%; padding-block: .85rem; font-size: .98rem; }
  .nav-cta .btn-ghost { display: inline-flex; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .panel-grid { grid-template-columns: 1fr; }
  .panel-media { order: -1; }
  .panel-media img { aspect-ratio: 16 / 9; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid .footer-col:last-child { grid-column: auto; }
  .footer-bottom { justify-content: flex-start; }
  .footer-legal { text-align: left; }
}

/* Móvil */
@media (max-width: 640px) {
  :root { --header-h: 66px; }

  .container { width: min(100% - 2rem, 1200px); }
  .container-narrow { width: min(100% - 2rem, 820px); }

  .brand img { height: 28px; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 2.75rem); }
  .hero-bg img { object-position: center 35%; }
  .hero h1 .hl { white-space: normal; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .scroll-hint { display: none; }

  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .grid-cards { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }

  .tab-nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: var(--radius);
  }
  .tab-nav::-webkit-scrollbar { display: none; }
  .tab-btn { flex: none; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-actions .btn { flex: 1 1 100%; }

  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { padding: 1.25rem 1rem; }

  .acc-trigger { padding: 1.05rem 1.1rem; font-size: .96rem; }
  .acc-panel { padding: 0 1.1rem 1.2rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .wa-float svg { width: 27px; height: 27px; }
}

/* Móvil muy angosto (por debajo de 375px) */
@media (max-width: 344px) {
  .trust-strip { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .partners-row { gap: 1.25rem; }
}

/* ---------- 18. Preferencias del usuario ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .wa-float, .scroll-hint, .nav-backdrop { display: none !important; }
  .hero { min-height: auto; color: #000; background: #fff; }
  .hero-bg, .hero::before { display: none; }
  .hero h1, .hero-sub { color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
