/* ==========================================================================
   MASTER ACADEMIC — DESIGN SYSTEM
   Plantilla base para todas las páginas del sitio comercial.
   Paleta: vino #5D022B + teal #037C91 + navy frío + acento ámbar puntual.
   Tipografía: Manrope (títulos) + Inter (cuerpo).
   ========================================================================== */

:root {
  /* ---- Color: marca (#5D022B / #037C91) ---- */
  --wine-900: #3a011b;
  --wine-700: #5D022B;
  --wine-600: #7a1842;
  --wine-100: #f7e6ed;

  --navy-900: #0c1524;
  --navy-800: #132033;
  --navy-700: #1c2d45;
  --navy-500: #3a4d68;
  --navy-100: #eef2f7;

  --teal-700: #025a6a;
  --teal-600: #037C91;
  --teal-500: #0a97ad;
  --teal-100: #e2f4f7;

  --amber-600: #dd8f34;
  --amber-100: #fbecd8;

  /* ---- Color: neutrales (gris-frío, no cream) ---- */
  --ink-900: #141a24;
  --ink-700: #2f3848;
  --ink-500: #556074;
  --ink-300: #8b95a8;
  --paper: #ffffff;
  --paper-soft: #f5f7fa;
  --paper-dim: #eef1f5;
  --line: #dde3ea;
  --line-dark: rgba(255, 255, 255, 0.12);

  /* ---- Tipografía ---- */
  --font-display: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* ---- Layout ---- */
  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-card: 0 10px 30px -14px rgba(14, 20, 40, 0.25);
  --shadow-lift: 0 24px 60px -20px rgba(14, 20, 40, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------------- */
/* Reset básico                                                           */
/* ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0;
}
p { margin: 0; }
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------------- */
/* Utilidades de tipografía                                               */
/* ---------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine-700);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--wine-700);
  border-radius: 2px;
}
.eyebrow.on-dark { color: var(--teal-500); }
.eyebrow.on-dark::before { background: var(--teal-500); }

h1 { font-size: clamp(2.1rem, 3.6vw, 3.2rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 800; }
.lede { font-size: 1.1rem; color: var(--ink-500); max-width: 56ch; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 10px; color: var(--ink-500); font-size: 1.02rem; }

/* ---------------------------------------------------------------------- */
/* Botones                                                                 */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-teal { background: var(--teal-600); color: #fff; box-shadow: 0 10px 24px -10px rgba(3, 124, 145, 0.55); }
.btn-teal:hover { background: var(--teal-700); }
.btn-wine { background: var(--wine-700); color: #fff; box-shadow: 0 10px 24px -10px rgba(93, 2, 43, 0.55); }
.btn-wine:hover { background: var(--wine-900); }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy-900); }
.btn-outline.on-dark { color: #fff; border-color: var(--line-dark); }
.btn-outline.on-dark:hover { border-color: #fff; }
.btn-ghost { background: none; color: var(--navy-800); padding: 13px 6px; gap: 10px; }
.btn-ghost .play {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--wine-100); color: var(--wine-700);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .25s var(--ease);
}
.btn-ghost:hover .play { background: var(--wine-700); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------------------------------------------------------------------- */
/* Header / navegación                                                    */
/* ---------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  height: 42px; width: auto; max-width: 200px;
  object-fit: contain; flex: none;
}
.brand-logo.compact { height: 36px; max-width: 48px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(155deg, var(--wine-600), var(--wine-900));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--navy-900); }
.brand-text span { font-size: 10px; letter-spacing: 0.14em; color: var(--ink-300); font-weight: 700; text-transform: uppercase; }
.site-footer .brand-logo { height: 48px; max-width: 220px; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--radius-pill);
  font-size: 0.93rem; font-weight: 600; color: var(--ink-700);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--paper-soft); color: var(--wine-700); }
.nav-link svg { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Mega menú */
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translate(-50%, 8px);
  width: min(760px, 90vw);
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift); border: 1px solid var(--line);
  padding: 26px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav-item.open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.mega.narrow { grid-template-columns: 1fr; width: min(260px, 90vw); }
.mega-col h4 {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-300); margin-bottom: 10px; font-weight: 800;
}
.mega-col a {
  display: block; padding: 7px 0; font-size: 0.9rem; color: var(--ink-700);
  font-weight: 600; border-radius: 6px; transition: color .2s var(--ease);
}
.mega-col a:hover { color: var(--wine-700); }

.menu-toggle {
  display: none; background: none; border: none; width: 40px; height: 40px;
  align-items: center; justify-content: center; border-radius: 10px;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--navy-900);
  position: relative; transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Sub-nav de página (ancla interna, usado en páginas de módulo) */
.page-subnav {
  background: var(--navy-900); border-bottom: 1px solid var(--line-dark);
}
.page-subnav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.page-subnav .container::-webkit-scrollbar { display: none; }
.page-subnav a {
  padding: 13px 16px; font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,.6);
  white-space: nowrap; border-bottom: 2px solid transparent;
}
.page-subnav a:hover, .page-subnav a.active { color: #fff; border-color: var(--teal-500); }

/* ---------------------------------------------------------------------- */
/* Botón flotante de demo (todas las páginas)                             */
/* ---------------------------------------------------------------------- */
.float-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 300;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wine-700); color: #fff; padding: 14px 20px;
  border-radius: var(--radius-pill); box-shadow: var(--shadow-lift);
  font-family: var(--font-display); font-weight: 700; font-size: 0.88rem;
  transform: translateY(120%); transition: transform .4s var(--ease), background .2s var(--ease);
}
.float-cta.show { transform: translateY(0); }
.float-cta:hover { background: var(--wine-900); }
.float-cta svg { width: 17px; height: 17px; }

/* ---------------------------------------------------------------------- */
/* Secciones genéricas                                                     */
/* ---------------------------------------------------------------------- */
.section { padding: 88px 0; }
.section.tight { padding: 64px 0; }
.section.soft { background: var(--paper-soft); }
.section.dark { background: var(--navy-900); color: rgba(255,255,255,.85); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.wine { background: linear-gradient(135deg, var(--wine-900), var(--wine-700)); color: #fff; }
.section.wine h2 { color: #fff; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero { padding: 56px 0 40px; position: relative; }
.hero.hero-brand {
  background:
    radial-gradient(ellipse 80% 60% at 90% 20%, rgba(3, 124, 145, 0.12), transparent 55%),
    linear-gradient(165deg, var(--paper) 0%, var(--paper-soft) 55%, rgba(93, 2, 43, 0.04) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 0.9fr 1.2fr; gap: 40px; align-items: center; }
.hero-copy h1 { margin: 14px 0 16px; }
.hero-copy .lede { margin-bottom: 28px; }
.hero-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }

.hero-visual {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border-radius: var(--radius-lg);
  padding: 6px;
  position: relative;
  box-shadow: var(--shadow-lift);
}
.hero-visual::after {
  content: ""; position: absolute; inset: auto -18px -18px auto; width: 130px; height: 130px;
  background: radial-gradient(circle, var(--teal-500), transparent 70%); opacity: .35; filter: blur(6px);
  z-index: 0; border-radius: 50%;
}
.hero-visual .product-carousel {
  position: relative; z-index: 1;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
}
.hero-visual .product-carousel .pc-slide {
  min-height: clamp(300px, 40vw, 520px);
  height: clamp(300px, 40vw, 520px);
}
.shot-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  background: var(--paper);
}
.shot-frame img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(260px, 42vw, 520px);
  margin-inline: auto;
  object-fit: contain;
  object-position: center top;
  display: block;
}
.mock-window { position: relative; z-index: 1; background: var(--navy-700); border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.mock-topbar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: rgba(0,0,0,.18); }
.mock-topbar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); }
.mock-body { padding: 18px; }
.mock-title { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mock-stat { background: rgba(255,255,255,.06); border-radius: 10px; padding: 10px 12px; }
.mock-stat b { display: block; font-family: var(--font-display); color: #fff; font-size: 1.15rem; }
.mock-stat span { font-size: 0.68rem; color: rgba(255,255,255,.5); }
.mock-chart-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.mock-panel { background: rgba(255,255,255,.06); border-radius: 10px; padding: 12px; min-height: 128px; }
.mock-panel svg { width: 100%; height: 84px; }
.mock-donut { display: flex; align-items: center; justify-content: center; height: 100%; }
.donut { width: 88px; height: 88px; border-radius: 50%; background: conic-gradient(var(--teal-500) 0 62%, var(--wine-600) 62% 84%, rgba(255,255,255,.12) 84% 100%); display:flex; align-items:center; justify-content:center; }
.donut span { width: 52px; height: 52px; border-radius: 50%; background: var(--navy-700); display:block; }

.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.stat-pill { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--paper-soft); border-radius: var(--radius-md); border: 1px solid var(--line); }
.stat-pill .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--wine-100); color: var(--wine-700); display: flex; align-items: center; justify-content: center; flex: none; }
.stat-pill .ic svg { width: 20px; height: 20px; }
.stat-pill b { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--navy-900); }
.stat-pill span { font-size: 0.82rem; color: var(--ink-500); }

/* ---------------------------------------------------------------------- */
/* Franja de logos                                                        */
/* ---------------------------------------------------------------------- */
.logo-strip { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.logo-strip p { text-align: center; font-size: 0.85rem; color: var(--ink-300); font-weight: 700; letter-spacing: .04em; margin-bottom: 22px; }
.logo-row {
  display: flex; align-items: center; justify-content: center; gap: 12px 28px; flex-wrap: wrap;
}
.logo-marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: logo-scroll 80s linear infinite;
}
.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.logo-row .school,
.logo-marquee .school {
  font-family: var(--font-display); font-weight: 800; color: var(--ink-300); font-size: 0.95rem;
  white-space: nowrap;
  opacity: .75; transition: opacity .2s var(--ease), color .2s var(--ease);
}
.logo-row .school:hover,
.logo-marquee .school:hover { opacity: 1; color: var(--wine-700); }
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .logo-marquee { mask-image: none; -webkit-mask-image: none; }
}

/* ---------------------------------------------------------------------- */
/* Tarjetas: problema / módulos / features / roles                        */
/* ---------------------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: transparent; }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.card p { color: var(--ink-500); font-size: 0.92rem; }

.ic-wine { background: var(--wine-100); color: var(--wine-700); }
.ic-teal { background: var(--teal-100); color: var(--teal-700); }
.ic-amber { background: var(--amber-100); color: var(--amber-600); }
.ic-navy { background: var(--navy-100); color: var(--navy-700); }

/* Tarjetas de módulo (home) */
.module-card { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.module-card .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--wine-700); }
.module-card .go svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.module-card:hover .go svg { transform: translateX(3px); }

/* Roles (home + páginas de módulo) */
.role-card { text-align: center; }
.role-card .ic { margin-inline: auto; }
.role-card ul { margin-top: 12px; text-align: left; display: grid; gap: 6px; }
.role-card ul li { font-size: 0.86rem; color: var(--ink-500); padding-left: 18px; position: relative; }
.role-card ul li::before { content: "•"; position: absolute; left: 4px; color: var(--wine-700); font-weight: 800; }

/* ---------------------------------------------------------------------- */
/* Proceso (pasos numerados)                                              */
/* ---------------------------------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; position: relative; }
.process::before {
  content: ""; position: absolute; top: 27px; left: 6%; right: 6%; height: 2px;
  background-image: linear-gradient(90deg, var(--line) 50%, transparent 50%);
  background-size: 14px 2px; z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; }
.step .num {
  width: 54px; height: 54px; border-radius: 50%; margin-inline: auto 10px;
  background: var(--teal-100); color: var(--teal-700); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; margin-bottom: 12px;
  border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line);
}
.step.done .num { background: var(--teal-600); color: #fff; box-shadow: 0 0 0 1px var(--teal-600); }
.step h4 { font-size: 0.85rem; font-family: var(--font-display); font-weight: 800; margin-bottom: 4px; }
.step p { font-size: 0.75rem; color: var(--ink-500); }

/* ---------------------------------------------------------------------- */
/* Split: checklist + placeholder de captura                              */
/* ---------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: center; }
.check-list { display: grid; gap: 14px; margin: 24px 0 28px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; color: var(--ink-700); font-size: 0.96rem; }
.check-list li svg { width: 20px; height: 20px; color: var(--teal-600); flex: none; margin-top: 1px; }

.shot-placeholder {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-soft);
  aspect-ratio: 16 / 9;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 24px;
  color: var(--ink-300);
}
.shot-placeholder .icon { width: 46px; height: 46px; color: var(--ink-300); }
.shot-placeholder strong { font-family: var(--font-display); color: var(--ink-500); font-size: 0.95rem; letter-spacing: .06em; text-transform: uppercase; }
.shot-placeholder b { color: var(--navy-900); font-size: 1.02rem; }
.shot-placeholder small { font-size: 0.75rem; color: var(--ink-300); }

/* ---------------------------------------------------------------------- */
/* Ecosistema / integraciones                                             */
/* ---------------------------------------------------------------------- */
.ecosystem { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.eco-diagram { position: relative; aspect-ratio: 1 / 1; max-width: 420px; margin-inline: auto; }
.eco-diagram .ring { position: absolute; inset: 10%; border-radius: 50%; border: 1.5px dashed var(--line); }
.eco-diagram .core {
  position: absolute; inset: 38%; border-radius: 50%; background: linear-gradient(155deg, var(--wine-600), var(--wine-900));
  display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-display); font-weight: 800;
  box-shadow: var(--shadow-lift);
}
.eco-node {
  position: absolute; width: 128px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 12px; box-shadow: var(--shadow-card); display: flex; gap: 8px; align-items: flex-start;
}
.eco-node .ic { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.eco-node .ic svg { width: 15px; height: 15px; }
.eco-node b { display: block; font-size: 0.78rem; font-family: var(--font-display); }
.eco-node span { font-size: 0.68rem; color: var(--ink-500); }
.eco-list { display: grid; gap: 16px; }
.eco-list .row { display: flex; gap: 12px; align-items: flex-start; }
.eco-list .ic { width: 34px; height: 34px; border-radius: 9px; flex: none; display:flex; align-items:center; justify-content:center; }
.eco-list .ic svg { width: 16px; height: 16px; }
.eco-list b { font-family: var(--font-display); font-size: 0.92rem; display: block; }
.eco-list span { font-size: 0.82rem; color: var(--ink-500); }

/* ---------------------------------------------------------------------- */
/* Carrusel de producto                                                   */
/* ---------------------------------------------------------------------- */
.product-carousel {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-900);
}
.product-carousel .pc-track {
  display: flex;
  transition: transform 0.55s var(--ease);
  will-change: transform;
}
.product-carousel .pc-slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(260px, 36vw, 480px);
  height: clamp(260px, 36vw, 480px);
  background: rgba(0, 0, 0, 0.18);
}
.product-carousel .pc-slide img {
  /* Cursor: si la captura no coincide con el marco, escala ancho/alto sin recortar */
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  cursor: zoom-in;
}
.product-carousel.light .pc-slide {
  background: var(--paper-dim);
}
.product-carousel .pc-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(transparent, rgba(12, 21, 36, 0.85));
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  pointer-events: none;
}
.product-carousel .pc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(12, 21, 36, 0.55);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  transition: background .2s var(--ease);
}
.product-carousel .pc-btn:hover { background: var(--teal-600); border-color: var(--teal-600); }
.product-carousel .pc-btn svg { width: 18px; height: 18px; }
.product-carousel .pc-prev { left: 10px; }
.product-carousel .pc-next { right: 10px; }
.product-carousel .pc-dots {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex; gap: 7px; justify-content: center;
  z-index: 2;
  pointer-events: none;
}
.product-carousel .pc-dots button {
  pointer-events: auto;
  width: 8px; height: 8px; border-radius: 50%;
  border: none; padding: 0;
  background: rgba(255,255,255,.4);
  transition: width .25s var(--ease), background .2s var(--ease);
}
.product-carousel .pc-dots button.active {
  width: 22px; border-radius: 5px;
  background: var(--teal-500);
}
.product-carousel.has-caption .pc-dots { bottom: 36px; }
.product-carousel.light {
  background: var(--paper-soft);
  border: 1px solid var(--line);
}
.product-carousel.light .pc-caption {
  background: linear-gradient(transparent, rgba(12, 21, 36, 0.75));
}

/* ---------------------------------------------------------------------- */
/* Lightbox / modal de capturas (90% viewport)                            */
/* ---------------------------------------------------------------------- */
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5vh 2.5vw;
  background: rgba(12, 21, 36, 0.88);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s var(--ease), visibility .28s;
}
.img-lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.img-lightbox-dialog {
  position: relative;
  width: 90vw;
  height: 90vh;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}
.img-lightbox-dialog img {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  background: #0c1524;
}
.img-lightbox-caption {
  position: absolute;
  left: 50%;
  bottom: -2.2rem;
  transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.img-lightbox-close,
.img-lightbox-nav {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(12, 21, 36, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.img-lightbox-close:hover,
.img-lightbox-nav:hover { background: var(--teal-600); border-color: var(--teal-600); }
.img-lightbox-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.img-lightbox-close svg,
.img-lightbox-nav svg { width: 22px; height: 22px; }
.img-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.img-lightbox-prev { left: 18px; }
.img-lightbox-next { right: 18px; }
.img-lightbox-nav[hidden],
.img-lightbox-caption:empty { display: none; }
body.lightbox-open { overflow: hidden; }

/* ---------------------------------------------------------------------- */
/* Testimonios                                                            */
/* ---------------------------------------------------------------------- */
.testi { max-width: 640px; margin-inline: auto; text-align: center; }
.testi blockquote { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--navy-900); line-height: 1.5; margin: 0 0 22px; }
.testi-person { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-100); display:flex; align-items:center; justify-content:center; color: var(--navy-700); font-family: var(--font-display); font-weight: 800; }
.testi-person div { text-align: left; }
.testi-person b { display: block; font-size: 0.9rem; }
.testi-person span { font-size: 0.8rem; color: var(--ink-500); }
.testi-dots { display: flex; gap: 7px; justify-content: center; margin-top: 26px; }
.testi-dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--line); border: none; padding: 0; }
.testi-dots button.active { background: var(--wine-700); width: 22px; border-radius: 5px; transition: width .25s var(--ease); }

/* ---------------------------------------------------------------------- */
/* CTA banner de cierre                                                   */
/* ---------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(120deg, var(--wine-900) 10%, var(--wine-700) 90%);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 30px; align-items: center;
  color: #fff; overflow: hidden; position: relative;
}
.cta-banner::before {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
  right: -60px; top: -60px;
}
.cta-banner h2 { color: #fff; margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,.8); margin-bottom: 22px; max-width: 46ch; }
.cta-figure {
  border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--navy-800), var(--wine-900));
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5);
  font-size: .78rem; text-align: center; padding: 0; border: none;
}
.cta-figure img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}

/* ---------------------------------------------------------------------- */
/* Formulario de demo                                                     */
/* ---------------------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-card); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: grid; gap: 6px; margin-bottom: 4px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.8rem; font-weight: 700; color: var(--ink-700); }
.form-field input, .form-field select {
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); font: inherit; background: var(--paper-soft);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.form-field input:focus, .form-field select:focus { border-color: var(--teal-600); background: #fff; outline: none; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line); font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all .2s var(--ease); }
.chip input { display: none; }
.chip:has(input:checked) { background: var(--wine-700); color: #fff; border-color: var(--wine-700); }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 64px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.3fr; gap: 30px; padding-bottom: 40px; }
.foot-about p { font-size: 0.85rem; color: rgba(255,255,255,.55); margin: 14px 0 18px; max-width: 30ch; }
.foot-col h4 { font-size: 0.78rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.foot-col ul { display: grid; gap: 10px; }
.foot-col a { font-size: 0.87rem; color: rgba(255,255,255,.75); }
.foot-col a:hover { color: #fff; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; margin-bottom: 12px; }
.foot-contact svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--teal-500); }
.social-row { display: flex; gap: 10px; margin-top: 6px; }
.social-row a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; }
.social-row a:hover { background: var(--wine-700); }
.social-row svg { width: 15px; height: 15px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 0.78rem; color: rgba(255,255,255,.4); flex-wrap: wrap; gap: 10px; }
.foot-bottom a { color: rgba(255,255,255,.55); }

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split, .ecosystem { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .process { grid-template-columns: repeat(4, 1fr); row-gap: 26px; }
  .process::before { display: none; }
  .cta-banner { grid-template-columns: 1fr; }
  .cta-figure { max-width: 260px; margin-inline: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main-nav, .nav-actions .btn-outline { display: none; }
  .menu-toggle { display: flex; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .cta-banner { padding: 30px; }
  .foot-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}

/* Mobile nav panel */
.mobile-panel {
  position: fixed; inset: 76px 0 0 0; background: #fff; z-index: 190;
  padding: 24px; transform: translateX(100%); transition: transform .3s var(--ease);
  overflow-y: auto;
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel ul { display: grid; gap: 4px; }
.mobile-panel > ul > li > a, .mobile-panel .m-toggle {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 6px; font-weight: 700; font-family: var(--font-display); border-bottom: 1px solid var(--line);
  background: none; border-left: none; border-right: none; border-top: none; width: 100%; text-align: left;
}
.mobile-panel .sub { display: none; padding-left: 14px; }
.mobile-panel .sub.open { display: block; }
.mobile-panel .sub a { padding: 11px 6px; font-size: 0.9rem; color: var(--ink-500); display: block; }
.mobile-panel .cta-block { margin-top: 20px; display: grid; gap: 10px; }
