/* =========================================================
   MARKIA STUDIO — Estilos
   Estética: oscura, premium, creativa, ligeramente industrial.
   ========================================================= */

:root {
  /* Fondos */
  --bg:        #0a0a0b;
  --bg-2:      #111114;
  --bg-3:      #16161b;
  --surface:   #17171c;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);

  /* Texto */
  --text:      #f5f5f7;
  --muted:     #a1a1aa;
  --muted-2:   #6b6b76;

  /* Acentos (inspirados en el logo) */
  --cyan:      #22d3ee;
  --magenta:   #ec4899;
  --orange:    #fb923c;
  --green:     #22c55e;
  --gold:      #fbbf24;

  --grad: linear-gradient(100deg, var(--cyan), var(--magenta) 40%, var(--orange) 70%, var(--green));

  /* Medidas */
  --max:       1140px;
  --radius:    18px;
  --radius-sm: 12px;

  --shadow:    0 24px 60px -24px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 0 1px var(--border), 0 20px 50px -20px rgba(0,0,0,.7);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: "Sora", "Inter", sans-serif; line-height: 1.15; font-weight: 800; }

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

/* ---------- Utilidades ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: .98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  color: #0a0a0b;
  font-weight: 700;
  box-shadow: 0 10px 30px -8px rgba(236, 72, 153, .5);
}
.btn-primary:hover { box-shadow: 0 16px 40px -8px rgba(236, 72, 153, .65); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--cyan); }

.btn-wa { background: #25d366; color: #06301a; font-weight: 700; }
.btn-wa:hover { background: #2be974; box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .6); }

.btn-lg { padding: 17px 38px; font-size: 1.08rem; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 44px; width: 44px; border-radius: 11px; object-fit: cover; }
.logo-fallback {
  display: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  align-items: center; justify-content: center;
}
.logo-mark { font-family: "Sora"; font-weight: 800; font-size: 1.3rem; }
.logo-fallback .logo-mark { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo-text { font-family: "Sora"; font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.logo-text-accent { color: var(--muted); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav > a { font-size: .95rem; color: var(--muted); font-weight: 500; transition: color .2s; position: relative; }
.nav > a:hover { color: var(--text); }
.nav > a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--grad); transition: width .25s var(--ease);
}
.nav > a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { padding: 9px 18px; font-size: .9rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: clamp(70px, 12vw, 140px) 0 clamp(60px, 8vw, 110px);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .32;
  animation: float 14s ease-in-out infinite;
}
.blob-cyan    { width: 420px; height: 420px; background: var(--cyan);    top: -80px;  left: -60px; }
.blob-magenta { width: 460px; height: 460px; background: var(--magenta); top: 40px;   right: -80px; animation-delay: -3s; }
.blob-orange  { width: 360px; height: 360px; background: var(--orange);  bottom: -120px; left: 30%; animation-delay: -6s; }
.blob-green   { width: 300px; height: 300px; background: var(--green);   bottom: -60px; right: 20%; animation-delay: -9s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -30px) scale(1.08); }
}

.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero-title { font-size: clamp(2.3rem, 6vw, 4.2rem); letter-spacing: -.02em; margin-bottom: 22px; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--muted); max-width: 640px; margin-bottom: 36px; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 54px; }

.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: "Sora"; font-size: 1.9rem; font-weight: 800; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ===================== SECCIONES ===================== */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.02em; margin-bottom: 16px; }
.section-desc { color: var(--muted); font-size: 1.08rem; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-products { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad); opacity: 0;
  transition: opacity .3s; z-index: 0;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1px; border-radius: var(--radius);
}
.card:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: var(--shadow); }
.card:hover::before { opacity: .6; }
.card > * { position: relative; z-index: 1; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }

.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  border: 1px solid var(--border-2);
}
.icon-cyan    { background: rgba(34, 211, 238, .12);  box-shadow: inset 0 0 20px rgba(34,211,238,.15); }
.icon-magenta { background: rgba(236, 72, 153, .12);  box-shadow: inset 0 0 20px rgba(236,72,153,.15); }
.icon-orange  { background: rgba(251, 146, 60, .12);  box-shadow: inset 0 0 20px rgba(251,146,60,.15); }
.icon-green   { background: rgba(34, 197, 94, .12);   box-shadow: inset 0 0 20px rgba(34,197,94,.15); }
.icon-gold    { background: rgba(251, 191, 36, .12);  box-shadow: inset 0 0 20px rgba(251,191,36,.15); }

/* ---------- Card feature (clientes) ---------- */
.card-feature .check-list { margin-top: 18px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 26px; color: var(--muted); font-size: .94rem; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 700;
}

/* ---------- Productos ---------- */
.product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 30px 20px;
  text-align: center;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.product:hover { transform: translateY(-5px) scale(1.02); border-color: var(--cyan); background: var(--bg-3); }
.product-emoji {
  font-size: 2.6rem; display: block; margin-bottom: 12px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.5));
}
.product h4 { font-size: 1.05rem; font-weight: 600; }
#productos .center { margin-top: 44px; }

/* ---------- Proceso ---------- */
.steps { counter-reset: step; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  transition: transform .3s var(--ease), border-color .3s;
}
.step:hover { transform: translateY(-6px); border-color: var(--border-2); }
.step-num {
  font-family: "Sora"; font-weight: 800; font-size: 2.4rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; display: block; margin-bottom: 14px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .96rem; }

/* ---------- Beneficios ---------- */
.benefit { text-align: left; }
.benefit h3 { font-size: 1.15rem; margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: .94rem; }

/* ===================== CTA FINAL ===================== */
.cta-final { padding-bottom: clamp(70px, 9vw, 120px); }
.cta-box {
  position: relative;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--border-2);
  border-radius: 28px;
  padding: clamp(44px, 7vw, 76px) 28px;
  overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background: var(--grad); z-index: 0;
}
.cta-box > * { position: relative; z-index: 1; }
.cta-title { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 16px; }
.cta-sub { color: var(--muted); font-size: 1.12rem; max-width: 560px; margin: 0 auto 34px; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 64px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { color: var(--muted); font-size: .94rem; margin-top: 14px; max-width: 300px; }
.footer-col h4 { font-size: .95rem; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; color: var(--muted); font-size: .92rem; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-muted { color: var(--muted-2); }

.social { display: flex; gap: 12px; }
.social a {
  width: 40px; height: 40px; margin: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--muted); transition: transform .25s var(--ease), color .2s, border-color .2s;
}
.social a:hover { transform: translateY(-3px); color: var(--text); border-color: var(--cyan); }

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 22px 24px; border-top: 1px solid var(--border);
  font-size: .85rem; color: var(--muted-2);
}

/* ===================== BOTONES FLOTANTES ===================== */
.float-buttons {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  display: flex; flex-direction: column; gap: 14px;
}
.float-btn {
  width: 58px; height: 58px; border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s var(--ease);
}
.float-btn:hover { transform: scale(1.08); }

.wa-float { background: #25d366; box-shadow: 0 12px 30px -6px rgba(37, 211, 102, .55); animation: wa-pulse 2.6s infinite; }
.fb-float { background: #1877f2; box-shadow: 0 12px 30px -6px rgba(24, 119, 242, .55); }

@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===================== REVEAL (animaciones) ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Pequeño escalonado dentro de grids */
.grid .reveal:nth-child(2).is-visible { transition-delay: .06s; }
.grid .reveal:nth-child(3).is-visible { transition-delay: .12s; }
.grid .reveal:nth-child(4).is-visible { transition-delay: .18s; }
.grid .reveal:nth-child(5).is-visible { transition-delay: .12s; }
.grid .reveal:nth-child(6).is-visible { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob { animation: none; }
  .wa-float { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: rgba(10, 10, 11, 0.97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 24px;
    transform: translateY(-130%);
    transition: transform .35s var(--ease);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav.nav-open { transform: translateY(0); }
  .nav > a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav > a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 14px; justify-content: center; padding: 13px 18px; }

  .grid-3, .grid-products { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .grid-3, .grid-products, .grid-4 { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { gap: 22px; }
  .stat strong { font-size: 1.6rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .float-buttons { bottom: 18px; right: 18px; gap: 12px; }
}
