/* ===========================================================
   MALE GAMIFICA — design tokens
   bg-void matches the brand artwork background (#07050F) so
   the logo/photo assets blend seamlessly into the page.
   =========================================================== */
:root{
  --bg-void:    #07050F;
  --bg-panel:   #120C24;
  --bg-panel-2: #170F2E;
  --line:       rgba(153,51,255,0.28);

  --purple-600: #9933FF;
  --purple-300: #C9A6FF;
  --purple-900: #2B1052;

  --neon:       #E7FF3D;   /* signature neon-yellow accent */
  --neon-dim:   rgba(231,255,61,0.18);

  --ink-100:    #F7F5FB;
  --ink-300:    #C8C0DE;
  --ink-400:    #9A8FBE;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body:    "Inter", "Segoe UI", sans-serif;
  --font-script:  "Caveat", cursive;

  --maxw: 1160px;
  --radius: 18px;
  --radius-sm: 12px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
}

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

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
section{ position:relative; }

.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 24px;
}

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:600;
  letter-spacing:-0.01em;
  margin:0;
  color:var(--ink-100);
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-display);
  font-size:12.5px;
  font-weight:600;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--purple-300);
  margin:0 0 14px;
}
.eyebrow::before{
  content:"";
  width:8px; height:8px;
  border-radius:50%;
  background:var(--neon);
  box-shadow:0 0 10px 2px var(--neon-dim);
  flex-shrink:0;
}

.lede{
  color:var(--ink-400);
  font-size:1.05rem;
  max-width:620px;
}

:focus-visible{
  outline:2px solid var(--neon);
  outline-offset:3px;
  border-radius:4px;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:0.95rem;
  padding:13px 26px;
  border-radius:999px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn-neon{
  background:var(--neon);
  color:#13100A;
  box-shadow:0 0 0 0 rgba(231,255,61,0.5);
}
.btn-neon:hover{ box-shadow:0 8px 28px -6px rgba(231,255,61,0.55); }
.btn-ghost{
  background:transparent;
  border-color:rgba(247,245,251,0.25);
  color:var(--ink-100);
}
.btn-ghost:hover{ border-color:var(--purple-300); background:rgba(153,51,255,0.08); }
.btn-sm{ padding:9px 18px; font-size:0.85rem; }

/* ===========================================================
   NAV
   =========================================================== */
.nav{
  position:fixed;
  top:0; left:0; right:0;
  z-index:100;
  background:rgba(7,5,15,0.72);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(153,51,255,0.16);
}
.nav .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:74px;
}
.nav-brand{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.nav-brand img{ height:38px; width:auto; flex-shrink:0; }
.nav-brand span{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.05rem;
  letter-spacing:-0.01em;
  white-space:nowrap;
}
.nav-brand span b{ color:var(--purple-300); font-weight:700; }

.nav-links{
  display:flex;
  align-items:center;
  gap:34px;
}
.nav-links a{
  font-size:0.92rem;
  font-weight:500;
  color:var(--ink-300);
  position:relative;
  padding:4px 0;
  transition:color .15s ease;
}
.nav-links a:hover{ color:var(--ink-100); }
.nav-links a::after{
  content:"";
  position:absolute; left:0; right:100%; bottom:-2px;
  height:2px; background:var(--neon);
  transition:right .2s ease;
}
.nav-links a:hover::after{ right:0; }

.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-toggle{
  display:none;
  background:none; border:none; color:var(--ink-100);
  width:40px; height:40px; cursor:pointer;
}
.nav-toggle svg{ width:24px; height:24px; }

@media (max-width:880px){
  .nav-links{
    position:fixed; top:74px; left:0; right:0;
    background:var(--bg-panel);
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding:8px 24px 18px;
    border-bottom:1px solid rgba(153,51,255,0.18);
    transform:translateY(-8px);
    opacity:0;
    pointer-events:none;
    transition:opacity .18s ease, transform .18s ease;
  }
  .nav-links.is-open{
    opacity:1; transform:translateY(0); pointer-events:auto;
  }
  .nav-links a{ padding:12px 0; width:100%; border-bottom:1px solid rgba(255,255,255,0.06); }
  .nav-cta .btn-ghost{ display:none; }
  .nav-toggle{ display:flex; align-items:center; justify-content:center; }
}

/* ===========================================================
   CIRCUIT RAIL — signature decorative element
   A vertical line of nodes echoing the logo's circuit icon,
   lights up in sequence as the visitor scrolls past each
   section. Desktop only; collapses to a simple gradient hairline
   on small screens to avoid clutter.
   =========================================================== */
.circuit-rail{
  position:fixed;
  top:6vh; bottom:6vh; left:36px;
  width:2px;
  z-index:5;
  pointer-events:none;
  background:linear-gradient(180deg, transparent, rgba(153,51,255,0.35) 8%, rgba(153,51,255,0.35) 92%, transparent);
}
.rail-node{
  position:absolute;
  left:50%;
  width:11px; height:11px;
  margin-left:-5.5px;
  border-radius:50%;
  background:var(--bg-void);
  border:1.6px solid var(--purple-300);
  transition:background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.rail-node.is-active{
  background:var(--neon);
  border-color:var(--neon);
  box-shadow:0 0 8px var(--neon), 0 0 18px rgba(231,255,61,0.6);
}
@media (max-width:1180px){ .circuit-rail{ display:none; } }

/* ===========================================================
   HERO
   =========================================================== */
.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:140px 0 80px;
  background:
    radial-gradient(ellipse 60% 50% at 80% 8%, rgba(153,51,255,0.22), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(231,255,61,0.06), transparent 60%),
    var(--bg-void);
  overflow:hidden;
}
.hero .wrap{
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:56px;
  align-items:center;
}
.hero-copy h1{
  font-size:clamp(2.2rem, 4.2vw, 3.4rem);
  line-height:1.08;
  margin:14px 0 22px;
}
.hero-copy h1 .hl{
  background:linear-gradient(95deg, var(--purple-300), var(--purple-600) 60%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-copy h1 .hl-neon{ color:var(--neon); }
.hero-actions{
  display:flex; gap:14px; flex-wrap:wrap; margin-top:30px;
}
.hero-chips{
  display:flex; gap:10px; flex-wrap:wrap; margin-top:34px;
}
.chip{
  font-size:0.82rem; font-weight:500;
  color:var(--ink-300);
  border:1px solid rgba(153,51,255,0.3);
  background:rgba(153,51,255,0.07);
  border-radius:999px;
  padding:7px 14px;
  display:inline-flex; align-items:center; gap:7px;
}
.chip svg{ width:14px; height:14px; color:var(--neon); flex-shrink:0; }

.hero-art{
  position:relative;
  display:flex; align-items:center; justify-content:center;
}
.hero-art img{
  width:100%;
  max-width:480px;
  filter:drop-shadow(0 18px 50px rgba(153,51,255,0.28));
}
.hero-art::before{
  content:"";
  position:absolute;
  width:340px; height:340px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(153,51,255,0.32), transparent 70%);
  filter:blur(10px);
  z-index:-1;
}

@media (max-width:880px){
  .hero{ padding:118px 0 60px; }
  .hero .wrap{ grid-template-columns:1fr; gap:36px; text-align:left; }
  .hero-art{ order:-1; }
  .hero-art img{ max-width:300px; }
}

/* ===========================================================
   QUIEN SOY
   =========================================================== */
.about{ padding:110px 0; background:var(--bg-void); }
.about .wrap{
  display:grid;
  grid-template-columns:0.78fr 1.22fr;
  gap:64px;
  align-items:center;
}
.about-photo{ position:relative; }
.about-photo img{
  width:100%; max-width:380px; margin:0 auto;
  border-radius:50%;
  aspect-ratio:1/1;
  object-fit:cover;
}
.about-tag{
  position:absolute;
  top:6%; right:6%;
  font-family:var(--font-script);
  font-size:1.5rem;
  color:var(--neon);
  transform:rotate(-6deg);
}
.about-body h2{ font-size:clamp(1.7rem,3vw,2.3rem); margin-bottom:18px; line-height:1.18; }
.about-body p{ color:var(--ink-300); margin:0 0 16px; max-width:560px; }
.about-body p:last-of-type{ margin-bottom:28px; }
.about-creds{ display:flex; flex-wrap:wrap; gap:10px; }

@media (max-width:880px){
  .about{ padding:80px 0; }
  .about .wrap{ grid-template-columns:1fr; gap:36px; text-align:left; }
  .about-photo img{ max-width:240px; margin:0; }
}

/* ===========================================================
   SERVICIOS
   =========================================================== */
.services{ padding:110px 0 100px; background:var(--bg-panel); border-top:1px solid rgba(153,51,255,0.14); border-bottom:1px solid rgba(153,51,255,0.14); }
.services-head{ max-width:680px; margin-bottom:42px; }
.services-head h2{ font-size:clamp(1.7rem,3vw,2.3rem); margin:14px 0 14px; }

.tabs{
  display:inline-flex;
  background:var(--bg-panel-2);
  border:1px solid rgba(153,51,255,0.25);
  border-radius:999px;
  padding:5px;
  margin-bottom:40px;
  gap:4px;
}
.tab-btn{
  font-family:var(--font-display);
  font-weight:600;
  font-size:0.92rem;
  padding:11px 22px;
  border-radius:999px;
  border:none;
  background:transparent;
  color:var(--ink-300);
  cursor:pointer;
  transition:background .2s ease, color .2s ease;
}
.tab-btn.is-active{
  background:var(--purple-600);
  color:#fff;
}

@media (max-width:480px){
  .tabs{ width:100%; }
  .tab-btn{ flex:1; padding:11px 10px; font-size:0.84rem; white-space:nowrap; }
}
.tab-panel{ display:none; }
.tab-panel.is-active{ display:block; animation:fadeUp .35s ease; }
@keyframes fadeUp{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:translateY(0); } }

.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px,1fr));
  gap:20px;
}
.card{
  background:var(--bg-void);
  border:1px solid rgba(153,51,255,0.18);
  border-radius:var(--radius);
  padding:26px;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover{
  transform:translateY(-4px);
  border-color:rgba(231,255,61,0.4);
  box-shadow:0 14px 36px -16px rgba(153,51,255,0.45);
}
.card .icon{
  width:44px; height:44px;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(153,51,255,0.14);
  margin-bottom:16px;
}
.card .icon svg{ width:22px; height:22px; color:var(--purple-300); }
.card h3{ font-size:1.05rem; margin-bottom:8px; line-height:1.3; }
.card p{ color:var(--ink-400); font-size:0.9rem; margin:0; }

.card.card-cta{
  background:linear-gradient(160deg, rgba(153,51,255,0.16), rgba(231,255,61,0.05));
  border:1px dashed rgba(231,255,61,0.4);
  display:flex; flex-direction:column; justify-content:center;
}
.card.card-cta h3{ color:var(--neon); }

/* ===========================================================
   PROCESO
   =========================================================== */
.process{ padding:100px 0; background:var(--bg-void); }
.process-head{ max-width:600px; margin-bottom:50px; }
.process-head h2{ font-size:clamp(1.7rem,3vw,2.3rem); margin:14px 0; }
.process-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}
.process-step{ position:relative; padding-left:0; }
.process-step .num{
  font-family:var(--font-display);
  font-size:0.85rem;
  font-weight:600;
  color:var(--neon);
  border:1px solid rgba(231,255,61,0.4);
  width:34px; height:34px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
}
.process-step h3{ font-size:1.1rem; margin-bottom:8px; }
.process-step p{ color:var(--ink-400); font-size:0.92rem; margin:0; }
@media (max-width:880px){
  .process-grid{ grid-template-columns:1fr; gap:32px; }
}

/* ===========================================================
   NOTICIAS
   =========================================================== */
.news{ padding:110px 0; background:var(--bg-panel); border-top:1px solid rgba(153,51,255,0.14); }
.news-head{
  display:flex; justify-content:space-between; align-items:flex-end; gap:24px;
  margin-bottom:42px; flex-wrap:wrap;
}
.news-head h2{ font-size:clamp(1.7rem,3vw,2.3rem); margin:14px 0 6px; }
.news-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px,1fr));
  gap:24px;
}
.news-card{
  background:var(--bg-void);
  border:1px solid rgba(153,51,255,0.16);
  border-radius:var(--radius);
  overflow:hidden;
  display:flex; flex-direction:column;
  transition:transform .2s ease, border-color .2s ease;
}
.news-card:hover{ transform:translateY(-4px); border-color:rgba(153,51,255,0.4); }
.news-card .thumb{
  height:150px;
  background:linear-gradient(135deg, var(--purple-900), var(--bg-panel-2));
  display:flex; align-items:center; justify-content:center;
  position:relative;
}
.news-card .thumb svg{ width:34px; height:34px; color:var(--purple-300); opacity:.8; }
.news-card .thumb .tag{
  position:absolute; top:14px; left:14px;
  font-size:0.7rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
  background:var(--neon); color:#13100A;
  padding:5px 10px; border-radius:999px;
}
.news-card .body{ padding:22px; display:flex; flex-direction:column; gap:10px; flex:1; }
.news-card .date{ font-size:0.78rem; color:var(--ink-400); }
.news-card h3{ font-size:1.05rem; line-height:1.32; }
.news-card p{ color:var(--ink-400); font-size:0.88rem; margin:0; flex:1; }
.news-card .read{ font-size:0.85rem; font-weight:600; color:var(--neon); margin-top:6px; }

/* --- Ad slots: visually distinct, clearly labeled --- */
.ad-slot{
  border:1px dashed rgba(247,245,251,0.22);
  border-radius:var(--radius-sm);
  background:rgba(247,245,251,0.03);
  display:flex; align-items:center; justify-content:center;
  flex-direction:column;
  gap:6px;
  color:var(--ink-400);
  font-size:0.78rem;
  letter-spacing:0.04em;
  text-transform:uppercase;
  font-weight:600;
}
.ad-slot span.small{ font-size:0.68rem; opacity:.7; text-transform:none; letter-spacing:0; }
.ad-leaderboard{ width:100%; min-height:110px; margin-top:36px; }
.ad-rect{ width:100%; max-width:300px; min-height:250px; margin:0 auto; }

/* --- Blog: filtros por categoría --- */
.blog-tabs{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:28px; }
.blog-tab{
  font-family:var(--font-display);
  font-size:0.82rem; font-weight:600;
  padding:8px 16px;
  border-radius:999px;
  border:1px solid rgba(153,51,255,0.3);
  background:transparent;
  color:var(--ink-300);
  cursor:pointer;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.blog-tab:hover{ border-color:var(--purple-300); }
.blog-tab.is-active{ background:var(--purple-600); color:#fff; border-color:var(--purple-600); }

/* --- Blog: artículo destacado --- */
.blog-featured-slot{ margin-bottom:24px; }
.blog-featured{
  display:flex;
  background:var(--bg-void);
  border:1px solid rgba(153,51,255,0.18);
  border-radius:var(--radius);
  overflow:hidden;
  transition:border-color .2s ease;
}
.blog-featured:hover{ border-color:rgba(231,255,61,0.35); }
.blog-featured-thumb{
  width:240px; flex-shrink:0;
  background:linear-gradient(135deg, var(--purple-900), var(--bg-panel-2));
  display:flex; align-items:center; justify-content:center;
  position:relative;
}
.blog-featured-thumb svg{ width:44px; height:44px; color:var(--purple-300); opacity:.8; }
.blog-featured-body{ padding:28px; display:flex; flex-direction:column; justify-content:center; gap:10px; }
.blog-featured-body h3{ font-size:1.2rem; line-height:1.3; }
.blog-featured-body p{ color:var(--ink-400); font-size:0.92rem; margin:0; }
.blog-featured-body .date{ font-size:0.78rem; color:var(--ink-400); }
.tag--featured{
  position:absolute; top:14px; left:14px;
  font-size:0.7rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
  background:var(--neon); color:#13100A;
  padding:5px 10px; border-radius:999px;
}
@media (max-width:680px){
  .blog-featured{ flex-direction:column; }
  .blog-featured-thumb{ width:100%; height:120px; }
  .blog-featured-body{ padding:22px; }
}

/* --- Blog: cargar más --- */
.blog-view-all{ display:flex; justify-content:center; margin-top:32px; }

/* ===========================================================
   CONTACT / CTA
   =========================================================== */
.contact{ padding:120px 0; background:var(--bg-void); text-align:center; position:relative; overflow:hidden; }
.contact::before{
  content:"";
  position:absolute; left:50%; top:50%;
  width:700px; height:700px;
  background:radial-gradient(circle, rgba(153,51,255,0.18), transparent 70%);
  transform:translate(-50%,-50%);
  z-index:0;
}
.contact .wrap{ position:relative; z-index:1; max-width:680px; }
.contact h2{ font-size:clamp(1.9rem,4vw,2.6rem); margin:14px 0 16px; }
.contact .lede{ margin:0 auto 36px; }
.contact-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.contact-note{ margin-top:22px; font-size:0.82rem; color:var(--ink-400); }

/* ===========================================================
   FOOTER
   =========================================================== */
footer{ background:var(--bg-panel); border-top:1px solid rgba(153,51,255,0.16); padding:60px 0 28px; }
.footer-top{
  display:grid; grid-template-columns:1.4fr 1fr 1fr;
  gap:40px; margin-bottom:40px;
}
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.footer-brand img{ height:34px; }
.footer-brand span{ font-family:var(--font-display); font-weight:700; }
.footer-col p{ color:var(--ink-400); font-size:0.9rem; max-width:280px; }
.footer-col h4{ font-size:0.85rem; text-transform:uppercase; letter-spacing:0.08em; color:var(--ink-300); margin-bottom:14px; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col ul a{ color:var(--ink-400); font-size:0.9rem; transition:color .15s ease; }
.footer-col ul a:hover{ color:var(--neon); }
.footer-social{ display:flex; gap:12px; margin-top:16px; }
.footer-social a{
  width:36px; height:36px; border-radius:50%;
  border:1px solid rgba(153,51,255,0.3);
  display:flex; align-items:center; justify-content:center;
  transition:border-color .15s ease, background .15s ease;
}
.footer-social a:hover{ border-color:var(--neon); background:rgba(231,255,61,0.08); }
.footer-social svg{ width:16px; height:16px; color:var(--ink-100); }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.06);
  padding-top:24px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size:0.82rem; color:var(--ink-400);
}
@media (max-width:760px){
  .footer-top{ grid-template-columns:1fr; gap:30px; }
}

/* ---------- reveal-on-scroll (progressive enhancement) ---------- */
/* Visible by default. Only animates if JS successfully tags <html class="js"> */
.reveal{ opacity:1; transform:none; }
.js .reveal{ opacity:0; transform:translateY(22px); transition:opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible{ opacity:1; transform:translateY(0); }

/* ---------- whatsapp floating button ---------- */
.wa-float{
  position:fixed; bottom:24px; right:24px; z-index:90;
  width:58px; height:58px; border-radius:50%;
  background:var(--neon);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 30px -8px rgba(231,255,61,0.6);
  transition:transform .2s ease;
}
.wa-float:hover{ transform:scale(1.08); }
.wa-float svg{ width:28px; height:28px; color:#13100A; }
