/* ==========================================================================
   RaúlWeb — estilos principales
   ========================================================================== */
:root {
  --bg: #0f1013;
  --bg-2: #15161a;
  --surface: #1a1b20;
  --line: rgba(237, 234, 227, .09);
  --line-2: rgba(237, 234, 227, .16);
  --text: #edeae3;
  --muted: #9b9a95;
  --accent: #d4ff3f;
  --accent-ink: #0f1013;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-h: "Space Grotesk", system-ui, sans-serif;
  --font-b: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-b); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-h); line-height: 1.1; letter-spacing: -.02em; margin: 0; font-weight: 600; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 32px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .7rem 1.2rem; border-radius: 12px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { box-shadow: 0 10px 30px -10px rgba(212, 255, 63, .6); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--text); }
.btn--lg { padding: .95rem 1.5rem; font-size: 1rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(15, 16, 19, .82); backdrop-filter: blur(14px); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.logo { font-family: var(--font-h); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.logo span { color: var(--accent); }
.nav__links { display: flex; gap: 2rem; font-size: .92rem; color: var(--muted); }
.nav__links a:hover { color: var(--text); }
.nav__mobile-cta { display: none; }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); transition: transform .3s var(--ease); }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 90px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--muted);
  padding: .35rem .8rem; border: 1px solid var(--line-2); border-radius: 99px; margin-bottom: 1.6rem;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(212,255,63,.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(212,255,63,.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(212,255,63,0); } }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap; }
.hero__lead { margin-top: 1.5rem; font-size: 1.13rem; color: var(--muted); max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero__checks { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .88rem; color: var(--muted); }
.hero__checks li::before { content: "✓"; color: var(--accent); margin-right: .45rem; font-weight: 700; }

.hero__visual { position: relative; min-height: 420px; }
.hero__glow { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: var(--accent); filter: blur(120px); opacity: .14; top: 20%; left: 20%; z-index: -1; }
.notif {
  position: absolute; display: flex; align-items: center; gap: .85rem; width: min(340px, 100%);
  padding: .9rem 1rem; border-radius: 16px; background: rgba(26, 27, 32, .88);
  border: 1px solid var(--line-2); backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.7);
  animation: float 6s ease-in-out infinite;
}
.notif strong { display: block; font-size: .9rem; font-weight: 600; }
.notif small { color: var(--muted); font-size: .8rem; }
.notif__icon { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(212,255,63,.12); font-size: 1.1rem; }
.notif__time { margin-left: auto; font-size: .72rem; color: var(--muted); align-self: flex-start; white-space: nowrap; }
.notif--1 { top: 0; right: 0; }
.notif--2 { top: 110px; left: 0; animation-delay: -1.5s; }
.notif--3 { top: 220px; right: 20px; animation-delay: -3s; }
.notif--4 { top: 330px; left: 30px; animation-delay: -4.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Strip ---------- */
.strip { border-block: 1px solid var(--line); overflow: hidden; padding: 1.1rem 0; background: var(--bg-2); }
.strip__track { display: flex; gap: 2rem; width: max-content; animation: marquee 38s linear infinite; font-family: var(--font-h); font-size: 1.1rem; color: var(--muted); white-space: nowrap; }
.strip__track span:nth-child(even) { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: 3.5rem; }
.section__head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.section__head p:not(.eyebrow) { color: var(--muted); margin-top: 1rem; font-size: 1.06rem; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem !important; }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .3s, transform .3s var(--ease); }
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card__num { font-family: var(--font-h); color: var(--accent); font-size: .9rem; }
.card h3 { font-size: 1.4rem; margin: 1.2rem 0 .7rem; }
.card p { color: var(--muted); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.service { padding: 2.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); position: relative; transition: transform .3s var(--ease), border-color .3s; }
.service:hover { transform: translateY(-4px); border-color: var(--line-2); }
.service--featured { border-color: rgba(212,255,63,.35); background: linear-gradient(180deg, rgba(212,255,63,.07), var(--surface) 60%); }
.service__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(212,255,63,.1); color: var(--accent); margin-bottom: 1.5rem; }
.service__icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.service > p { color: var(--muted); }
.service ul { list-style: none; padding: 1.4rem 0 0; margin: 1.4rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .7rem; font-size: .94rem; }
.service li { display: flex; gap: .6rem; }
.service li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: .6rem; }

/* ---------- Work / ejemplos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { font: inherit; font-size: .88rem; color: var(--muted); background: transparent; border: 1px solid var(--line-2); padding: .5rem 1rem; border-radius: 99px; cursor: pointer; transition: all .2s; }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }

.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.work__card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
.work__card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.work__card.is-hidden { display: none; }
.work__preview { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #222; border-bottom: 1px solid var(--line); }
.work__preview::before { /* barra de navegador */
  content: ""; position: absolute; z-index: 2; inset: 0 0 auto; height: 22px;
  background: #2a2b31 radial-gradient(circle at 12px 50%, #ff5f57 3.5px, transparent 4px), #2a2b31;
  background-image: radial-gradient(circle at 12px 11px, #ff5f57 3.5px, transparent 4px), radial-gradient(circle at 24px 11px, #febc2e 3.5px, transparent 4px), radial-gradient(circle at 36px 11px, #28c840 3.5px, transparent 4px);
}
.work__preview iframe {
  position: absolute; top: 22px; left: 0; width: 1280px; max-width: none; height: 900px; border: 0;
  transform-origin: 0 0; transform: scale(var(--s, .3)); pointer-events: none;
  transition: transform .8s var(--ease);
}
.work__info { padding: 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.work__sector { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 600; }
.work__info h3 { font-size: 1.35rem; }
.work__info > p:not(.work__sector) { color: var(--muted); font-size: .94rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.tags span { font-size: .75rem; padding: .25rem .6rem; border-radius: 99px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); }
.work__link { margin-top: auto; padding-top: .8rem; font-weight: 600; font-size: .92rem; color: var(--text); transition: color .2s; }
.work__card:hover .work__link { color: var(--accent); }
.work__note { margin-top: 2.5rem; text-align: center; color: var(--muted); }
.work__note a { color: var(--accent); font-weight: 600; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: s; }
.timeline li { padding: 1.8rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.timeline span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-h); font-weight: 700; background: var(--accent); color: var(--accent-ink); }
.timeline h3 { font-size: 1.2rem; margin: 1.2rem 0 .5rem; }
.timeline p { color: var(--muted); font-size: .94rem; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.review { margin: 0; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 1.2rem; position: relative; }
.review__demo { position: absolute; top: 1rem; right: 1rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border: 1px dashed var(--line-2); padding: .15rem .5rem; border-radius: 6px; }
.stars { color: var(--accent); letter-spacing: .15em; font-size: 1rem; }
.review blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: .8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.review figcaption strong { display: block; font-size: .95rem; }
.review figcaption small { color: var(--muted); font-size: .82rem; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-h); font-weight: 700; background: rgba(212,255,63,.12); color: var(--accent); }
.reviews__cta { margin-top: 2.5rem; display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--muted); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .7fr 1.3fr; gap: 4rem; align-items: center; }
.about__badge { aspect-ratio: 1; border-radius: 28px; border: 1px solid var(--line-2); background: radial-gradient(circle at 30% 20%, rgba(212,255,63,.25), transparent 60%), var(--surface); display: grid; place-items: center; position: relative; overflow: hidden; }
.about__initial { font-family: var(--font-h); font-size: clamp(7rem, 16vw, 12rem); font-weight: 700; color: var(--accent); line-height: 1; }
.about__tag { position: absolute; bottom: 1.2rem; left: 1.2rem; font-size: .8rem; padding: .35rem .8rem; border-radius: 99px; background: rgba(15,16,19,.8); border: 1px solid var(--line-2); }
.about__copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 1.4rem; }
.about__copy p:not(.eyebrow) { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 0 1.4rem; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 0; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.3rem; }

/* ---------- Contact ---------- */
.contact { padding-top: 40px; }
.contact__box { text-align: center; padding: clamp(2.5rem, 7vw, 5rem) 1.5rem; border-radius: 28px; border: 1px solid rgba(212,255,63,.25); background: radial-gradient(ellipse at 50% 0%, rgba(212,255,63,.14), transparent 65%), var(--surface); }
.contact__box h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.contact__box > p:not(.eyebrow) { color: var(--muted); max-width: 34rem; margin: 1.2rem auto 0; font-size: 1.08rem; }
.contact__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 2.2rem 0; color: var(--muted); font-size: .88rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .strip__track, .notif, .dot { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .work { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding-top: 120px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 0; display: grid; gap: .7rem; }
  .notif { position: static; width: 100%; animation: none; }
  .notif--3, .notif--4 { display: none; }
  .steps3, .services, .reviews { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .about__badge { max-width: 260px; }
}
@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0; padding: .5rem 16px 1.2rem;
    background: rgba(15,16,19,.97); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s var(--ease); font-size: 1.05rem;
  }
  .nav__links a { padding: .9rem 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav__links .nav__mobile-cta { display: flex; margin-top: 1rem; border: 0; color: var(--accent-ink); }
  .nav.is-open { background: rgba(15,16,19,.97); }
  .nav.is-open .nav__links { transform: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .section { padding: 80px 0; }
  .work, .timeline { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .contact__actions .btn { width: 100%; }
  .footer__inner { flex-direction: column; text-align: center; }
}
