/* ===========================================================
   CMC — Rediseño 2026  ·  Dark / Tech / Minimal
   Paleta de marca: teal #00babe  ·  coral #ff6162
   =========================================================== */

:root {
  --teal: #00babe;
  --teal-soft: #2fd6da;
  --coral: #ff6162;
  --coral-soft: #ff8b8c;

  --bg-0: #05070f;
  --bg-1: #080b16;
  --bg-2: #0c1020;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --stroke: rgba(255, 255, 255, 0.10);
  --stroke-soft: rgba(255, 255, 255, 0.06);

  --ink: #eaf0fb;
  --ink-mut: #97a4bd;
  --ink-dim: #5e6a83;

  --display: "Space Grotesk", "Montserrat", sans-serif;
  --body: "Poppins", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1240px;
  --r-lg: 22px;
  --r-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Ocultar scrollbars en todos los navegadores (scroll sigue funcional) ── */
* {
  scrollbar-width: none;     /* Firefox */
  -ms-overflow-style: none;  /* IE / Edge legacy */
}
*::-webkit-scrollbar { display: none; } /* Chrome / Safari / Opera */

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 12% -10%, rgba(0,186,190,.10), transparent 60%),
    radial-gradient(55vw 55vw at 100% 8%, rgba(255,97,98,.08), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, var(--bg-0));
}

#universe {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.wrap { width: min(var(--maxw), 92%); margin-inline: auto; }

.kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: .65em;
}
.kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal));
}

/* ===========================================================
   NAVBAR
   =========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(5,7,15,.82), rgba(5,7,15,0));
  backdrop-filter: blur(6px);
  transition: background .35s, padding .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7,9,18,.78);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--stroke-soft);
  padding-top: 12px; padding-bottom: 12px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { width: 38px; height: 38px; object-fit: contain; }
.nav__brand b { font-family: var(--display); font-size: 20px; letter-spacing: 2px; }
.nav__brand b .ltr-c { color: var(--teal); }
.nav__brand b .ltr-m { color: var(--coral); }
.nav__links { display: flex; gap: 34px; align-items: center; }
.nav__links a {
  font-size: 14.5px; color: var(--ink-mut); position: relative; padding: 4px 0;
  transition: color .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--coral)); transition: width .3s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

/* Badge "NEW" en SmartLocker */
.nav__badge-link { display: inline-flex; align-items: center; gap: 7px; }
.nav__badge {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #06121b;
  background: linear-gradient(90deg, var(--teal), var(--teal-soft));
  padding: 2px 7px;
  border-radius: 20px;
  vertical-align: middle;
  animation: badge-pulse 2.5s ease-in-out infinite;
  position: relative;
  top: -1px;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,186,190,0.4); }
  50% { box-shadow: 0 0 0 5px rgba(0,186,190,0); }
}
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 4px;
}
.nav__toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(7,9,18,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--stroke-soft);
    flex-direction: column;
    padding: 24px 0;
    gap: 16px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }
  .nav.menu-open .nav__links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
}

/* ===========================================================
   PARTE 1 · HERO
   =========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 24px;
  padding: 120px clamp(18px, 4vw, 48px) 60px;
  max-width: var(--maxw);
  margin-inline: auto;
}
.hero__copy { position: relative; z-index: 3; }

.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 66px);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0 0 24px;
  color: var(--ink);
}
.hero__title em { font-style: normal; color: var(--teal); }
.hero__title b { color: var(--coral); font-weight: 700; }

.hero__sub {
  color: var(--ink-mut);
  font-size: clamp(15px, 1.3vw, 17.5px);
  max-width: 48ch;
  margin: 0 0 38px;
}

.hero__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; padding: 14px 28px; border: none;
  border-radius: 50px; color: #06121b;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-soft) 50%, var(--teal) 100%);
  background-size: 200% 100%;
  box-shadow: 0 10px 30px rgba(0,186,190,.30);
  transition: transform .35s cubic-bezier(.22,.68,.27,1.55), box-shadow .35s, background-position .5s;
}
.btn-primary:hover { transform: translateY(-3px); background-position: 100% 0; box-shadow: 0 14px 36px rgba(0,186,190,.45); }
.btn-primary svg { width: 17px; height: 17px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-mut); padding: 13px 22px; border-radius: 50px;
  border: 1px solid var(--stroke); background: var(--glass);
  transition: color .3s, border-color .3s, transform .3s;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--teal); transform: translateY(-3px); }

/* ── Hero Stage: perspectiva 3D para el efecto parallax ── */
.hero__stage {
  position: relative;
  height: min(80vh, 640px);
  z-index: 2;
  display: grid;
  place-items: center;
  perspective: 1000px;           /* habilita el espacio 3D */
  perspective-origin: 50% 50%;
}

/* ── PARALLAX WRAPPER: recibe el transform 3D del JS ── */
.hero__parallax {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 560px;
  transition: transform 0.08s ease-out;  /* suavizado ultra rápido para feel responsivo */
  transform-style: preserve-3d;
  will-change: transform;
}

/* FLOATING LOGO CON CONTORNOS (HERO) */
.floating-logo {
  position: relative;
  width: 100%;
  max-width: 560px;   /* ← aumentado de 420px a 560px */
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float-logo 5s ease-in-out infinite;
}

@keyframes float-logo {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-22px); }
}

.floating-logo__img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
}

.hollow-filter {
  filter: url(#hollow-outline);
}

/* Órbita de destellos */
.orbit {
  position: absolute;
  top: 50%; left: 50%;
  width: 130%; height: 130%;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.05);
  animation: spin-orbit 14s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes spin-orbit {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.sparkle {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
}

.sparkle--1 { top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--teal); box-shadow: 0 0 14px 4px var(--teal); }
.sparkle--2 { bottom: 15%; right: 10%; background: var(--coral); box-shadow: 0 0 14px 4px var(--coral); }
.sparkle--3 { bottom: 15%; left: 10%; box-shadow: 0 0 14px 4px rgba(255,255,255,0.8); }

.hero__stage::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 68%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,186,190,.18), transparent 65%);
  filter: blur(28px); z-index: -1; pointer-events: none;
}



@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 104px; gap: 32px; }
  .hero__copy { order: 2; }
  .hero__stage { order: 1; height: auto; margin-bottom: 0; padding: 20px 0; perspective: none; }
  .floating-logo { max-width: 300px; }
  .hero__parallax { max-width: 300px; }
  .hero__actions { justify-content: center; }
  .hero__sub { margin-inline: auto; }
}

/* ===========================================================
   SECCIONES — encabezado común  (espaciado reducido)
   =========================================================== */
.section { padding: clamp(48px, 6vw, 84px) 0; position: relative; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(30px, 4vw, 48px); }
.section__head .kicker { justify-content: center; margin-bottom: 16px; }
.section__head h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(28px, 4.2vw, 48px); line-height: 1.06; margin: 0;
  letter-spacing: -.02em;
}
.section__head h2 .a { color: var(--teal); }
.section__head h2 .b { color: var(--coral); }
.section__head p { color: var(--ink-mut); margin: 14px auto 0; font-size: 16px; max-width: 56ch; }

/* ===========================================================
   PARTE 2 · GRID DE TARJETAS (color propio por producto via --c)
   =========================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

.card {
  --c: var(--teal);
  position: relative;
  padding: 30px 28px 26px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  transition: transform .5s cubic-bezier(.2,.7,.4,1), border-color .4s, box-shadow .5s, background .4s;
}
.card::before {
  content: "";
  position: absolute; inset: -40% -10%;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.13) 48%,
              color-mix(in srgb, var(--c) 16%, transparent) 52%, transparent 62%);
  transform: translateX(-120%) rotate(2deg);
  transition: transform .85s cubic-bezier(.22,.7,.3,1);
  pointer-events: none; z-index: 1;
}
.card::after {
  content: "";
  position: absolute; left: 0; top: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c), transparent);
  opacity: 0; transition: opacity .4s;
}
.card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  background: var(--glass-strong);
  box-shadow: 0 24px 60px rgba(0,0,0,.5),
              0 0 0 1px color-mix(in srgb, var(--c) 20%, transparent),
              0 18px 50px color-mix(in srgb, var(--c) 20%, transparent);
}
.card:hover::before { transform: translateX(120%) rotate(2deg); }
.card:hover::after { opacity: 1; }

.card__icon {
  position: relative; z-index: 2;
  width: 56px; height: 56px; border-radius: 15px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--c) 20%, transparent), color-mix(in srgb, var(--c) 4%, transparent));
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  color: var(--c);
  transition: transform .5s, background .4s;
}
.card:hover .card__icon { transform: translateY(-2px) scale(1.06) rotate(-3deg); }
.card__icon svg { width: 28px; height: 28px; }

.card__eyebrow {
  position: relative; z-index: 2;
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 8px;
}
.card__title {
  position: relative; z-index: 2;
  font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .5px;
  margin: 0 0 12px; color: var(--ink);
}
.card__desc {
  position: relative; z-index: 2;
  color: var(--ink-mut); font-size: 14.5px; line-height: 1.6; margin: 0 0 22px;
}
.card__more {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c); transition: gap .3s, color .3s;
}
.card:hover .card__more { gap: 14px; }
.card__more svg { width: 14px; height: 14px; }

/* ===========================================================
   PARTE 2b · MODALES (sin badge, texto centrado, color por producto)
   =========================================================== */
.modal {
  --c: var(--teal);
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(3,5,11,.72);
  backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s, visibility .35s;
}
.modal.show { opacity: 1; visibility: visible; pointer-events: auto; }

.modal__box {
  position: relative;
  width: min(880px, 100%);
  max-height: 88vh;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16,21,38,.97), rgba(9,12,24,.99));
  border: 1px solid color-mix(in srgb, var(--c) 22%, var(--stroke));
  box-shadow: 0 40px 120px rgba(0,0,0,.7);
  transform: translateY(26px) scale(.97);
  opacity: 0;
  transition: transform .45s cubic-bezier(.22,.7,.3,1), opacity .4s;
  display: flex; flex-direction: column;
}
.modal.show .modal__box { transform: none; opacity: 1; }

.modal__fx {
  position: relative;
  height: 116px;
  flex: none;
  overflow: hidden;
  border-bottom: 1px solid var(--stroke-soft);
  background: radial-gradient(120% 150% at 50% -30%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%), #0a0e1c;
}
.modal__fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.modal__body {
  padding: clamp(26px, 4vw, 42px);
  overflow-y: auto;
  text-align: center;
}
.modal__body h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 6px; letter-spacing: .5px;
}
.modal__body h2 .cian { color: var(--teal); }
.modal__body h2 .rosa { color: var(--coral); }
.modal__body h2 .accent { color: var(--c); }
.modal__sub {
  display: block; font-family: var(--mono); font-size: 13px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-dim); font-weight: 400; margin-bottom: 18px;
}
.modal__body p { color: var(--ink-mut); font-size: 15.5px; line-height: 1.7; margin: 0 0 14px; }
.modal__body p strong { color: var(--ink); }
.modal__feats {
  list-style: none; margin: 6px auto 8px; padding: 0; display: inline-grid; gap: 10px;
  text-align: left; max-width: 460px;
}
.modal__feats li {
  display: flex; align-items: flex-start; gap: 12px; color: var(--ink-mut); font-size: 15px; line-height: 1.5;
}
.modal__feats li::before {
  content: ""; flex: none; margin-top: 9px;
  width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg);
  background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 70%, transparent);
}

.modal__media {
  margin: 22px auto 0;
  max-width: 560px;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--stroke);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, transparent), rgba(255,97,98,.05));
  aspect-ratio: 16/9;
  display: grid; place-items: center;
  color: var(--ink-mut); font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
}

.cta-link {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 22px;
  font-weight: 600; font-size: 14.5px; padding: 13px 26px; border-radius: 50px; color: #06121b;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 65%, white));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--c) 35%, transparent);
  transition: transform .3s, box-shadow .3s;
}
.cta-link:hover { transform: translateY(-3px); box-shadow: 0 14px 34px color-mix(in srgb, var(--c) 50%, transparent); }
.cta-link svg { width: 15px; height: 15px; }

.modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(5,7,15,.6); border: 1px solid var(--stroke); color: var(--ink);
  font-size: 20px; line-height: 1; transition: transform .3s, background .3s, border-color .3s;
}
.modal__close:hover { transform: rotate(90deg); background: var(--coral); border-color: var(--coral); color: #fff; }

/* ===========================================================
   PARTE 3 · CLIENTES (slider) + CONTACTO
   =========================================================== */
.clients { padding: clamp(48px,6vw,84px) 0 0; }
.marquee {
  position: relative;
  width: 100%;
  padding: 6px 0 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  overflow: hidden;
}
.marquee__track {
  display: flex; gap: 16px; width: max-content;
  animation: marquee 45s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.logo-plate {
  --c: var(--teal);
  flex: none;
  width: 208px; height: 100px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.022);
  border: 1px solid var(--stroke-soft);
  opacity: .52;
  transition: opacity .4s ease, transform .4s ease, border-color .4s ease, background .4s ease, box-shadow .4s ease;
}
.logo-plate:hover {
  opacity: 1;
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--c) 50%, transparent);
  background: color-mix(in srgb, var(--c) 7%, rgba(255,255,255,.04));
  box-shadow:
    0 18px 44px rgba(0,0,0,.45),
    0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent),
    0 8px 32px color-mix(in srgb, var(--c) 30%, transparent);
}
.logo-plate .client-logo {
  max-width: 140px;
  max-height: 56px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: filter .4s ease, transform .5s ease;
}
.logo-plate:hover .client-logo {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.08);
}

/* ── Mobile: siempre en estado "activo" (como hover en PC) ── */
@media (pointer: coarse), (max-width: 860px) {
  .logo-plate {
    opacity: 1 !important;
    border-color: color-mix(in srgb, var(--c) 45%, transparent) !important;
    background: color-mix(in srgb, var(--c) 7%, rgba(255,255,255,.04)) !important;
    box-shadow:
      0 10px 28px rgba(0,0,0,.35),
      0 0 0 1px color-mix(in srgb, var(--c) 20%, transparent),
      0 4px 20px color-mix(in srgb, var(--c) 22%, transparent) !important;
  }
  .logo-plate .client-logo {
    filter: grayscale(0%) opacity(1) !important;
    transform: none !important;
  }
}



/* CONTACTO */
.contact { margin-top: clamp(48px, 6vw, 80px); }
.contact__inner {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255,97,98,.13), transparent 55%),
    radial-gradient(80% 120% at 0% 100%, rgba(0,186,190,.13), transparent 55%),
    linear-gradient(180deg, rgba(14,18,34,.9), rgba(8,11,22,.95));
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}
.contact__inner::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px; -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 75%);
  opacity: .5; pointer-events: none;
}
.contact .kicker { justify-content: center; margin-bottom: 16px; }
.contact h2 {
  position: relative; font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 5vw, 54px); line-height: 1.04; margin: 0 0 18px; letter-spacing: -.02em;
}
.contact h2 .b { color: var(--coral); }
.contact p { position: relative; color: var(--ink-mut); max-width: 52ch; margin: 0 auto 34px; font-size: 16.5px; }
.contact .btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--coral-soft));
  box-shadow: 0 10px 30px rgba(255,97,98,.3); color: #1a0708;
}
.contact .btn-primary:hover { box-shadow: 0 14px 38px rgba(255,97,98,.45); }

/* ===========================================================
   FOOTER (info original CMC Tech)
   =========================================================== */
.footer {
  margin-top: clamp(54px, 7vw, 90px);
  border-top: 1px solid var(--stroke-soft);
  background: linear-gradient(180deg, transparent, rgba(8,11,22,.55));
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr .8fr;
  gap: 40px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px,6vw,60px) clamp(18px,4vw,48px) 32px;
}
.footer__brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__brand-row img { width: 38px; height: 38px; }
.footer__brand-row b { font-family: var(--display); font-size: 20px; letter-spacing: 2px; }
.footer__brand-row b .ltr-c { color: var(--teal); }
.footer__brand-row b .ltr-m { color: var(--coral); }
.footer__col h4 { font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--ink); margin: 0 0 16px; letter-spacing: .3px; }
.footer__col p, .footer__col li { color: var(--ink-mut); font-size: 14.5px; line-height: 1.7; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__col li strong { color: var(--ink); font-weight: 600; }
.footer__col a { color: var(--ink-mut); transition: color .3s; }
.footer__col a:hover { color: var(--teal); }
.footer__social { display: flex; gap: 10px; margin-top: 4px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--stroke-soft); color: var(--ink-mut);
  transition: transform .3s, color .3s, border-color .3s;
}
.footer__social a:hover { transform: translateY(-3px); color: var(--teal); border-color: rgba(0,186,190,.4); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px solid var(--stroke-soft); text-align: center; padding: 18px; }
.footer__bottom p { color: var(--ink-dim); font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; }

@media (max-width: 820px) {
  .footer__top { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .footer__brand-row, .footer__social { justify-content: center; }
}

/* ===========================================================
   CONTACT PAGE (contact.php)
   =========================================================== */
.contact-page {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
  max-width: var(--maxw);
  margin-inline: auto;
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-panel {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 40px;
  backdrop-filter: blur(14px);
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-info-item svg {
  width: 24px;
  height: 24px;
  color: var(--teal);
  flex: none;
  margin-top: 4px;
}
.contact-info-item b {
  display: block;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 4px;
}
.contact-info-item span {
  color: var(--ink-mut);
  font-size: 14.5px;
}

.map-container {
  margin-top: 30px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--stroke-soft);
  height: 250px;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.form-panel {
  background: linear-gradient(180deg, rgba(16,21,38,.97), rgba(9,12,24,.99));
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: 0 40px 120px rgba(0,0,0,.7);
}

.form-panel h2 {
  font-family: var(--display);
  font-size: 32px;
  color: var(--ink);
  margin: 0 0 8px;
}
.form-panel p.sub {
  color: var(--ink-dim);
  font-size: 14px;
  margin-bottom: 30px;
}
.form-panel p.sub span {
  color: var(--coral);
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
}
.form-group label span {
  color: var(--coral);
}
.form-control {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 14.5px;
  transition: border-color 0.3s, background 0.3s;
}
.form-control:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(255,255,255,0.06);
}
.form-control.error {
  border-color: var(--coral);
  background: rgba(255,97,98,0.05);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
.error-message {
  color: var(--coral);
  font-size: 12.5px;
  margin-top: 6px;
  display: none;
}
.form-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ===========================================================
   SMARTLOCKER PAGE (smartlocker.php)
   =========================================================== */
.smartlocker-page {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.gallery-grid img {
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background: var(--glass);
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
}
.gallery-grid img:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--teal) 20%, transparent);
  border-color: color-mix(in srgb, var(--teal) 40%, transparent);
}

.faq-section {
  margin-top: 100px;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
@media (max-width: 800px) {
  .faq-grid { grid-template-columns: 1fr; }
}
details.faq-item {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  padding: 24px;
  backdrop-filter: blur(14px);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
details.faq-item:hover {
  background: var(--glass-strong);
  border-color: color-mix(in srgb, var(--teal) 30%, transparent);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--teal) 10%, transparent);
}
details.faq-item summary {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.faq-item summary::-webkit-details-marker {
  display: none;
}
details.faq-item summary::after {
  content: '+';
  color: var(--teal);
  font-size: 24px;
  font-weight: 400;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
details.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--coral);
}
details.faq-item p {
  margin-top: 16px;
  color: var(--ink-mut);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
  animation: fadeIn 0.4s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
details.faq-item summary span.num {
  color: var(--teal);
  margin-right: 12px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
}

/* ===========================================================
   SMARTLOCKER - NUEVAS SECCIONES INFO
   =========================================================== */
.smart-section {
  margin-top: 100px;
}

/* DIAGRAMA VINCULACIÓN */
.diagram-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.diagram-node {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  padding: 30px;
  text-align: center;
  backdrop-filter: blur(14px);
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  transition: transform 0.3s, border-color 0.3s;
}
.diagram-node:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--teal) 40%, transparent);
}
.diagram-node svg {
  width: 48px;
  height: 48px;
  color: var(--teal);
  margin-bottom: 16px;
}
.diagram-node b {
  display: block;
  font-family: var(--display);
  color: var(--ink);
  font-size: 16px;
}
.node-accent { border-color: color-mix(in srgb, var(--coral) 30%, transparent); }
.node-accent svg { color: var(--coral); }
.cloud-node { background: linear-gradient(135deg, rgba(0,186,190,.1), rgba(0,0,0,0)); }

.diagram-arrows {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.d-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-mut);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.d-arrow svg { width: 24px; height: 24px; color: var(--stroke); }

.diagram-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 900px) {
  .diagram-flow { flex-direction: column; }
  .diagram-arrows { flex-direction: row; }
  .diagram-options { flex-direction: row; }
  .d-arrow svg { transform: rotate(90deg); }
}

/* BENEFICIOS MINIMALISTAS */
.benefits-minimal {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  margin: 40px auto 0;
}
.b-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--stroke) 50%, transparent);
}
.b-item:last-child {
  border-bottom: none;
}
.b-item .b-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--coral) 10%, transparent);
  color: var(--coral);
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 0 20px color-mix(in srgb, var(--coral) 10%, transparent);
}
.b-item .b-icon svg { width: 28px; height: 28px; }
.b-text h3 {
  font-family: var(--display);
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 8px;
}
.b-text p {
  margin: 0;
  color: var(--ink-mut);
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .b-item {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

/* TIMELINE CÓMO FUNCIONA */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
  position: relative;
  max-width: 700px;
  margin-inline: auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--coral));
  opacity: 0.3;
}
.t-step {
  display: flex;
  gap: 24px;
  position: relative;
  z-index: 2;
}
.t-num {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 50%;
  background: var(--bg-1);
  border: 2px solid var(--teal);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 0 20px color-mix(in srgb, var(--teal) 20%, transparent);
}
.t-content {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  padding: 24px;
  flex: 1;
  backdrop-filter: blur(14px);
  transition: transform 0.3s;
}
.t-content:hover {
  transform: translateX(5px);
  border-color: color-mix(in srgb, var(--teal) 40%, transparent);
}
.t-content h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0 0 8px;
  font-size: 17px;
}
.t-content p {
  margin: 0;
  color: var(--ink-mut);
  font-size: 14.5px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .marquee__track { animation: none; }
}

/* ===========================================================
   NOSOTROS (Principios y Pilares)
   =========================================================== */

.nosotros-intro {
  max-width: 900px;
  margin: 0 auto 60px;
  text-align: center;
}

.nosotros-intro .lead-text {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 500;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.5;
}

.nosotros-intro .tech-text {
  font-size: 1rem;
  color: var(--ink-mut);
}

.nosotros-intro .tech-text strong {
  color: var(--teal);
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.principle-card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--r-md);
  padding: 40px 30px;
  text-align: center;
  overflow: hidden;
  transition: all 0.4s ease;
}

.principle-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top center, var(--c), transparent 60%);
  opacity: 0.05;
  transition: opacity 0.4s ease;
}

.principle-card:hover {
  transform: translateY(-5px);
  border-color: var(--c);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4), 0 0 30px var(--c) inset;
}

.principle-card:hover::before {
  opacity: 0.15;
}

.principle__icon {
  font-size: 3rem;
  color: var(--c);
  margin-bottom: 20px;
  filter: drop-shadow(0 0 15px var(--c));
}

.principle-card h3 {
  font-size: 1.25rem;
  color: #fff;
  margin: 0;
  font-weight: 600;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.pillar-card {
  background: var(--bg-1);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--c);
}

.pillar__img {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.pillar__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-1), transparent);
}

.pillar__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.pillar-card:hover .pillar__img img {
  transform: scale(1.08);
}

.pillar__content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pillar__title {
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pillar__title::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
}

.pillar__desc {
  color: var(--ink-mut);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}



/* ===========================================================
   SCROLL REVEAL (IntersectionObserver)
   =========================================================== */

/* Estado inicial: invisible y desplazado */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(.22,.68,.27,1),
              transform 0.65s cubic-bezier(.22,.68,.27,1);
}

/* Variante: entrada desde la izquierda */
[data-reveal="left"] {
  transform: translateX(-36px);
}

/* Variante: entrada desde la derecha */
[data-reveal="right"] {
  transform: translateX(36px);
}

/* Variante: escala */
[data-reveal="scale"] {
  transform: scale(0.92);
}

/* Estado VISIBLE: se anima a su posición final */
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* Delay escalonado para grupos de cards */
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.40s; }
[data-reveal-delay="6"] { transition-delay: 0.48s; }

/* Desactivar en reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===========================================================
   BOTÓN VOLVER ARRIBA  (estilo glassmorphism = cards)
   =========================================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 52px; height: 52px;
  border-radius: var(--r-md);        /* igual que las cards */
  border: 1px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(14px);
  color: var(--teal);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(20px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.35s,
              transform 0.35s cubic-bezier(.22,.68,.27,1.55),
              border-color 0.4s,
              box-shadow 0.4s,
              background 0.4s;
  overflow: hidden;
  isolation: isolate;
}

/* Shimmer igual al ::before de .card */
.back-to-top::before {
  content: "";
  position: absolute; inset: -40% -10%;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.13) 48%,
              color-mix(in srgb, var(--teal) 16%, transparent) 52%, transparent 62%);
  transform: translateX(-120%) rotate(2deg);
  transition: transform .85s cubic-bezier(.22,.7,.3,1);
  pointer-events: none; z-index: 1;
}

/* Línea superior de acento igual al ::after de .card */
.back-to-top::after {
  content: "";
  position: absolute; left: 0; top: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0; transition: opacity .4s;
}

.back-to-top svg {
  width: 20px; height: 20px;
  position: relative; z-index: 2;
}

/* Visible cuando tiene la clase .show */
.back-to-top.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Hover idéntico al de .card */
.back-to-top:hover {
  transform: translateY(-8px) scale(1.04);
  border-color: color-mix(in srgb, var(--teal) 55%, transparent);
  background: var(--glass-strong);
  box-shadow: 0 24px 60px rgba(0,0,0,.5),
              0 0 0 1px color-mix(in srgb, var(--teal) 20%, transparent),
              0 18px 50px color-mix(in srgb, var(--teal) 20%, transparent);
}
.back-to-top:hover::before { transform: translateX(120%) rotate(2deg); }
.back-to-top:hover::after  { opacity: 1; }

.back-to-top:active {
  transform: translateY(0) scale(0.95);
}

@media (max-width: 600px) {
  .back-to-top { bottom: 20px; right: 20px; width: 46px; height: 46px; }
}

/* ===========================================================
   NAVBAR · Dropdown Ecommerce + Perfil + Login (integración tienda)
   =========================================================== */
.nav__dd { position: relative; display: inline-flex; align-items: center; }
.nav__dd-trigger { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.nav__caret { width: 14px; height: 14px; transition: transform .25s; }
.nav__dd:hover .nav__caret { transform: rotate(180deg); }
.nav__icn { width: 17px; height: 17px; }

.nav__dd-menu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 218px;
  background: rgba(7,9,18,.97);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--stroke-soft);
  border-radius: 14px;
  padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .25s;
  z-index: 60;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.nav__dd:hover .nav__dd-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(6px);
}
.nav__dd-menu a {
  padding: 9px 13px; border-radius: 9px;
  font-size: 13.5px; color: var(--ink-mut); white-space: nowrap;
}
.nav__dd-menu a::after { display: none; }
.nav__dd-menu a:hover { background: var(--glass); color: var(--ink); }

.nav__login {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-mut);
  padding: 4px;
  transition: color .25s, transform .25s;
}
.nav__login::after { display: none; }
.nav__login .nav__icn { flex: 0 0 auto; width: 18px; height: 18px; }
.nav__login:hover {
  color: var(--teal);
  transform: scale(1.1);
}

.nav__cart-qty {
  display: inline-block;
  background: var(--coral); color: #fff;
  border-radius: 20px; padding: 1px 7px;
  font-size: 11px; font-weight: 700; margin-left: 6px;
}

@media (max-width: 860px) {
  .nav__dd { width: 100%; flex-direction: column; text-align: center; }
  .nav__dd-menu {
    display: none;             /* colapsado por defecto en mobile */
    position: static; transform: none;
    opacity: 1; visibility: visible;
    background: transparent; border: none; backdrop-filter: none; box-shadow: none;
    padding: 0; min-width: 0; align-items: center;
  }
  /* el hover no debe abrirlo en touch: solo la clase .open */
  .nav__dd:hover .nav__dd-menu { display: none; transform: none; }
  .nav__dd.open .nav__dd-menu { display: flex; padding: 4px 0; }
  .nav__dd.open .nav__caret { transform: rotate(180deg); }
  .nav__dd-menu a { font-size: 13px; }
  /* En mobile (sin hover) el botón centrado */
  .nav__login { margin-top: 6px; }
}


