/* ═══════════════════════════════════════════════════════
   NEOFY AUTOMATIZACIONES — shared.css
   Tokens, nav, footer y componentes comunes
   ═══════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --ink: #04040A;
  --ink2: #08081A;
  --ink3: #0E0E22;
  --ink4: #14142E;
  --v: #7C3AED;
  --v2: #9333EA;
  --v3: #A855F7;
  --v4: #C084FC;
  --v5: #E9D5FF;
  --w: #F8FAFC;
  --w2: #CBD5E1;
  --w3: #64748B;
  --w4: #1E293B;
  --g: #22C55E;
  --b: #3B82F6;
  --o: #F97316;
  --border: rgba(124,58,237,.18);
  --border2: rgba(255,255,255,.07);
  --glow: rgba(124,58,237,.35);
  --ff: 'Bricolage Grotesque', sans-serif;
  --fi: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(.16,1,.3,1);
  --r: 10px;
  --r2: 18px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: auto; }
body {
  background: var(--ink);
  color: var(--w);
  font-family: var(--fi);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--v); color: #fff; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--fi); }
img { max-width: 100%; display: block; }

/* ── CANVAS ── */
#bgc {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none; opacity: .45;
}

/* ── CURSOR ── */
.cur, .cur2 {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: 9990;
  transform: translate(-50%, -50%);
}
.cur { width: 8px; height: 8px; background: var(--v3); transition: width .15s, height .15s; }
.cur2 { width: 32px; height: 32px; border: 1.5px solid rgba(168,85,247,.4); transition: width .2s, height .2s; }
@media (hover: none) { .cur, .cur2 { display: none; } }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
}
.navi {
  max-width: 1240px; margin: 0 auto;
  padding: 20px 36px;
  display: flex; align-items: center; justify-content: space-between;
  transition: .4s var(--ease);
}
.nav.s .navi {
  padding: 13px 36px;
  background: rgba(4,4,10,.88);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border2);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff); font-size: 17px; font-weight: 800; letter-spacing: -.03em;
}
.logom {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--v), var(--v3));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px var(--glow); flex-shrink: 0;
}
.logom svg { width: 18px; height: 18px; }
.logo-txt span { color: var(--v4); }
.navlinks { display: flex; align-items: center; gap: 32px; list-style: none; }
.navlinks a { font-size: 13px; font-weight: 500; color: var(--w3); transition: color .2s; }
.navlinks a:hover, .navlinks a.active { color: var(--w); }
.navlinks a.active { color: var(--v4); }
.nbtn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--v); color: #fff;
  padding: 9px 20px; border-radius: var(--r);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  transition: .2s;
}
.nbtn:hover { background: var(--v2); box-shadow: 0 0 28px var(--glow); transform: translateY(-1px); }
.ham { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.ham span { display: block; width: 22px; height: 1.5px; background: var(--w); border-radius: 2px; }
.mmenu {
  display: none; position: fixed; inset: 0;
  background: var(--ink); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 36px;
}
.mmenu.o { display: flex; }
.mmenu a { font-family: var(--ff); font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.mmx { position: absolute; top: 22px; right: 26px; font-size: 24px; color: var(--w3); cursor: pointer; background: none; border: none; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  color: var(--w3); letter-spacing: .06em;
  padding: 140px 0 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--w3); transition: color .2s; }
.breadcrumb a:hover { color: var(--v4); }
.breadcrumb .sep { color: var(--w4); }
.breadcrumb .current { color: var(--v3); }

/* ── WRAP ── */
.w { max-width: 1240px; margin: 0 auto; padding: 0 36px; position: relative; z-index: 1; }

/* ── SECCIÓN BASE ── */
.sec { padding: 100px 0; position: relative; z-index: 1; }
.sec-sm { padding: 64px 0; }
.sec-lg { padding: 128px 0; }

/* ── LABEL / EYEBROW ── */
.lbl {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--v3);
  margin-bottom: 20px;
}
.lbl::before { content: '//'; color: var(--v); margin-right: 2px; }

/* ── TIPOGRAFÍA ── */
.h1 {
  font-family: var(--ff);
  font-size: clamp(44px, 6.5vw, 88px);
  font-weight: 800; letter-spacing: -.04em; line-height: .95;
}
.h2 {
  font-family: var(--ff);
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.0;
  margin-bottom: 20px;
}
.h3 {
  font-family: var(--ff);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
  margin-bottom: 16px;
}
.h2 em, .h3 em { font-style: normal; color: var(--v4); }
.body-l { font-size: 18px; color: var(--w2); line-height: 1.7; max-width: 560px; }
.body-m { font-size: 15px; color: var(--w2); line-height: 1.7; }

/* ── BOTONES ── */
.btnp {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--v), var(--v2));
  color: #fff; padding: 14px 28px; border-radius: var(--r);
  font-size: 15px; font-weight: 700; letter-spacing: .01em;
  transition: .25s var(--ease); position: relative; overflow: hidden;
}
.btnp::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--v2), #818cf8); opacity: 0; transition: .25s; }
.btnp:hover::after { opacity: 1; }
.btnp:hover { box-shadow: 0 10px 44px var(--glow); transform: translateY(-2px); }
.btnp span, .btnp svg { position: relative; z-index: 1; }
.btnp svg { transition: transform .2s; }
.btnp:hover svg { transform: translateX(4px); }
.btns {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--w3); font-size: 15px; font-weight: 500;
  padding: 14px 0; border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.btns:hover { color: var(--w); border-color: rgba(255,255,255,.2); }

/* ── TAGS / PILLS ── */
.tag {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  padding: 3px 9px; border-radius: 4px;
  border: 1px solid var(--border2); color: var(--w3); letter-spacing: .04em;
}
.pill {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 100px;
  background: var(--ink2); border: 1px solid var(--border2);
  font-size: 13.5px; font-weight: 500;
  transition: .22s; cursor: default;
}
.pill:hover { border-color: var(--v); background: rgba(124,58,237,.06); color: var(--v4); }
.pill-ico {
  width: 26px; height: 26px; border-radius: 6px;
  background: rgba(124,58,237,.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pill-ico svg { width: 13px; height: 13px; stroke: var(--v3); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── CARD GRID ── */
.card-grid {
  display: grid; gap: 1px;
  background: var(--border2);
  border-radius: var(--r2); overflow: hidden;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--ink2); padding: 36px;
  position: relative; overflow: hidden; transition: background .3s;
}
.card:hover { background: var(--ink3); }
.card.span2 { grid-column: span 2; }
.card-glow {
  position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(124,58,237,.1), transparent 70%);
  pointer-events: none; opacity: 0; transition: opacity .3s;
}
.card:hover .card-glow { opacity: 1; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(124,58,237,.07); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: .3s;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--v3); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card-icon { border-color: var(--v); background: rgba(124,58,237,.14); }
.card-dept { font-family: var(--mono); font-size: 10px; color: var(--v3); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.card-title { font-family: var(--ff); font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; line-height: 1.2; }
.card.span2 .card-title { font-size: 24px; }
.card-desc { font-size: 13.5px; color: var(--w3); line-height: 1.65; margin-bottom: 16px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.card-lnk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--v4); margin-top: 16px; transition: gap .2s; }
.card-lnk:hover { gap: 10px; }
.card-lnk svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── STATS ── */
.stats-bar { border-top: 1px solid var(--border2); border-bottom: 1px solid var(--border2); padding: 52px 0; position: relative; z-index: 1; }
.statg { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 0 40px; border-right: 1px solid var(--border2); text-align: center; }
.stat:first-child { padding-left: 0; text-align: left; }
.stat:last-child { border-right: none; padding-right: 0; text-align: right; }
.statn {
  font-family: var(--ff); font-size: clamp(36px, 4vw, 54px);
  font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--w) 0%, var(--v4) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.statl { font-size: 13px; color: var(--w3); line-height: 1.45; }

/* ── FAQ ── */
.faq-wrap { max-width: 760px; margin: 60px auto 0; }
.faq { border-bottom: 1px solid var(--border2); }
.faq:first-child { border-top: 1px solid var(--border2); }
.faqq {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0;
  font-family: var(--ff); font-size: 17px; font-weight: 700; letter-spacing: -.01em;
  cursor: pointer; user-select: none; transition: color .2s;
}
.faqq:hover { color: var(--v4); }
.faqico {
  width: 28px; height: 28px; flex-shrink: 0;
  border: 1px solid var(--border2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: .3s;
}
.faqico svg { width: 13px; height: 13px; stroke: var(--w3); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.faq.o .faqico { border-color: var(--v); background: rgba(124,58,237,.1); }
.faq.o .faqico svg { transform: rotate(45deg); stroke: var(--v4); }
.faqa { font-size: 15px; color: var(--w3); line-height: 1.75; max-height: 0; overflow: hidden; transition: max-height .4s var(--ease), padding .4s var(--ease); }
.faq.o .faqa { max-height: 250px; padding-bottom: 22px; }

/* ── CTA FORM BOX ── */
.ctabox {
  background: var(--ink2); border: 1px solid var(--border);
  border-radius: 24px; padding: 72px 60px;
  text-align: center; position: relative; overflow: hidden;
}
.ctabox::before {
  content: ''; position: absolute;
  top: -90px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 320px;
  background: radial-gradient(ellipse, rgba(124,58,237,.12), transparent 65%);
  pointer-events: none;
}
.ctabox::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M60 0L0 0 0 60' fill='none' stroke='rgba(124,58,237,0.04)' stroke-width='.5'/%3E%3C/svg%3E");
  pointer-events: none;
}
.ctabox > * { position: relative; z-index: 1; }
.cta-neo { width: 110px; height: auto; margin: 0 auto 24px; filter: drop-shadow(0 0 28px rgba(124,58,237,.3)); animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.cta-title { font-family: var(--ff); font-size: clamp(30px, 4vw, 52px); font-weight: 800; letter-spacing: -.04em; margin-bottom: 16px; line-height: 1.0; }
.cta-sub { font-size: 17px; color: var(--w2); max-width: 460px; margin: 0 auto 44px; line-height: 1.65; }
.cta-form { display: flex; flex-direction: column; gap: 12px; max-width: 460px; margin: 0 auto; }
.cta-form input, .cta-form select, .cta-form textarea {
  background: rgba(255,255,255,.04); border: 1px solid var(--border2);
  border-radius: var(--r); padding: 13px 17px;
  color: var(--w); font-family: var(--fi); font-size: 14px;
  width: 100%; outline: none; transition: .2s; -webkit-appearance: none;
}
.cta-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; cursor: pointer; }
.cta-form select option { background: #0a0a18; color: var(--w); }
.cta-form input:focus, .cta-form select:focus, .cta-form textarea:focus { border-color: var(--v); background: rgba(124,58,237,.04); }
.cta-form input::placeholder, .cta-form textarea::placeholder { color: var(--w4); }
.cta-form textarea { resize: vertical; min-height: 88px; }
.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-btn { background: linear-gradient(135deg, var(--v), var(--v2)); color: #fff; padding: 15px 28px; border-radius: var(--r); font-size: 15px; font-weight: 700; width: 100%; transition: .25s var(--ease); position: relative; overflow: hidden; }
.cta-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--v2), #818cf8); opacity: 0; transition: .25s; }
.cta-btn span { position: relative; z-index: 1; }
.cta-btn:hover::after { opacity: 1; }
.cta-btn:hover { box-shadow: 0 10px 44px var(--glow); transform: translateY(-2px); }
.cta-note { font-size: 12px; color: var(--w4); margin-top: 6px; }
.cta-wa { margin-top: 20px; font-size: 14px; color: var(--w3); }
.cta-wa a { color: var(--v4); font-weight: 600; transition: color .2s; }
.cta-wa a:hover { color: var(--w); }

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--border2); padding: 44px 0 28px; position: relative; z-index: 1; }
.footr { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footlogo { font-family: var(--ff); font-size: 16px; font-weight: 800; letter-spacing: -.03em; }
.footlogo span { color: var(--v4); }
.footnav { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.footnav a { font-size: 13px; color: var(--w3); transition: color .2s; }
.footnav a:hover { color: var(--w); }
.footcopy { font-size: 12px; color: var(--w4); text-align: center; padding-top: 24px; border-top: 1px solid var(--border2); margin-top: 24px; }

/* ── NEO IMAGE ── */
.neo-img {
  filter: drop-shadow(0 0 48px rgba(124,58,237,.22));
  animation: float 6s ease-in-out infinite;
}
.neo-badge {
  position: absolute; background: var(--ink2);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px; font-size: 12px;
  box-shadow: 0 6px 28px rgba(0,0,0,.4);
}
.nb-lbl { font-family: var(--mono); font-size: 10px; color: var(--v3); margin-bottom: 5px; letter-spacing: .08em; }
.nb-val { font-family: var(--ff); font-size: 20px; font-weight: 800; margin-top: 3px; }
.nb-p { font-size: 12px; color: var(--w3); }

/* ── PROCESO / STEPS ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin-top: 64px; }
.steps-line { position: absolute; top: 24px; left: 12.5%; width: 75%; height: 1px; background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent); }
.step { padding: 0 24px; text-align: center; }
.step:first-child { padding-left: 0; text-align: left; }
.step:last-child { padding-right: 0; text-align: right; }
.step-n { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--ink2); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; color: var(--v4); margin: 0 auto 24px; position: relative; z-index: 1; transition: .3s; }
.step:first-child .step-n, .step:last-child .step-n { margin: 0 0 24px; }
.step:hover .step-n { border-color: var(--v); background: rgba(124,58,237,.1); box-shadow: 0 0 18px var(--glow); }
.step-t { font-family: var(--ff); font-size: 16px; font-weight: 700; margin-bottom: 9px; letter-spacing: -.01em; }
.step-d { font-size: 13px; color: var(--w3); line-height: 1.6; }

/* ── ANIMACIÓN RPULSE ── */
@keyframes rp { 0% { box-shadow: 0 0 0 0 rgba(168,85,247,.6); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .card-grid-3 { grid-template-columns: 1fr 1fr; }
  .card.span2 { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px; }
  .steps-line { display: none; }
  .step { text-align: left; padding: 0; }
  .step-n { margin: 0 0 20px; }
  .step:last-child { text-align: left; }
  .statg { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .stat { border-right: none; border-bottom: 1px solid var(--border2); padding: 0 0 40px; text-align: left; }
  .stat:nth-child(2n) { border-bottom: none; }
  .stat:first-child, .stat:last-child { text-align: left; border-bottom: none; }
}
@media (max-width: 768px) {
  .w { padding: 0 20px; }
  .navi { padding: 18px 20px; }
  .nav.s .navi { padding: 13px 20px; }
  .navlinks, .nbtn { display: none; }
  .ham { display: flex; }
  .sec { padding: 72px 0; }
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .card.span2 { grid-column: span 1; }
  .ctabox { padding: 40px 24px; }
  .cta-row { grid-template-columns: 1fr; }
  .footr { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .statg { grid-template-columns: 1fr; gap: 24px; }
  .stat { border-bottom: 1px solid var(--border2); padding-bottom: 24px; }
  .stat:last-child { border-bottom: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── NAV DROPDOWN ── */
.navlinks a,.navlinks>li>span,.navlinks .dd-trigger{font-size:13.5px;font-weight:500;color:var(--w3);transition:color .2s;cursor:pointer}
.navlinks a:hover,.navlinks>li>span:hover,.navlinks .dd-trigger:hover{color:var(--w)}
.joya-link{color:var(--v4)!important;font-weight:600!important}
.joya-link:hover{color:var(--w)!important}
.navlinks>li{position:relative}
.nav-dd{position:absolute;top:calc(100% + 14px);left:-20px;min-width:300px;background:rgba(8,8,26,.96);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid var(--border);border-radius:14px;padding:10px;opacity:0;visibility:hidden;transform:translateY(8px);transition:.25s cubic-bezier(.16,1,.3,1);box-shadow:0 12px 40px rgba(0,0,0,.5);z-index:200}
.nav-dd.dd-open{opacity:1;visibility:visible;transform:translateY(0)}
.nav-dd a{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:9px;font-size:13px;font-weight:500;color:var(--w2);transition:.15s}
.nav-dd a:hover{background:rgba(124,58,237,.08);color:var(--w)}
.nav-dd .dd-dot{width:8px;height:8px;border-radius:50%;background:var(--v3);flex-shrink:0;box-shadow:0 0 6px var(--glow)}
.nav-dd .dd-sep{height:1px;background:var(--border2);margin:6px 14px}
