/* =====================================================================
   ALMACAR STRATEGY — main.css
   Sistema de diseño heredado de almacar-shop / almacar-rent
   (paleta coral/papel · League Spartan + Libre Franklin · estética editorial)
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;500;600;700;800;900&family=Libre+Franklin:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Quicksand:wght@500;600;700&display=swap');

/* ─── Tokens ────────────────────────────────────────────── */
:root {
  --red:         #e15353;
  --red-deep:    #c43d3b;
  --red-light:   #fcebeb;
  --red-mid:     rgba(225, 85, 83, .12);

  --white:       #ffffff;
  --paper:       #f7f5f2;
  --paper-dark:  #eeebe6;
  --ink:         #1a1a1a;
  --ink-2:       #2e2e2e;
  --ink-3:       #4a4a4a;
  --muted:       #7a7a7a;
  --border:      #d8d4ce;
  --border-dark: #bbb6ae;

  --font-serif:  'League Spartan', sans-serif;
  --font-sans:   'Libre Franklin', system-ui, sans-serif;
  --font-mono:   'Libre Franklin', system-ui, sans-serif;

  --radius:      4px;
  --radius-lg:   8px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg:   0 12px 32px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);

  --transition:  .2s cubic-bezier(.4,0,.2,1);
  --max-w:       1280px;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 80px; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul { list-style: none; }

/* ─── Utilidades ────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }
.section--lg { padding: 7rem 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: rgba(255,255,255,.85); }

/* Borde izquierdo rojo — el detalle de marca */
.accent-bar { border-left: 3px solid var(--red); padding-left: 1rem; }

/* Eyebrow reutilizable (línea roja + texto rojo en mayúsculas) */
.eyebrow {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.25rem;
}
.eyebrow--center { justify-content: center; }
.eyebrow-line { width: 32px; height: 2px; background: var(--red); flex-shrink: 0; }
.eyebrow-text {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red);
}

/* Encabezado de sección */
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  font-weight: 700; line-height: 1.12; color: var(--ink);
  margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--red); }
.section-lead { font-size: 1.05rem; color: var(--ink-3); line-height: 1.7; }

/* ─── Header / Nav ──────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  height: 64px; display: flex; align-items: center; gap: 1.5rem;
}

/* Marca: logo Almacar + etiqueta STRATEGY */
.nav-brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.nav-brand-logo {
  display: block; width: 140px; height: 32px;
  background: url('../assets/logo-almacar.png') left center / contain no-repeat;
}
.nav-brand-tag {
  font-family: var(--font-serif); font-size: .9rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--red);
  border-left: 1px solid var(--border); padding-left: .6rem; line-height: 1;
}

.nav-links { display: flex; gap: 0; margin-left: auto; }
.nav-links a {
  font-size: .875rem; font-weight: 500; color: var(--ink-3);
  padding: .4rem 1rem; letter-spacing: .04em; white-space: nowrap;
  position: relative; transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 1rem; right: 1rem;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }

.nav-cta {
  margin-left: 1rem; display: flex; align-items: center; gap: .4rem;
  padding: .5rem 1.25rem; background: var(--red); color: #fff;
  font-size: .875rem; font-weight: 600; letter-spacing: .04em;
  border-radius: var(--radius); flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--red-deep); transform: translateY(-1px); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; margin-left: auto; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: #fff; flex-direction: column;
  border-bottom: 1px solid var(--border); z-index: 999; box-shadow: var(--shadow);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 1rem 2rem; font-size: .95rem; font-weight: 500;
  border-bottom: 1px solid var(--paper-dark);
  transition: color var(--transition), background var(--transition);
}
.nav-mobile a:hover { color: var(--red); background: var(--red-light); }
.nav-mobile .nav-mobile-cta { color: var(--red); font-weight: 700; background: var(--red-light); }

.nav-overlay {
  position: fixed; inset: 64px 0 0 0; background: rgba(0,0,0,.42);
  opacity: 0; visibility: hidden; z-index: 998;
  transition: opacity .32s ease, visibility 0s linear .32s;
}
.nav-overlay.show { opacity: 1; visibility: visible; transition: opacity .32s ease; }

/* ─── Botones ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; font-size: .9rem; font-weight: 600;
  letter-spacing: .04em; border-radius: var(--radius);
  transition: all var(--transition); cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(225,85,83,.25); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--border-dark); }
.btn-outline:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }
.btn-ghost { background: transparent; color: var(--red); padding-left: 0; padding-right: 0; position: relative; }
.btn-ghost::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.btn-ghost:hover::after { transform: scaleX(1); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn svg { width: 16px; height: 16px; }

/* ─── Hero ──────────────────────────────────────────────── */
.hero { padding-top: 64px; background: var(--paper); overflow: hidden; position: relative; }
.hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem;
  align-items: center; min-height: calc(92vh - 64px);
}
.hero-inner::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 45%; height: 100%;
  background: linear-gradient(135deg, transparent 40%, var(--paper-dark) 40%);
  pointer-events: none;
}
.hero-text { position: relative; z-index: 1; }
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 700; line-height: 1.08; color: var(--ink); margin-bottom: 1.25rem;
}
.hero-title em { font-style: italic; color: var(--red); }
.hero-desc { font-size: 1.05rem; color: var(--ink-3); line-height: 1.7; max-width: 480px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* Tira de stats */
.hero-stats { display: flex; gap: 0; margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.hero-stat { flex: 1; text-align: center; padding: 0 .75rem; border-right: 1px solid var(--border); }
.hero-stat:first-child { text-align: left; padding-left: 0; }
.hero-stat:last-child { border-right: none; }
.hero-stat-value { font-family: var(--font-serif); font-size: 2.15rem; font-weight: 700; color: var(--red); line-height: 1; margin-bottom: .25rem; font-variant-numeric: tabular-nums; }
.hero-stat-label { font-size: .72rem; color: var(--muted); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }

/* Visual del hero: panel "cuadro de mando" */
.hero-visual { position: relative; z-index: 1; }
.hero-panel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.5rem 1.5rem 1.75rem; position: relative;
}
.hero-panel-head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; }
.hero-panel-dots { display: flex; gap: .35rem; }
.hero-panel-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-dark); }
.hero-panel-dots span:first-child { background: var(--red); }
.hero-panel-title { font-family: var(--font-serif); font-size: .95rem; font-weight: 600; color: var(--ink); }
.hero-panel-ref { margin-left: auto; font-size: .72rem; color: var(--muted); font-family: var(--font-mono); }

.kpi-row { display: flex; align-items: center; gap: .9rem; padding: .65rem 0; border-bottom: 1px dashed var(--border); }
.kpi-row:last-of-type { border-bottom: none; }
.kpi-label { font-size: .8rem; color: var(--ink-3); width: 38%; font-weight: 500; }
.kpi-bar { flex: 1; height: 7px; background: var(--paper-dark); border-radius: 99px; overflow: hidden; }
.kpi-bar i { display: block; height: 100%; background: var(--red); border-radius: 99px; width: var(--w, 0); }
.js .hero-visual .kpi-bar i { width: 0; transition: width 1.15s cubic-bezier(.4,0,.2,1); }
.js .hero-visual.is-visible .kpi-bar i { width: var(--w, 0); }
.kpi-val { font-family: var(--font-serif); font-size: .95rem; font-weight: 700; color: var(--ink); width: 3.2rem; text-align: right; }

.hero-panel-foot {
  margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border);
  display: flex; align-items: flex-end; justify-content: space-between;
}
.hero-panel-foot-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hero-panel-foot-val { font-family: var(--font-serif); font-size: 2rem; font-weight: 800; color: var(--red); line-height: 1; }
.hero-chart { display: flex; align-items: flex-end; gap: 4px; height: 38px; }
.hero-chart i { width: 8px; background: var(--red-mid); border-radius: 2px 2px 0 0; transform-origin: bottom; }
.hero-chart i:nth-child(1){height:35%} .hero-chart i:nth-child(2){height:50%}
.hero-chart i:nth-child(3){height:42%} .hero-chart i:nth-child(4){height:68%}
.hero-chart i:nth-child(5){height:80%} .hero-chart i:nth-child(6){height:100%; background:var(--red)}
.js .hero-visual .hero-chart i { transform: scaleY(0); transition: transform .7s cubic-bezier(.4,0,.2,1); }
.js .hero-visual.is-visible .hero-chart i { transform: scaleY(1); }
.js .hero-visual.is-visible .hero-chart i:nth-child(1){ transition-delay:.45s }
.js .hero-visual.is-visible .hero-chart i:nth-child(2){ transition-delay:.52s }
.js .hero-visual.is-visible .hero-chart i:nth-child(3){ transition-delay:.59s }
.js .hero-visual.is-visible .hero-chart i:nth-child(4){ transition-delay:.66s }
.js .hero-visual.is-visible .hero-chart i:nth-child(5){ transition-delay:.73s }
.js .hero-visual.is-visible .hero-chart i:nth-child(6){ transition-delay:.80s }

/* Tarjeta flotante (badge) sobre el panel */
.hero-badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: .9rem 1.1rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .7rem;
}
.hero-badge-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-badge-icon svg { width: 18px; height: 18px; color: #fff; }
.hero-badge-big { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 800; line-height: 1; }
.hero-badge-small { font-size: .68rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .07em; }

/* ─── Ecosistema ────────────────────────────────────────── */
.ecosystem { border-bottom: 1px solid var(--border); background: #fff; }
.ecosystem-inner { display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center; }
.ecosystem-label { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; max-width: 160px; line-height: 1.4; }
.ecosystem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.eco-card {
  position: relative; display: flex; flex-direction: column; gap: .5rem;
  padding: 1.5rem 1.4rem 1.3rem; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: #fff; overflow: hidden;
  transition: transform .4s cubic-bezier(.4,0,.2,1), box-shadow .4s cubic-bezier(.4,0,.2,1), border-color .4s;
}
.eco-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.eco-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-dark); }
.eco-card:hover::before { transform: scaleX(1); }

.eco-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .35rem; }
.eco-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-light); color: var(--red);
  transition: background .4s, color .4s, transform .4s cubic-bezier(.34,1.56,.64,1);
}
.eco-icon svg { width: 22px; height: 22px; }
.eco-card:hover .eco-icon { background: var(--red); color: #fff; transform: rotate(-8deg) scale(1.06); }
.eco-index { font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); }
.eco-name { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); line-height: 1; }
.eco-name b { color: var(--red); font-weight: 700; }
.eco-role { font-size: .85rem; color: var(--ink-3); line-height: 1.5; }

.eco-go {
  margin-top: auto; padding-top: .9rem;
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red);
}
.eco-go-arrow {
  width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--red);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .35s cubic-bezier(.4,0,.2,1);
}
.eco-go-arrow svg { width: 13px; height: 13px; transition: transform .35s cubic-bezier(.4,0,.2,1); }
.eco-card:hover .eco-go-arrow { background: var(--red); }
.eco-card:hover .eco-go-arrow svg { color: #fff; transform: translateX(3px); }

/* Card activa (strategy) */
.eco-card--active { background: var(--red); border-color: var(--red); }
.eco-card--active::before { display: none; }
.eco-card--active:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(225,85,83,.35); border-color: var(--red); }
.eco-card--active .eco-name, .eco-card--active .eco-name b { color: #fff; }
.eco-card--active .eco-role { color: rgba(255,255,255,.85); }
.eco-card--active .eco-index { color: rgba(255,255,255,.6); }
.eco-card--active .eco-icon { background: rgba(255,255,255,.18); color: #fff; }
.eco-card--active:hover .eco-icon { background: rgba(255,255,255,.28); color: #fff; }
.eco-here {
  margin-top: auto; padding-top: .9rem;
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff;
}
.eco-here-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #fff; flex-shrink: 0; }
.eco-here-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: #fff;
  animation: ecoPulse 1.9s ease-out 5;
}
@keyframes ecoPulse { 0% { transform: scale(1); opacity: .65; } 100% { transform: scale(2.8); opacity: 0; } }

/* ─── Servicios (4 pilares) ─────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; transition: all var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 0;
  background: var(--red); transition: height var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-dark); }
.service-card:hover::before { height: 100%; }
.service-num { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); letter-spacing: .1em; }
.service-icon {
  width: 52px; height: 52px; border-radius: var(--radius-lg);
  background: var(--red-light); color: var(--red);
  display: flex; align-items: center; justify-content: center; margin: .75rem 0 1.25rem;
  transition: background .35s, color .35s, transform .35s cubic-bezier(.34,1.56,.64,1);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card:hover .service-icon { background: var(--red); color: #fff; transform: translateY(-3px) rotate(-4deg); }
.service-card h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--ink); margin-bottom: .6rem; }
.service-card > p { font-size: .95rem; color: var(--ink-3); line-height: 1.65; margin-bottom: 1.25rem; }
.service-list { display: flex; flex-direction: column; gap: .55rem; }
.service-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: var(--ink-2); }
.service-list svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; margin-top: .2rem; }

/* ─── Método ────────────────────────────────────────────── */
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.method-step { position: relative; padding-top: 1.5rem; border-top: 2px solid var(--border); }
.method-step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-serif); font-size: 1rem; font-weight: 700; color: var(--red);
  position: absolute; top: -1.5rem; left: 0; background: var(--paper); padding-right: .6rem;
}
.method-step.on-white::before { background: #fff; }
.method-step h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-bottom: .6rem; }
.method-step p { font-size: .9rem; color: var(--ink-3); line-height: 1.65; }

/* ─── Resultados + cita ─────────────────────────────────── */
.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.result-stat { text-align: center; padding: 1.5rem 1rem; border-right: 1px solid rgba(255,255,255,.12); }
.result-stat:last-child { border-right: none; }
.result-value { font-family: var(--font-serif); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 800; color: var(--red); line-height: 1; margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.result-label { font-size: .82rem; color: rgba(255,255,255,.65); letter-spacing: .05em; }

.quote-block { max-width: 880px; margin: 4rem auto 0; text-align: center; }
.quote-block .eyebrow { justify-content: center; }
.quote-text { font-family: var(--font-serif); font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 600; line-height: 1.3; color: #fff; }
.quote-text em { color: var(--red); font-style: italic; }
.quote-author { margin-top: 1.5rem; font-size: .85rem; color: rgba(255,255,255,.55); letter-spacing: .05em; text-transform: uppercase; }

/* ─── Equipo ────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.team-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; transition: all var(--transition); }
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--border-dark); }
.team-avatar {
  width: 60px; height: 60px; border-radius: 50%; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; margin-bottom: 1.1rem;
}
.team-card h3 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: .15rem; }
.team-role { font-size: .8rem; color: var(--red); font-weight: 600; letter-spacing: .03em; margin-bottom: .75rem; }
.team-card p { font-size: .85rem; color: var(--ink-3); line-height: 1.6; }

/* ─── FAQ ───────────────────────────────────────────────── */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem 0; text-align: left;
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--ink);
  transition: color var(--transition);
}
.faq-q:hover { color: var(--red); }
.faq-icon { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; top: 50%; left: 50%; background: var(--red);
  transform: translate(-50%, -50%); transition: transform var(--transition);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.faq-a-inner { padding: 0 0 1.4rem; font-size: .95rem; color: var(--ink-3); line-height: 1.7; max-width: 90%; }

/* ─── Contacto ──────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-aside .section-title { margin-bottom: 1.25rem; }
.contact-points { margin: 2rem 0; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-point { display: flex; gap: 1rem; align-items: flex-start; }
.contact-point-icon { width: 42px; height: 42px; border-radius: var(--radius); background: var(--red-light); color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-point-icon svg { width: 20px; height: 20px; }
.contact-point h4 { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; margin-bottom: .15rem; }
.contact-point p, .contact-point a { font-size: .9rem; color: var(--ink-3); }
.contact-point a:hover { color: var(--red); }
.contact-whatsapp {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: .5rem;
  padding: .8rem 1.5rem; background: #25D366; color: #fff; font-weight: 600;
  border-radius: var(--radius); transition: all var(--transition);
}
.contact-whatsapp:hover { background: #1da851; transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-whatsapp svg { width: 20px; height: 20px; }

.contact-form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: .4rem; letter-spacing: .02em; }
.form-field label .req { color: var(--red); }
.form-field input, .form-field textarea {
  width: 100%; padding: .75rem .9rem; font-family: var(--font-sans); font-size: .9rem;
  color: var(--ink); background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius); transition: border-color var(--transition), background var(--transition);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--red); background: #fff; }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .78rem; color: var(--muted); line-height: 1.5; margin-bottom: 1.25rem; }
.form-consent input { margin-top: .15rem; accent-color: var(--red); }
.form-consent a { color: var(--red); }
.contact-form .btn-primary { width: 100%; justify-content: center; }
.form-note { font-size: .75rem; color: var(--muted); text-align: center; margin-top: .85rem; }

/* Estados de validación */
.form-field input.invalid, .form-field textarea.invalid {
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px var(--red-mid);
}
.form-error {
  display: block; color: var(--red-deep);
  font-size: .78rem; font-weight: 500; margin-top: .4rem;
}
.form-consent.invalid { color: var(--red-deep); }
.form-consent.invalid input { outline: 2px solid var(--red); outline-offset: 2px; }

/* ─── Banda CTA ─────────────────────────────────────────── */
.cta-band { background: var(--red); color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; line-height: 1.2; max-width: 640px; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: .5rem; max-width: 560px; }

/* ─── Footer ────────────────────────────────────────────── */
.footer { background: var(--ink); padding-top: 4rem; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem 3rem;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 3rem;
}
.footer-brand .footer-logo {
  display: block; width: 190px; height: 40px;
  background: url('../assets/logo-almacar-blanco.png') left center / contain no-repeat;
  margin-bottom: 1rem;
}
.footer-brand .footer-tag {
  display: inline-block; font-family: var(--font-serif); font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red);
  border: 1px solid rgba(225,85,83,.4); border-radius: var(--radius); padding: .2rem .55rem; margin-bottom: 1.1rem;
}
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,.45); line-height: 1.7; max-width: 320px; }
.footer-social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.footer-social a {
  width: 32px; height: 32px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); transition: all var(--transition);
}
.footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a, .footer-col p { font-size: .875rem; color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-col p { margin-bottom: .4rem; }
.footer-col p a { color: rgba(255,255,255,.7); }
.footer-col p a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 1.25rem 2rem;
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.3); }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { font-size: .78rem; color: rgba(255,255,255,.3); transition: color var(--transition); }
.footer-legal a:hover { color: #fff; }

/* ─── Cookie banner ─────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 1.5rem; left: 1.5rem; right: 1.5rem; max-width: 460px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.25rem 1.4rem; z-index: 1100;
  transform: translateY(160%); transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: .82rem; color: var(--ink-3); line-height: 1.6; margin-bottom: .9rem; }
.cookie-banner p a { color: var(--red); }
.cookie-actions { display: flex; gap: .6rem; }
.cookie-actions .btn { padding: .55rem 1.1rem; font-size: .82rem; }

/* ─── Legal pages ───────────────────────────────────────── */
.legal-hero { padding-top: 128px; background: var(--paper); }
.legal-page { max-width: 820px; margin: 0 auto; padding: 3.5rem 2rem 5rem; }
.legal-title { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 700; margin-bottom: .5rem; }
.legal-updated { font-size: .8rem; color: var(--muted); margin-bottom: 2.5rem; font-family: var(--font-mono); }
.legal-page h2 { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; margin: 2rem 0 .75rem; color: var(--ink); }
.legal-page p, .legal-page li { font-size: .95rem; color: var(--ink-3); line-height: 1.75; margin-bottom: .85rem; }
.legal-page ul { list-style: disc; padding-left: 1.4rem; }
.legal-page a { color: var(--red); }

/* ─── Scroll reveal ─────────────────────────────────────── */
.reveal { transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .js .hero-visual .kpi-bar i { width: var(--w, 0) !important; }
  .js .hero-visual .hero-chart i { transform: none !important; }
  .hero-badge, .eco-here-dot::after { animation: none !important; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { gap: 3rem; }
  .services-grid { gap: 1.25rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 920px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 3rem; min-height: 0; }
  .hero-inner::before { display: none; }
  .hero-visual { max-width: 460px; margin: 1rem auto 1.5rem; }
  .hero-badge { left: 0; }
  .method-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .result-stat:nth-child(2) { border-right: none; }
  .result-stat { border-bottom: 1px solid rgba(255,255,255,.12); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .ecosystem-inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .ecosystem-label { max-width: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 3.5rem 0; }
  .section--lg { padding: 4.5rem 0; }
  .hero-inner { padding: 2.5rem 1.25rem 3rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.25rem 0; border-top: none; padding-top: 1rem; }
  .hero-stat { flex: 0 0 50%; text-align: left; border-right: none; padding: 0; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .ecosystem-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .result-stat { border-right: none; }
  .team-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cookie-banner { left: 1rem; right: 1rem; bottom: 1rem; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}
