/* ============================================================
   NEXO CONSULTOR — styles.css
   Mobile-first · Sin frameworks · Sin !important
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=Inter:wght@400;500;600&display=swap');

/* ---- Variables ---- */
:root {
  --display: 'Syne', sans-serif;
  --body:    'Inter', sans-serif;

  --bg:        #0a0d14;
  --bg2:       #0d1220;
  --card:      #111827;

  --grad:      linear-gradient(135deg, #7c3aed 0%, #4f6ef7 45%, #06b6d4 100%);
  --purple:    #7c3aed;
  --blue:      #4f6ef7;
  --cyan:      #06b6d4;

  --t1:        #f1f5f9;
  --t2:        #94a3b8;
  --t3:        #475569;

  --b1:        rgba(79,110,247,0.15);
  --b2:        rgba(79,110,247,0.40);

  --max:       1200px;
  --nav:       88px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  font-family: var(--body);
  color: var(--t2);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

ul  { list-style: none; }
a   { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

h1,h2,h3 {
  font-family: var(--display);
  color: var(--t1);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }

/* ---- Labels / headers ---- */
.label {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
  display: block;
}

.section-head { margin-bottom: 48px; }

.section-head h2 {
  font-size: 28px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  color: #fff;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s;
}
.btn-primary:hover { opacity: .85; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--b2);
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}
.btn-ghost:hover { background: rgba(79,110,247,.10); }

/* ---- Fade-up ---- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   NAVBAR — mobile base
   ============================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.navbar.scrolled {
  background: rgba(10,13,20,.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--b1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav);
  padding: 0 20px;
  max-width: var(--max);
  margin: 0 auto;
}

.logo-img {
  height: 72px;
  width: auto;
  display: block;
}

/* Links y CTA ocultos en mobile */
.nav-links { display: none; }
.nav-cta   { display: none; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px; height: 40px;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--t1);
  border-radius: 2px;
  transform-origin: center;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---- Mobile menu overlay ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10,13,20,.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.mobile-menu ul a {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  color: var(--t2);
  transition: color .2s;
}
.mobile-menu ul a:hover { color: var(--t1); }

/* ============================================================
   HERO — igual que KA Perfumería: 500vh, video autoplay+loop
   El panel sticky queda visible mientras scrolleas los 500vh
   ============================================================ */
.hero {
  position: relative;
  height: 500vh;
  background: #0a0d14;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* Video de fondo */
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,10,18,.45);
}

/* Frases del scroll sequence — copiado de KA Perfumería */
.sv-phrase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px 32px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}
.sv-phrase p {
  font-family: var(--display);
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  text-align: center;
  line-height: 1.15;
  text-shadow: 0 2px 32px rgba(0,0,0,.55), 0 0 64px rgba(0,0,0,.3);
  max-width: 720px;
  letter-spacing: -0.02em;
}
/* Slogan final: inferior izquierda */
.sv-slogan {
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0 24px 80px;
  gap: 20px;
}

/* Indicador de scroll — copiado de KA */
.sv-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.35);
  font-size: 9px;
  letter-spacing: .28em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 3;
  transition: opacity .4s;
}
.sv-hint-line {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.25);
  animation: hintLine 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes hintLine {
  0%,100% { transform: scaleY(.2); opacity: .3; }
  55%      { transform: scaleY(1);  opacity: 1;  }
}

.hero-headline {
  font-family: var(--display);
  font-size: clamp(28px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 640px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.hero-buttons .btn-primary,
.hero-buttons .btn-ghost { width: 100%; }

/* ---- Marquee ---- */
.marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  border-top: 1px solid var(--b1);
  background: rgba(10,13,20,.55);
  overflow: hidden;
}
.marquee-row { overflow: hidden; padding: 10px 0; }
.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--cyan);
}
.marquee-fwd { animation: mfwd 30s linear infinite; }
.marquee-rev { animation: mrev 30s linear infinite; }
@keyframes mfwd { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes mrev { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ============================================================
   SERVICIOS — stacking cards
   ============================================================ */
.services { background: var(--bg); }

.svc-cards {
  padding: 0 16px 16px;
  box-sizing: border-box;
}

.svc-card {
  position: relative;
  height: 70vh;
  min-height: 340px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

.svc-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.svc-card-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.svc-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,10,18,0.93) 0%,
    rgba(8,10,18,0.50) 55%,
    rgba(8,10,18,0.15) 100%
  );
}

.svc-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
  gap: 10px;
  box-sizing: border-box;
}

.svc-num {
  font-size: 11px;
  letter-spacing: 0.3em;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.svc-title {
  font-family: var(--display);
  font-size: clamp(22px, 5vw, 42px);
  font-weight: 800;
  color: var(--t1);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

.svc-desc {
  font-size: 15px;
  color: var(--t2);
  line-height: 1.7;
  margin: 0;
}

/* Desktop: efecto stacking sticky */
@media (min-width: 768px) {
  .svc-cards { padding: 0 40px 40px; }

  .svc-card {
    position: sticky;
    margin-bottom: 20px;
    height: 70vh;
    border-radius: 24px;
    transform-origin: top center;
  }

  .svc-card[data-index="0"] { top: 80px;  z-index: 1; }
  .svc-card[data-index="1"] { top: 100px; z-index: 2; }
  .svc-card[data-index="2"] { top: 120px; z-index: 3; }
  .svc-card[data-index="3"] { top: 140px; z-index: 4; }

  .svc-card-content { padding: 48px; }
}

/* ============================================================
   PROCESO — mobile base
   ============================================================ */
.process {
  background: var(--bg2);
  position: relative;
}
.process::before, .process::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
.process::before { top: 0; }
.process::after  { bottom: 0; }

.steps { display: flex; flex-direction: column; gap: 40px; }

.step { display: flex; flex-direction: column; gap: 8px; }

.step-n {
  display: block;
  font-family: var(--display);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: .35;
  margin-bottom: 4px;
}
.step h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--t1);
}
.step p { font-size: 15px; color: var(--t2); line-height: 1.7; }

/* ============================================================
   CTA — mobile base
   ============================================================ */
.cta {
  background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,.15) 0%, var(--bg) 65%);
}
.cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.cta-inner h2 {
  font-size: clamp(32px, 7vw, 60px);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.cta-btns .btn-primary,
.cta-btns .btn-ghost { width: 100%; }

/* ============================================================
   FOOTER — mobile base
   ============================================================ */
.footer {
  background: #070a10;
  border-top: 1px solid var(--b1);
  padding: 56px 0 0;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}
.footer-logo { height: 56px; width: auto; }
.footer-place { font-size: 13px; color: var(--t3); }

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}
.footer-label {
  display: block;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--t3);
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer-grid ul li a,
.footer-grid ul li span { font-size: 13px; color: var(--t3); transition: color .2s; }
.footer-grid ul li a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--b1);
  padding: 20px 0 32px;
}
.footer-bottom p { font-size: 12px; color: var(--t3); }

/* ============================================================
   RESPONSIVE — igual que KA Perfumería
   ============================================================ */

/* Tablet 768px+ */
@media (min-width: 768px) {
  .container { padding: 0 40px; }
  .section   { padding: 80px 0; }
  .section-head h2 { font-size: 44px; }

  /* Navbar desktop */
  .nav-links { display: flex; align-items: center; gap: 32px; }
  .nav-links a { font-size: 13px; color: var(--t2); font-weight: 500; letter-spacing: .04em; transition: color .2s; }
  .nav-links a:hover { color: var(--t1); }
  .nav-cta   { display: inline-flex; }
  .hamburger { display: none; }
  .logo-img  { height: 100px; }

  /* Hero slogan — más espacio en tablet */
  .sv-slogan { padding: 0 48px 88px; }
  .hero-buttons { flex-direction: row; width: auto; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-ghost { width: auto; }

  /* Proceso en fila */
  .steps { flex-direction: row; gap: 0; }
  .step { flex: 1; padding: 0 24px; border-right: 1px solid var(--b1); }
  .step:first-child { padding-left: 0; }
  .step:last-child  { padding-right: 0; border-right: none; }

  /* CTA en fila */
  .cta-btns { flex-direction: row; width: auto; }
  .cta-btns .btn-primary,
  .cta-btns .btn-ghost { width: auto; }

  /* Footer */
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; margin-bottom: 48px; }
  .footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
}

/* Desktop 1024px+ */
@media (min-width: 1024px) {
  .container { padding: 0 24px; }
  .section   { padding: 120px 0; }
  .section-head h2 { font-size: 52px; }
  .logo-img  { height: 120px; }

  /* Hero slogan */
  .sv-slogan { padding: 0 64px 96px; }
}

/* Mobile — max-width 768px (como KA) */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section   { padding: 56px 0; }

  /* Ocultar nav desktop, mostrar hamburger */
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .hamburger { display: flex; }
  .logo-img  { height: 72px; }

  /* Hero mobile — igual que KA Perfumería */
  .sv-phrase p {
    font-size: clamp(1.4rem, 7vw, 2rem);
    text-shadow: 0 2px 20px rgba(0,0,0,.7);
  }
  /* Slogan mobile: centrado como las demás frases */
  .sv-slogan {
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 0;
  }
  .hero-headline {
    font-size: clamp(22px, 6.5vw, 34px);
    line-height: 1.12;
    text-align: center;
  }

  /* Proceso: columna */
  .steps { flex-direction: column; gap: 32px; }
  .step { border-right: none; padding: 0; }

  /* CTA */
  .cta-btns { flex-direction: column; width: 100%; }
  .cta-btns .btn-primary,
  .cta-btns .btn-ghost { width: 100%; justify-content: center; }

  /* Footer */
  .footer-top { flex-direction: column; gap: 12px; margin-bottom: 36px; }
  .footer-grid { display: flex; flex-direction: column; gap: 28px; }
  .footer-logo { height: 56px; }

  /* Sección headers */
  .section-head h2 { font-size: 26px; }
  .section-head { margin-bottom: 32px; }
}
