/* =====================================================
   GEST26 — Sistema de diseño
   Autoridad comercial industrial con trato humano premium
   ===================================================== */

:root {
  /* Paleta */
  --ink: #14181c;            /* grafito oscuro (texto) */
  --ink-soft: #45505c;       /* texto secundario */
  --ink-faint: #6c7886;      /* texto terciario */
  --petrol: #14365f;         /* azul navy GEST26 (marca) */
  --petrol-deep: #0e2a52;    /* navy profundo del logo (CTA) */
  --steel: #356c9c;          /* azul acero/acento */
  --green: #15a06a;          /* verde precisión (acento puntual) */
  --green-deep: #0e7a4f;
  --paper: #f6f8fb;          /* blanco roto frío */
  --paper-2: #e9eef5;        /* fondo secundario azulado */
  --white: #ffffff;
  --line: #e0e6ee;           /* bordes */
  --line-strong: #ccd5e1;

  --shadow-sm: 0 1px 2px rgba(14, 42, 82, .05), 0 2px 6px rgba(14, 42, 82, .06);
  --shadow-md: 0 8px 24px rgba(14, 42, 82, .10), 0 2px 6px rgba(14, 42, 82, .06);
  --shadow-lg: 0 24px 60px rgba(9, 29, 58, .16), 0 6px 18px rgba(9, 29, 58, .10);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --container: 1180px;

  /* Movimiento — curvas fuertes y duraciones unificadas (Emil Kowalski) */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);        /* ease-out fuerte (entradas, hover) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); /* movimiento en pantalla */
  --dur-fast: 150ms;   /* feedback de pulsación */
  --dur-ui: 220ms;     /* hover, cards, acordeón */
  --dur-reveal: 640ms; /* entradas al hacer scroll */

  /* Espaciado — escala única */
  --space-1: 8px;  --space-2: 16px; --space-3: 24px;
  --space-4: 32px; --space-5: 48px; --space-6: 80px; --space-7: 120px;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--petrol-deep); color: #e9f2f1; }
.section--ink { background: var(--ink); color: #e9eef0; }

.grid { display: grid; gap: 28px; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -.02em; font-weight: 700; color: var(--ink); }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }

.display { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.display__bold { display: block; font-weight: 800; }
.display__em { display: block; font-style: italic; font-weight: 400; color: var(--ink-faint); letter-spacing: -.03em; }
.section--dark .display__em, .section--ink .display__em { color: #8fa8aa; }
h2.title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; letter-spacing: -.015em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--steel);
}
.eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--green); display: inline-block; }
.section--dark .eyebrow, .section--ink .eyebrow { color: #7fd3c0; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); line-height: 1.55; }
.section--dark .lead, .section--ink .lead { color: #b8cccd; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .title { margin: 14px 0 16px; }

.muted { color: var(--ink-faint); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  font-weight: 600; font-size: .98rem; letter-spacing: -.01em;
  transition: transform var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease),
              background var(--dur-ui) ease, color var(--dur-ui) ease, border-color var(--dur-ui) ease;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--dur-ui) var(--ease); }
.btn--primary { background: var(--petrol-deep); color: #fff; box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--light { background: #fff; color: var(--petrol-deep); }
.btn--green { background: var(--green); color: #fff; }
.btn--block { width: 100%; }
/* Feedback de pulsación: la interfaz "escucha" al usuario */
.btn:active { transform: scale(0.97); transition-duration: var(--dur-fast); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover svg { transform: translateX(4px); }
  .btn--primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
  .btn--ghost:hover { border-color: var(--petrol); color: var(--petrol); transform: translateY(-2px); }
  .btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
  .btn--green:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
  .btn--primary:active, .btn--ghost:active, .btn--light:active, .btn--green:active { transform: scale(0.97); }
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(246, 248, 251, .55);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: rgba(224, 230, 238, .6);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; letter-spacing: -.03em; color: var(--ink); }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-content: center;
  background: linear-gradient(135deg, var(--petrol), var(--steel)); color: #fff; font-size: .82rem; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.brand__mark span { transform: translateY(.5px); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); position: relative; transition: color .2s; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--green); transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__cta .btn { padding: 11px 20px; font-size: .9rem; }
.nav__burger { display: none; background: none; border: 0; width: 42px; height: 42px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 78% 12%, rgba(29, 110, 126, .12), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(21, 160, 106, .08), transparent 55%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(15, 61, 74, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 61, 74, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .82rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 26px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(21,160,106,.18); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 4px rgba(21,160,106,.18);} 50%{ box-shadow: 0 0 0 7px rgba(21,160,106,.06);} }

.hero h1 { margin-bottom: 22px; }
.hero .rotator { color: var(--steel); }
.hero__sub { max-width: 540px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__support { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--ink-faint); max-width: 460px; }
.hero__support svg { flex: none; width: 18px; height: 18px; color: var(--green); margin-top: 2px; }

/* Rotador de palabras */
.words { display: inline-grid; overflow: hidden; height: 1.1em; vertical-align: bottom; }
.words b { grid-area: 1/1; font-weight: 800; animation: wordcycle 9s infinite; opacity: 0; transform: translateY(60%); }
.words b:nth-child(1){ animation-delay: 0s; } .words b:nth-child(2){ animation-delay: 3s; } .words b:nth-child(3){ animation-delay: 6s; }
@keyframes wordcycle { 0%{opacity:0;transform:translateY(60%);} 4%,30%{opacity:1;transform:translateY(0);} 36%,100%{opacity:0;transform:translateY(-60%);} }

/* ---------- Orbit 3D / sistema visual del hero ---------- */
.orbit {
  position: relative; width: 100%; aspect-ratio: 1; max-width: 440px; margin: 0 auto;
  transform-style: preserve-3d;
  /* --tx / --ty los actualiza el parallax de ratón; base inclinada para dar profundidad */
  transform: perspective(1300px) rotateX(calc(14deg + var(--ty, 0deg))) rotateY(var(--tx, 0deg));
  transition: transform .4s var(--ease-out);
}
.orbit::before {
  content: ''; position: absolute; inset: 14% 14% auto 14%; height: 72%; border-radius: 50%;
  background: radial-gradient(circle, rgba(29,110,126,.22), transparent 68%);
  filter: blur(26px); transform: translateZ(-40px); pointer-events: none;
}
.orbit__core {
  position: absolute; inset: 0; margin: auto; width: 132px; height: 132px; border-radius: 28px;
  background: linear-gradient(150deg, var(--petrol), var(--steel)); color: #fff;
  display: grid; place-content: center; text-align: center;
  box-shadow: 0 30px 60px rgba(10,44,54,.35), inset 0 1px 0 rgba(255,255,255,.25);
  transform: translateZ(70px); z-index: 5;
}
.orbit__core b { font-size: 1.55rem; letter-spacing: -.04em; line-height: 1; }
.orbit__core small { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; opacity: .82; display: block; margin-top: 6px; }
.orbit__ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1.5px dashed rgba(15,61,74,.16); }
.orbit__ring.r1 { width: 76%; height: 76%; transform: translateZ(20px); animation: spin 28s linear infinite; }
.orbit__ring.r2 { width: 100%; height: 100%; animation: spin 46s linear infinite reverse; }
@keyframes spin { to { transform: translateZ(20px) rotate(360deg); } }
.orbit__ring.r2 { animation-name: spin2; } @keyframes spin2 { to { transform: rotate(-360deg); } }
/* Contenedor que orbita: gira +360, las píldoras giran -360 → se mantienen rectas */
.orbit__nodes { position: absolute; inset: 0; transform-style: preserve-3d; animation: nodesOrbit 46s linear infinite; }
@keyframes nodesOrbit { to { transform: rotate(360deg); } }
.orbit__slot {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) translateZ(46px);
}
.orbit__node {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 9px 14px; border-radius: var(--r-pill); font-size: .82rem; font-weight: 600; white-space: nowrap;
  animation: nodeUpright 46s linear infinite;
}
@keyframes nodeUpright { to { transform: rotate(-360deg); } }
.orbit__node i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 3px rgba(21,160,106,.15); }
.orbit__slot.n1 { --x: 0; --y: -205%; }
.orbit__slot.n2 { --x: 178%; --y: -92%; }
.orbit__slot.n3 { --x: 178%; --y: 92%; }
.orbit__slot.n4 { --x: 0; --y: 205%; }
.orbit__slot.n5 { --x: -178%; --y: 92%; }
.orbit__slot.n6 { --x: -178%; --y: -92%; }

/* ---------- Métricas / strip ---------- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.strip > div { background: var(--paper); padding: 26px 22px; text-align: center; }
.strip b { display: block; font-size: 1.05rem; font-weight: 700; color: var(--petrol); letter-spacing: -.02em; }
.strip span { font-size: .85rem; color: var(--ink-faint); }

/* ---------- Hover cards (efecto foco: hermanos se difuminan) ---------- */
.hovercards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hovercard {
  position: relative; min-height: 148px; border-radius: var(--r-lg); padding: 22px; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-ui) var(--ease), filter var(--dur-ui) var(--ease),
              opacity var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease);
}
.hovercard__k { position: absolute; top: 18px; left: 22px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; opacity: .55; }
.hovercard b { font-size: 1.08rem; letter-spacing: -.01em; }
.hovercard span:not(.hovercard__k) { font-size: .85rem; opacity: .82; margin-top: 4px; }
.hovercard.c1 { background: linear-gradient(155deg, var(--steel), var(--petrol-deep)); }
.hovercard.c2 { background: linear-gradient(155deg, var(--petrol), #0a3540); }
.hovercard.c3 { background: linear-gradient(155deg, var(--green), var(--green-deep)); }
.hovercard.c4 { background: linear-gradient(155deg, #38474d, var(--ink)); }
@media (hover: hover) and (pointer: fine) {
  .hovercards:hover .hovercard:not(:hover) { filter: blur(7px); transform: scale(.94); opacity: .8; }
  .hovercard:hover { transform: scale(1.06); box-shadow: var(--shadow-lg); }
}

/* ---------- Cards genéricas ---------- */
.cards { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-content: center; margin-bottom: 18px;
  background: linear-gradient(140deg, rgba(29,110,126,.12), rgba(21,160,106,.12)); color: var(--petrol);
  transition: transform .4s var(--ease);
}
.card:hover .card__icon { transform: scale(1.08) rotate(-4deg); }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: .96rem; color: var(--ink-soft); }
.card__tag { position: absolute; top: 20px; right: 22px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); }
/* Efecto foco en grupos de cards: los hermanos se atenúan */
@media (hover: hover) and (pointer: fine) {
  .cards--focus:hover .card:not(:hover) { filter: blur(3px); opacity: .68; transform: scale(.98); }
}

/* ---------- Problema (lista de fricciones) ---------- */
.friction { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.friction__item { display: flex; align-items: center; gap: 16px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); transition: transform var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease); }
.friction__item svg { flex: none; width: 22px; height: 22px; color: #c2563f; padding: 9px; box-sizing: content-box; border-radius: 12px; background: var(--paper-2); }
.friction__item p { font-size: .96rem; color: var(--ink-soft); line-height: 1.45; }
.friction__item b { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .friction__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); } }

/* ---------- Método timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.timeline::before { content: ''; position: absolute; top: 26px; left: 8%; right: 8%; height: 2px; background: var(--line-strong); }
.step { position: relative; padding: 0 16px; text-align: center; }
.step__num {
  width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; background: #fff; border: 2px solid var(--line-strong);
  display: grid; place-content: center; font-weight: 800; color: var(--petrol); position: relative; z-index: 2; font-size: 1.1rem;
  transition: transform .4s var(--ease), border-color .4s, background .4s, color .4s;
}
.step:hover .step__num { background: var(--petrol-deep); color: #fff; border-color: var(--petrol-deep); transform: scale(1.08); }
.step h3 { font-size: 1.05rem; margin-bottom: 7px; }
.step p { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Reporting mockup ---------- */
.report { display: grid; grid-template-columns: .95fr 1.05fr; gap: 50px; align-items: center; }
.report__panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.report__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
.report__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.report__bar i:nth-child(1){ background:#e0a04a;} .report__bar i:nth-child(2){ background:#d6d6d6;} .report__bar i:nth-child(3){ background: var(--green);}
.report__bar span { margin-left: 8px; font-size: .8rem; color: var(--ink-faint); font-weight: 600; }
.report__body { padding: 24px; }
.report__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.report__kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; }
.report__kpi b { font-size: 1.5rem; color: var(--petrol); letter-spacing: -.03em; }
.report__kpi span { font-size: .72rem; color: var(--ink-faint); display: block; }
.report__row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.report__row:last-child { border-bottom: 0; }
.report__row .pill { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); }
.pill--green { background: rgba(21,160,106,.14); color: var(--green-deep); }
.pill--blue { background: rgba(29,110,126,.14); color: var(--steel); }
.pill--gray { background: var(--paper-2); color: var(--ink-faint); }
.report__bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; margin-top: 16px; }
.report__bars span { flex: 1; background: linear-gradient(var(--steel), var(--petrol)); border-radius: 4px 4px 0 0; opacity: .85; transition: height .8s var(--ease); }
.report-list { list-style: none; display: grid; gap: 14px; }
.report-list li { display: flex; gap: 12px; font-size: .98rem; color: var(--ink-soft); }
.report-list svg { flex: none; width: 20px; height: 20px; color: var(--green); margin-top: 2px; }

/* ---------- Sectores (glass grid) ---------- */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sector {
  position: relative; padding: 24px 20px; border-radius: var(--r-md); overflow: hidden;
  background: linear-gradient(160deg, #fff, var(--paper-2)); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .4s;
}
.sector:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.sector::before { content: ''; position: absolute; inset: 0; background: linear-gradient(150deg, var(--petrol), var(--steel)); opacity: 0; transition: opacity .4s; z-index: 0; }
.sector:hover::before { opacity: 1; }
.sector:hover * { color: #fff !important; position: relative; z-index: 1; }
.sector svg { width: 26px; height: 26px; color: var(--steel); margin-bottom: 14px; position: relative; z-index: 1; }
.sector b { font-size: 1rem; position: relative; z-index: 1; }

/* ---------- Comparativa ---------- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.compare th, .compare td { padding: 18px 20px; text-align: left; font-size: .95rem; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--paper); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.compare thead th.hl { background: var(--petrol-deep); color: #fff; }
.compare td.hl { background: rgba(21,160,106,.06); font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--green-deep); font-weight: 700; }
.compare .no { color: var(--ink-faint); }
.compare td:first-child { font-weight: 600; color: var(--ink); }

/* ---------- Split / valor ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: -1; }
.pillars { display: grid; gap: 14px; }
.pillar { display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); transition: transform .3s var(--ease), box-shadow .3s; }
.pillar:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.pillar__n { flex: none; width: 36px; height: 36px; border-radius: 10px; background: rgba(21,160,106,.12); color: var(--green-deep); display: grid; place-content: center; font-weight: 800; font-size: .9rem; }
.pillar h4 { font-size: 1rem; margin-bottom: 3px; }
.pillar p { font-size: .92rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; background: none; border: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; text-align: left; font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.faq__q .ic { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-content: center; transition: .3s; position: relative; }
.faq__q .ic::before, .faq__q .ic::after { content: ''; position: absolute; background: var(--petrol); border-radius: 2px; }
.faq__q .ic::before { width: 11px; height: 2px; } .faq__q .ic::after { width: 2px; height: 11px; transition: transform .3s; }
.faq__item.open .faq__q .ic { background: var(--petrol-deep); border-color: var(--petrol-deep); }
.faq__item.open .faq__q .ic::before, .faq__item.open .faq__q .ic::after { background: #fff; }
.faq__item.open .faq__q .ic::after { transform: rotate(90deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a p { padding: 0 4px 22px; color: var(--ink-soft); font-size: .98rem; max-width: 720px; }

/* ---------- CTA band ---------- */
.ctaband { position: relative; overflow: hidden; }
.ctaband__inner { position: relative; z-index: 2; text-align: center; max-width: 720px; margin: 0 auto; }
.ctaband .display { color: #fff; margin-bottom: 18px; }
.ctaband .lead { margin-bottom: 30px; }
.ctaband__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ctaband__glow { position: absolute; inset: 0; z-index: 0; background: radial-gradient(600px 300px at 50% 0%, rgba(21,160,106,.22), transparent 60%); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #aebac0; padding: 64px 0 30px; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer h5 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.footer a { display: block; font-size: .94rem; color: #aebac0; padding: 5px 0; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer__about { font-size: .94rem; max-width: 320px; }
.footer__social { display: flex; gap: 12px; margin-top: 18px; }
.footer__social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-content: center; transition: .3s; }
.footer__social a:hover { background: var(--green); transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 24px; font-size: .85rem; }
.footer__bottom a { display: inline; }

/* ---------- Formulario ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 42px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  font-family: inherit; font-size: .98rem; color: var(--ink); background: var(--paper); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--steel); background: #fff; box-shadow: 0 0 0 4px rgba(29,110,126,.12); }
.field textarea { resize: vertical; min-height: 120px; }
.field .err { color: #c2563f; font-size: .82rem; margin-top: 5px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c2563f; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form__note { font-size: .84rem; color: var(--ink-faint); margin-top: 14px; display: flex; gap: 8px; align-items: flex-start; }
.form__note svg { flex: none; width: 16px; height: 16px; color: var(--green); margin-top: 2px; }
.form-msg { padding: 14px 16px; border-radius: var(--r-sm); margin-bottom: 18px; font-size: .92rem; display: none; }
.form-msg.ok { display: block; background: rgba(21,160,106,.12); color: var(--green-deep); border: 1px solid rgba(21,160,106,.3); }
.form-msg.bad { display: block; background: rgba(194,86,63,.1); color: #a8442f; border: 1px solid rgba(194,86,63,.3); }

.contact-aside .pillar { background: var(--paper); }
.contact-card { background: var(--petrol-deep); color: #dcefea; border-radius: var(--r-lg); padding: 30px; margin-top: 22px; }
.contact-card h4 { color: #fff; margin-bottom: 14px; }
.contact-card a { color: #8fe0c8; }
.contact-card .line { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: .96rem; }
.contact-card .line svg { width: 18px; height: 18px; color: #7fd3c0; }

/* ---------- Page hero (subpáginas) ---------- */
.pagehero { padding: 140px 0 60px; background: var(--paper-2); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.pagehero__grid { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(to right, rgba(15,61,74,.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(15,61,74,.04) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(circle at 30% 0%, #000, transparent 70%); mask-image: radial-gradient(circle at 30% 0%, #000, transparent 70%); }
.pagehero__inner { position: relative; z-index: 2; max-width: 760px; }
.pagehero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 16px 0 18px; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"]{ transition-delay: .08s; }
[data-reveal][data-delay="2"]{ transition-delay: .16s; }
[data-reveal][data-delay="3"]{ transition-delay: .24s; }
[data-reveal][data-delay="4"]{ transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .orbit__ring, .orbit__nodes, .orbit__node, .words b, .hero__badge .dot { animation: none !important; }
  .orbit { transform: perspective(1300px) rotateX(12deg); }
  html { scroll-behavior: auto; }
}
/* En táctil: sin estados hover pegajosos en elementos elevables */
@media (hover: none) {
  .card:hover, .sector:hover, .pillar:hover, .step:hover .step__num { transform: none; box-shadow: var(--shadow-sm); }
}

/* ---------- Admin ---------- */
.admin-body { background: var(--paper-2); min-height: 100vh; }
.login-wrap { min-height: 100vh; display: grid; place-content: center; padding: 24px; }
.login-card { width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 38px; box-shadow: var(--shadow-lg); }
.login-card .brand { justify-content: center; margin-bottom: 6px; }
.login-card p { text-align: center; color: var(--ink-faint); font-size: .9rem; margin-bottom: 24px; }
.admin-shell { display: none; }
.admin-shell.active { display: block; }
.admin-top { background: var(--petrol-deep); color: #fff; padding: 16px 0; position: sticky; top: 0; z-index: 50; }
.admin-top .container { display: flex; align-items: center; justify-content: space-between; }
.admin-top .brand { color: #fff; }
.admin-top .brand .brand__mark { background: rgba(255,255,255,.15); }
.admin-tabs { display: flex; gap: 6px; padding: 22px 0 0; }
.admin-tab { padding: 11px 20px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
.admin-tab.active { background: var(--petrol-deep); color: #fff; border-color: var(--petrol-deep); }
.admin-panel { display: none; padding: 28px 0 80px; }
.admin-panel.active { display: block; }
.admin-group { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; margin-bottom: 20px; }
.admin-group h3 { font-size: 1.05rem; margin-bottom: 4px; }
.admin-group > p { color: var(--ink-faint); font-size: .88rem; margin-bottom: 18px; }
.admin-field { margin-bottom: 16px; }
.admin-field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.admin-field input, .admin-field textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-family: inherit; font-size: .94rem; color: var(--ink); }
.admin-field input:focus, .admin-field textarea:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(29,110,126,.12); }
.admin-field textarea { resize: vertical; min-height: 70px; }
.admin-save { position: sticky; bottom: 0; background: rgba(247,248,247,.9); backdrop-filter: blur(8px); padding: 16px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.admin-save .saved { color: var(--green-deep); font-weight: 600; font-size: .9rem; opacity: 0; transition: opacity .3s; }
.admin-save .saved.show { opacity: 1; }
.lead-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 14px; }
.lead-card.unread { border-left: 4px solid var(--green); }
.lead-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.lead-card h4 { font-size: 1.05rem; }
.lead-card .meta { font-size: .84rem; color: var(--ink-faint); margin: 4px 0 10px; display: flex; flex-wrap: wrap; gap: 14px; }
.lead-card .meta a { color: var(--steel); }
.lead-card .msg { font-size: .95rem; color: var(--ink-soft); background: var(--paper); padding: 12px 14px; border-radius: var(--r-sm); }
.lead-card__actions { display: flex; gap: 8px; }
.lead-card__actions button { padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.lead-card__actions button:hover { border-color: var(--petrol); color: var(--petrol); }
.lead-tag { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(21,160,106,.14); color: var(--green-deep); }
.empty { text-align: center; color: var(--ink-faint); padding: 60px 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .orbit { max-width: 360px; }
  .split, .report, .form-wrap { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__media { order: 0; }
  .cols-3, .cols-4, .sectors, .hovercards { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 36px 12px; }
  .timeline::before { display: none; }
  .friction { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links, .nav__cta .btn { display: none; }
  .nav__burger { display: block; }
  .nav.open .nav__links { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 18px 24px 24px; gap: 2px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .nav.open .nav__links a { padding: 13px 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav.open .nav__links a:last-child { border-bottom: 0; margin-top: 10px; text-align: center; background: var(--petrol-deep); color: #fff; padding: 14px; border-radius: var(--r-pill); font-weight: 600; }
  .nav.open .nav__links a:last-child::after { display: none; }
  .cols-2, .cols-3, .cols-4, .sectors, .hovercards, .strip, .report__kpis, .row-2 { grid-template-columns: 1fr; }
  .strip { border: 1px solid var(--line); }
  .timeline { grid-template-columns: 1fr; }
  .compare { font-size: .82rem; display: block; overflow-x: auto; white-space: nowrap; }
  .hero { padding-top: 120px; }
  .hero__actions .btn { width: 100%; }
  .orbit { max-width: 300px; transform: perspective(1300px) rotateX(10deg); }
  .orbit__node { font-size: .74rem; padding: 7px 11px; }
  .orbit__core { width: 112px; height: 112px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
