:root{
  --brand:#00d084;           /* verde Kuvio */
  --bg:#0b0e11;              /* fondo oscuro sutil */
  --panel:#12161b;           /* paneles */
  --text:#e8ecef;            /* texto principal */
  --muted:#9aa4af;           /* texto secundario */
  --card:#0f1317;            /* tarjetas */
  --border:#1f2730;          /* bordes */
  --white:#ffffff;
}

/* Fallback (tema oscuro original) */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,#0b0e11, #0b0e11 40%, #0c1115);
  line-height:1.6;
}

/* Re-declaración (tema variable + color-mix); si el navegador no soporta, usa el fallback anterior */
body{
  background: linear-gradient(180deg, var(--bg), var(--bg) 40%, color-mix(in srgb, var(--bg) 92%, #000 8%));
}

img{max-width:100%;height:auto;display:block}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}

.container{width:min(1160px,92%);margin-inline:auto}

.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(10,13,16,.8);backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--border);
}
.logo{height:28px}
.logo--sm{height:22px}

.nav{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.nav__menu{display:flex;gap:22px;align-items:center}
.nav__menu a{color:var(--text)}
.nav__toggle{display:none;background:transparent;border:0;cursor:pointer}
.nav__toggle span{display:block;width:24px;height:2px;background:var(--text);margin:5px 0;border-radius:2px}

.btn{
  display:inline-block;padding:12px 16px;border-radius:12px;
  background:var(--brand);color:#00130b;font-weight:700;border:1px solid transparent;
  transition:transform .08s ease, box-shadow .2s ease;
}
.btn:hover{transform:translateY(-1px);text-decoration:none;box-shadow:0 8px 24px rgba(0,208,132,.24)}
.btn--ghost{background:transparent;color:var(--text);border-color:var(--border)}
.btn--small{padding:8px 12px;font-size:.9rem}
.btn--inverted{background:var(--text);color:#00130b}

.hero{padding:72px 0 36px;border-bottom:1px solid var(--border)}
.hero__grid{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center}
.hero h1{font-size:clamp(32px,4.6vw,52px);line-height:1.1;margin:0 0 12px}
.accent{color:var(--brand)}
.hero__cta{display:flex;gap:12px;margin:18px 0 10px}
.hero__bullets{display:grid;gap:6px;margin:14px 0 0;padding-left:18px}
.hero__bullets li{color:var(--muted)}

.section{padding:80px 0}
.section--alt{background:linear-gradient(180deg,#0c1115,#0c1115 60%, #0b0e11);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.section__header{margin-bottom:28px}
.section h2{font-size:clamp(26px,3.6vw,36px);margin:0 0 10px}
.section p{color:var(--muted);margin:0}

.grid-2{display:grid;gap:28px;grid-template-columns:1fr 1fr;align-items:center}
.chip-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.chip{
  background:var(--panel);
  color:var(--text);
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  font-size:.9rem;
  transition:box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover,.chip:focus-visible{
  border-color:var(--brand);
  color:var(--brand);
  box-shadow:0 0 0 2px rgba(0,208,132,.15);
}
.chip-detail{
  margin-top:16px;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--panel);
  color:var(--muted);
  display:none;
  min-height:72px;
}
.chip-detail.visible{display:block}

.card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:18px}
.card__img{border-radius:12px;margin-top:12px;overflow:hidden}
.card__img img,
img.card__img{display:block;width:100%}
.controller-frame{
  background:#050708;
  min-height:260px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.controller-img{
  width:100%;
  max-width:100%;
  transform:none;
  object-fit:cover;
}
.card__body h3{margin:0 0 6px}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}

.solutions__grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:28px;
  align-items:start;
}
.solutions__media{
  border:1px solid var(--border);
  border-radius:18px;
  padding:14px;
  background:radial-gradient(400px 200px at 10% 10%,rgba(0,208,132,.08),transparent 60%),var(--panel);
}
.solutions__media img{border-radius:12px;display:block}
.solutions__cards{display:grid;gap:18px}
.solution-card{cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.solution-card:hover{transform:translateY(-2px)}
.solution-card.active{border-color:var(--brand);box-shadow:0 12px 30px rgba(0,208,132,.18)}

.features{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:14px}
.feature{background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:16px}
.feature__icon{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:var(--brand);color:#00130b;font-weight:800;margin-bottom:8px}
.illustration{margin-top:18px;border:1px dashed var(--border);border-radius:14px;opacity:.9}
.nexus__gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
  margin-top:20px;
}
.nexus__gallery img{
  border-radius:14px;
  border:1px solid var(--border);
  background:#050708;
}
.note{color:var(--muted);font-size:.95rem;margin-top:8px}

/* Lista con “✔” compatible */
.check{padding-left:18px;margin:10px 0 0; list-style: none}
.check li{color:var(--muted); position:relative; padding-left:20px}
.check li::before{
  content:"✔";
  position:absolute; left:0; top:0;
  line-height:1.4; font-weight:700; color:var(--brand);
}

.projects{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.project{background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:16px}
.projects__media{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;
  margin-top:22px;
}
.projects__media img{
  border-radius:14px;
  border:1px solid var(--border);
  background:#050708;
}

.verticals{display:grid;gap:32px}
.verticals__layout{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  align-items:center;
}
.verticals__list{
  display:grid;
  gap:14px;
}
.verticals__item{
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px 16px;
  background:var(--panel);
  color:var(--text);
  text-align:left;
  font:inherit;
  cursor:pointer;
  transition:border-color .2s ease,box-shadow .2s ease,color .2s ease;
}
.verticals__item:hover,
.verticals__item:focus-visible{
  border-color:var(--brand);
  color:var(--brand);
}
.verticals__item.active{
  border-color:var(--brand);
  box-shadow:0 12px 28px rgba(0,208,132,.18);
}
.verticals__media{
  border:1px solid var(--border);
  border-radius:18px;
  padding:12px;
  background:var(--panel);
}
.verticals__media img{border-radius:12px;display:block}

.team{padding-left:18px;margin:10px 0 0}
.team__media img{border-radius:14px;border:1px solid var(--border)}

.cta{padding:60px 0}
.cta__box{
  background:radial-gradient(1200px 300px at 20% -20%, rgba(0,208,132,.25), transparent 60%),
             linear-gradient(180deg,#0f1317,#0f1317 60%, #0c1115);
  border:1px solid var(--border);border-radius:20px;padding:36px;display:grid;gap:12px;place-items:center;text-align:center;
}
html[data-theme="light"] .cta__box{
  background:#f8fafc;
  border-color:#dbeafe;
  color:#0f172a;
  box-shadow:0 15px 45px rgba(15,23,42,.08);
}

.contact-list{display:grid;gap:10px;margin:12px 0 0}
.contact-card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  padding:20px;
  display:grid;
  gap:14px;
}
.contact-card__cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
html[data-theme="light"] .contact-card{
  background:#f8fafc;
  border-color:#dfe7ef;
  color:#0f172a;
}
html[data-theme="light"] .contact-card p{color:#334155}

.site-footer{border-top:1px solid var(--border);padding:28px 0;color:var(--muted)}
.footer__grid{display:flex;justify-content:space-between;align-items:center;gap:16px}
.footer__nav{display:flex;gap:16px;flex-wrap:wrap}

@media (max-width: 980px){
  .hero__grid, .grid-2, .solutions__grid, .verticals__layout{grid-template-columns:1fr}
  .features{grid-template-columns:repeat(2,1fr)}
  .cards, .projects{grid-template-columns:1fr 1fr}
}
@media (max-width: 640px){
  .nav__menu{
    position:fixed;inset:60px 16px auto 16px;flex-direction:column;gap:14px;
    background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:14px;display:none
  }
  .nav__menu.open{display:flex}
  .nav__toggle{display:block}
  .features{grid-template-columns:1fr}
  .cards, .projects{grid-template-columns:1fr}
  .contact-card__cta{flex-direction:column}
  .solutions__media,.verticals__media{order:-1}
}

/* --- Controles de cabecera (idioma + tema) --- */
.header-controls{ display:flex; align-items:center; gap:10px; margin-left:8px }
.lang{ display:flex; gap:6px; margin-right:10px }
.lang__btn{
  padding:6px 10px; border-radius:10px; border:1px solid var(--border);
  background:var(--panel); color:var(--text); cursor:pointer; font-weight:600
}
.lang__btn[aria-pressed="true"]{ outline:2px solid var(--brand); background:#0f1317 }
.theme__btn{
  padding:6px 10px; border-radius:10px; border:1px solid var(--border);
  background:var(--panel); color:var(--text); cursor:pointer; font-weight:700; line-height:1
}

@media (max-width: 640px){
  .header-controls{ width:100%; justify-content:flex-start }
}

/* --- Tema CLARO (light) usando data-theme en <html> --- */
html[data-theme="light"]{
  --bg: #f7f9fc;
  --panel: #ffffff;
  --card: #ffffff;
  --text: #0b0e11;
  --muted: #475569;
  --border: #e5e7eb;
}
html[data-theme="light"] .site-header{
  background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
html[data-theme="light"] .nav__menu a{ color: var(--text); }
html[data-theme="light"] .nav__toggle span{ background: var(--text); }

/* Ajustes de secciones según tema */
html[data-theme="light"] .section--alt{
  background: linear-gradient(180deg, var(--bg), var(--bg) 60%, var(--bg));
}
html[data-theme="light"] .btn--inverted{
  background: var(--brand); color: #012b1a;
}
/* Cookie banner */
.cookie{
  position:fixed; left:0; right:0; bottom:16px; z-index:60;
  display:grid; place-items:center; padding:0 16px;
}
.cookie[hidden]{display:none !important}
.cookie__inner{
  width:min(960px,100%); display:flex; flex-wrap:wrap; gap:12px;
  align-items:center; justify-content:space-between;
  background:var(--panel); color:var(--text);
  border:1px solid var(--border); border-radius:14px; padding:14px 16px;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}
.cookie__text{margin:0; color:var(--muted)}
.cookie__actions{display:flex; gap:10px; align-items:center}
.cookie__link{color:var(--muted); text-decoration:underline}
html[data-theme="light"] .cookie__inner{ background:#ffffff }
