/* =====================================================
   Zripi 2026 – Estilos personalizados (complementan Tailwind)
   ===================================================== */

:root {
  --bg: #0a0a0f;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --orange: #f97316;
  --red: #ef4444;
  --grad: linear-gradient(120deg, var(--cyan), var(--blue) 35%, var(--violet) 65%, var(--orange));
}

/* Custom Scrollbars elegantes para todo el sitio */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.4) transparent;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  background-clip: padding-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
body {
  background: var(--bg);
  color: #e5e7eb;
  font-family: 'Inter', sans-serif;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}
h1, h2, h3, h4, .font-display { font-family: 'Space Grotesk', sans-serif; }

/* Texto con gradiente de marca */
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Navbar ---------- */
#navbar { transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
#navbar.scrolled {
  background: rgba(10, 10, 15, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.nav-link { position: relative; color: #d1d5db; transition: color .2s; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--grad); transition: width .3s;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

/* ---------- Botones ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 2rem; border-radius: 999px;
  font-weight: 600; color: #fff; background: var(--grad); background-size: 200% 200%;
  box-shadow: 0 0 30px rgba(59, 130, 246, .35); transition: transform .25s, box-shadow .25s, background-position .6s;
}
.btn-primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 45px rgba(139, 92, 246, .55); background-position: 100% 0; }
.btn-secondary {
  display: inline-block; padding: .6rem 1.4rem; border-radius: 999px; font-size: .9rem; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .25); transition: all .25s;
}
.btn-secondary:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 18px rgba(34, 211, 238, .3); }

/* ---------- Hero ---------- */
#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-break {
  display: block;
  margin-top: 0.15em;
}
@media (min-width: 640px) {
  .hero-break {
    display: inline;
    margin-top: 0;
  }
}
@media (max-width: 639.98px) {
  #hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 4.85rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .hero-container {
    padding-top: 1rem !important;
    padding-bottom: 1.25rem !important;
  }
  #hero-title {
    font-size: clamp(2.1rem, 8.2vw, 2.45rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.035em !important;
  }
  .hero-sub {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    margin-top: 1.15rem !important;
  }
  .hero-chips {
    margin-top: 1.6rem !important;
    gap: 0.4rem !important;
  }
  .chip {
    padding: 0.32rem 0.72rem !important;
    font-size: 0.76rem !important;
    line-height: 1.25 !important;
  }
  .scroll-ind {
    display: none !important;
  }
}
#particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(120px); opacity: .25; pointer-events: none;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .45s cubic-bezier(0.16, 1, 0.3, 1), transform .45s cubic-bezier(0.16, 1, 0.3, 1); will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; } .delay-2 { transition-delay: .16s; } .delay-3 { transition-delay: .24s; }

/* ---------- Marquee de clientes ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 4rem; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 44px; width: auto; max-width: 140px; object-fit: contain;
  filter: brightness(0) invert(1); opacity: .4; transition: opacity .3s, transform .3s;
}
.marquee-track img:hover { opacity: 1; transform: scale(1.1); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Tarjetas destacadas con borde neón animado ---------- */
.neon-card { position: relative; border-radius: 1.5rem; padding: 2px; overflow: hidden; }
.neon-card::before {
  content: ''; position: absolute; inset: -50%;
  background: conic-gradient(from 0deg, var(--cyan), var(--blue), var(--violet), var(--orange), var(--cyan));
  animation: spin 6s linear infinite;
}
.neon-card > .inner { position: relative; border-radius: calc(1.5rem - 2px); background: #0d0d14; height: 100%; padding: 2.5rem; }
.neon-card::after { content: ''; position: absolute; inset: 0; border-radius: 1.5rem; box-shadow: 0 0 60px rgba(139, 92, 246, .25); pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Tarjetas de servicio ---------- */
.service-card { border-radius: 1.25rem; padding: 2rem; transition: transform .3s, border-color .3s, box-shadow .3s; }
.service-card:hover { transform: translateY(-8px); border-color: rgba(34, 211, 238, .5); box-shadow: 0 15px 40px rgba(59, 130, 246, .2); }
.icon-box { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; }

/* ---------- Galería Bento (Grilla Perfecta Sin Huecos) ---------- */
.bento-gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 150px;
  grid-auto-flow: dense;
}
@media (min-width: 640px) {
  .bento-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
    gap: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .bento-gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 230px;
    gap: 1.25rem;
  }
}

.bento-gallery figure {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
  margin: 0;
}
.bento-gallery figure:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.28);
}
.bento-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.bento-gallery figure:hover img {
  transform: scale(1.06);
}
.bento-gallery figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.55), transparent 50%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.bento-gallery figure:hover::after {
  opacity: 1;
}

/* Modificadores de forma */
.b-hero { grid-column: span 2; grid-row: span 2; }
.b-tall { grid-column: span 1; grid-row: span 2; }
.b-wide { grid-column: span 2; grid-row: span 1; }
.b-std  { grid-column: span 1; grid-row: span 1; }

/* En mobile muy pequeño (pantallas < 400px), los altos se ajustan suavemente */
@media (max-width: 480px) {
  .bento-gallery {
    grid-auto-rows: 135px;
    gap: 0.6rem;
  }
}

/* ---------- Testimonios ---------- */
.testimonial-card {
  position: relative;
  border-radius: 1.5rem;
}
.t-track {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}
.t-slide {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease, visibility .45s ease;
  pointer-events: none;
}
.t-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  z-index: 2;
}
.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  transition: all .3s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}
.t-dot:hover {
  background: rgba(255,255,255,.55);
  transform: scale(1.15);
}
.t-dot.active {
  width: 32px;
  border-radius: 6px;
  background: var(--grad);
}
.t-slide footer img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .testimonial-card {
    padding: 1.5rem 1.25rem !important;
  }
  .t-slide p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  .t-slide footer img {
    width: 44px;
    height: 44px;
  }
}

/* ---------- Equipo ---------- */
.team-card { border-radius: 1.25rem; padding: 1.5rem; text-align: center; transition: transform .3s, border-color .3s; }
.team-card:hover { transform: translateY(-6px); border-color: rgba(139, 92, 246, .6); }
.team-card img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; box-shadow: 0 0 0 3px rgba(139,92,246,.4), 0 0 30px rgba(139,92,246,.25); }
.team-placeholder .placeholder-avatar {
  width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 1rem;
  display: grid; place-items: center; background: rgba(255,255,255,.03);
  border: 2px dashed rgba(255,255,255,.18); color: rgba(255,255,255,.35);
  box-shadow: 0 0 20px rgba(0,0,0,.2); transition: all .3s ease;
}
.team-placeholder:hover .placeholder-avatar {
  border-color: var(--cyan); color: var(--cyan); background: rgba(34,211,238,.06);
  box-shadow: 0 0 25px rgba(34,211,238,.2);
}

/* ---------- WhatsApp flotante ---------- */
#whatsapp {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 24px rgba(37, 211, 102, .5);
  animation: pulse 2s infinite; transition: transform .2s;
}
#whatsapp:hover { transform: scale(1.1); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); }
  70% { box-shadow: 0 0 0 22px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Accesibilidad: reduce animaciones si el usuario lo pide */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================
   EFECTO WOW – splash, hero animado, bento de servicios
   ===================================================== */

/* ---------- Splash de entrada ---------- */
#splash {
  position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem; transition: opacity .8s ease .2s, visibility .8s ease .2s, transform .8s ease .2s;
}
body.ready #splash { opacity: 0; visibility: hidden; transform: scale(1.15); pointer-events: none; }
.splash-logo { width: 120px; filter: drop-shadow(0 0 25px rgba(139, 92, 246, .6)); }
.splash-logo polygon { opacity: 0; transform-origin: center; transform-box: fill-box; animation: triIn .6s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.splash-logo polygon:nth-child(1) { animation-delay: .05s } .splash-logo polygon:nth-child(2) { animation-delay: .15s }
.splash-logo polygon:nth-child(3) { animation-delay: .25s } .splash-logo polygon:nth-child(4) { animation-delay: .35s }
.splash-logo polygon:nth-child(5) { animation-delay: .45s } .splash-logo polygon:nth-child(6) { animation-delay: .55s }
.splash-logo polygon:nth-child(7) { animation-delay: .65s }
@keyframes triIn { from { opacity: 0; transform: scale(0) rotate(-120deg); } to { opacity: 1; transform: none; } }
.splash-text { font-size: 2rem; font-weight: 700; letter-spacing: .3em; opacity: 0; animation: fadeIn .6s .9s forwards; }
body:not(.ready) { overflow: hidden; }

/* ---------- Hero ---------- */
#hero { background: radial-gradient(ellipse at 50% 0%, #14122b 0%, var(--bg) 70%); }
.aurora { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .45; pointer-events: none; animation: drift 14s ease-in-out infinite alternate; max-width: 90vw; max-height: 90vw; }
.aurora.a1 { width: 640px; height: 640px; background: #3b82f6; top: -200px; left: -180px; }
.aurora.a2 { width: 560px; height: 560px; background: #8b5cf6; bottom: -200px; right: -140px; animation-delay: -5s; }
.aurora.a3 { width: 420px; height: 420px; background: #f97316; top: 35%; left: 45%; opacity: .18; animation-delay: -9s; }
@keyframes drift { to { transform: translate(90px, 60px) scale(1.2); } }
@media (max-width: 640px) {
  .aurora.a1 { width: 340px; height: 340px; top: -30px; left: 50%; transform: translateX(-50%); filter: blur(75px); opacity: .4; }
  .aurora.a2 { width: 280px; height: 280px; bottom: -40px; right: -50px; filter: blur(70px); opacity: .3; }
  .aurora.a3 { display: none; }
  .featured-glow { display: none; }
  .hero-glow { width: 280px; height: 280px; filter: blur(75px); }
}
.grid-bg {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 60px 60px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
#spotlight { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px circle at var(--sx, 50%) var(--sy, 40%), rgba(34, 211, 238, .12), transparent 60%); }
.float-tri { position: absolute; opacity: .22; filter: drop-shadow(0 0 20px currentColor); animation: floaty 9s ease-in-out infinite; will-change: transform; pointer-events: none; }
.float-tri.t1 { width: 90px; top: 18%; left: 8%; } .float-tri.t2 { width: 60px; top: 28%; right: 10%; animation-delay: -3s; }
.float-tri.t3 { width: 110px; bottom: 16%; left: 14%; animation-delay: -5s; } .float-tri.t4 { width: 50px; bottom: 24%; right: 16%; animation-delay: -2s; }
.float-tri.t5 { width: 40px; top: 12%; left: 48%; animation-delay: -7s; }
@media (max-width: 640px) {
  .float-tri.t1 { width: 50px; left: 4%; }
  .float-tri.t2 { width: 40px; right: 4%; }
  .float-tri.t3 { width: 60px; left: 6%; }
  .float-tri.t4 { width: 35px; right: 6%; }
  .float-tri.t5 { width: 30px; }
}
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-30px) rotate(25deg); } }

.hero-in, .word { opacity: 0; }
body.ready .hero-in { animation: heroIn 1s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: var(--d, 0s); }
body.ready .word { animation: wordIn .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes heroIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes wordIn { from { opacity: 0; transform: translateY(60%) rotateX(-60deg); filter: blur(12px); } to { opacity: 1; transform: none; filter: blur(0); } }
.word { display: inline-block; margin-right: .22em; transform-origin: bottom; }
.text-grad { background-size: 200% auto; animation: gradShift 6s linear infinite; }
@keyframes gradShift { to { background-position: 200% center; } }

.pill { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1.1rem; border-radius: 999px; font-size: .85rem; color: #cbd5e1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulseDot 1.6s infinite; }
@keyframes pulseDot { 50% { opacity: .3; transform: scale(.6); } }
.chip { padding: .4rem .95rem; border-radius: 999px; font-size: .82rem; color: #cbd5e1; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: all .25s; }
.chip:hover { border-color: var(--cyan); color: #fff; transform: translateY(-2px); }
.chip-lg { padding: .6rem 1.2rem; font-size: .95rem; }
.scroll-ind { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.3); border-radius: 14px; }
.scroll-ind span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: wheel 1.8s infinite; }
@keyframes wheel { to { transform: translateY(14px); opacity: 0; } }

/* ---------- Servicios (bento) ---------- */
.bento { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento-wide { grid-column: span 2; } }
.spot-card {
  position: relative; overflow: hidden; border-radius: 1.5rem; padding: 2rem; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px); transition: transform .3s, border-color .3s;
}
.spot-card::before { /* luz que sigue al cursor */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .18), transparent 60%);
}
.spot-card:hover::before { opacity: 1; }
.spot-card:hover { border-color: rgba(34, 211, 238, .45); }
.num { display: block; font-family: 'Space Grotesk', sans-serif; font-size: .8rem; letter-spacing: .25em; color: var(--cyan); }
.feat-list { list-style: none; display: grid; gap: .6rem; }
.feat-list li { position: relative; padding-left: 1.6rem; color: #cbd5e1; font-size: .95rem; }
.feat-list li::before { content: ''; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; background: var(--grad); clip-path: polygon(50% 0, 0 100%, 100% 100%); }

/* Servicios destacados: borde neón animado + insignia ★ */
.spot-card.featured { border: 1px solid transparent; background: linear-gradient(#0d0d16, #0d0d16) padding-box, conic-gradient(from var(--ang, 0deg), var(--cyan), var(--blue), var(--violet), var(--orange), var(--cyan)) border-box; animation: rotAng 6s linear infinite; box-shadow: 0 0 70px rgba(139, 92, 246, .2); }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes rotAng { to { --ang: 360deg; } }
.featured-glow { position: absolute; width: 400px; height: 400px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(139,92,246,.35), transparent 70%); pointer-events: none; }
.star { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.1em; }
.badge-star { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; padding: .4rem .9rem; border-radius: 999px; font-size: .78rem; font-weight: 600; color: #fff; background: rgba(249, 115, 22, .15); border: 1px solid rgba(249, 115, 22, .5); box-shadow: 0 0 20px rgba(249, 115, 22, .25); }
.sub-featured { position: relative; padding: 1.4rem; border-radius: 1rem; border: 1px solid rgba(255,255,255,.12); transition: transform .3s, box-shadow .3s; }
.sub-featured.c1 { background: linear-gradient(135deg, rgba(34,211,238,.14), rgba(59,130,246,.06)); }
.sub-featured.c2 { background: linear-gradient(135deg, rgba(139,92,246,.16), rgba(249,115,22,.08)); }
.sub-featured:hover { transform: translateY(-5px); box-shadow: 0 12px 35px rgba(139,92,246,.3); }
.sub-featured .tag { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fcd34d; margin-bottom: .6rem; }

@media (prefers-reduced-motion: reduce) {
  .hero-in, .word { opacity: 1 !important; }
  #splash { display: none; }
  body:not(.ready) { overflow: auto; }
}

.splash-logo { width: 110px; }
.splash-logo polygon:nth-child(8) { animation-delay: .75s } .splash-logo polygon:nth-child(9) { animation-delay: .85s }
.splash-logo polygon:nth-child(10) { animation-delay: .95s }
.splash-text { animation-delay: 1.1s; }

/* =====================================================
   Ajustes v3: logos originales, detalle de servicios (modal)
   ===================================================== */

/* Logos de clientes con colores originales sobre tarjeta clara */
.marquee-track { gap: 1.5rem; }
.marquee-track img {
  filter: none; opacity: .85; height: 72px; width: 160px; max-width: none; object-fit: contain;
  padding: 14px 20px; background: #f4f5f9; border-radius: 1rem; transition: opacity .3s, transform .3s, box-shadow .3s;
}
.marquee-track img:hover { opacity: 1; transform: translateY(-4px) scale(1.04); box-shadow: 0 10px 30px rgba(139, 92, 246, .35); }

/* Contadores: dígitos de ancho fijo para que no "salten" */
[data-count] { font-variant-numeric: tabular-nums; display: inline-block; min-width: 4.2ch; will-change: contents; }

/* Listas y botones en tarjetas */
.feat-cols { grid-template-columns: 1fr; }
@media (min-width: 640px) { .feat-cols { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
button.sub-featured { display: block; width: 100%; cursor: pointer; color: inherit; font: inherit; }
.sub-featured .more { display: inline-block; margin-top: .9rem; font-size: .85rem; font-weight: 600; color: var(--cyan); transition: transform .25s; }
.sub-featured:hover .more { transform: translateX(6px); }

/* ---------- Modal ---------- */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
.modal {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 1rem;
  overscroll-behavior: contain;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(5, 5, 10, .75); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); animation: fadeOnly .3s; touch-action: none;
}
.modal-panel {
  position: relative; width: 100%; max-width: 860px; max-height: 90vh; overflow-y: auto; border-radius: 1.75rem; padding: 2.5rem 2rem;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: linear-gradient(#0e0e18, #0e0e18) padding-box, conic-gradient(from 0deg, var(--cyan), var(--blue), var(--violet), var(--orange), var(--cyan)) border-box;
  border: 1px solid transparent; box-shadow: 0 30px 100px rgba(139, 92, 246, .3); animation: modalIn .45s cubic-bezier(.2, .9, .3, 1.1);
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.5) transparent;
}
.modal-panel::-webkit-scrollbar {
  width: 8px;
}
.modal-panel::-webkit-scrollbar-track {
  background: transparent;
  margin: 1.5rem 0;
}
.modal-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.5), rgba(139, 92, 246, 0.6));
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.modal-panel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  background-clip: padding-box;
}
@media (min-width: 640px) { .modal-panel { padding: 3rem; } }
.modal-close { position: absolute; top: 1.25rem; right: 1.25rem; z-index: 20; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; display: grid; place-items: center; transition: all .2s; cursor: pointer; }
.modal-close:hover { background: var(--red); transform: rotate(90deg); }
@keyframes modalIn { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }

/* Acordeones */
.acc { border: 1px solid rgba(255,255,255,.1); border-radius: 1rem; margin-bottom: .8rem; background: rgba(255,255,255,.03); overflow: hidden; transition: border-color .3s; }
.acc[open] { border-color: rgba(139, 92, 246, .5); background: rgba(139, 92, 246, .05); }
.acc summary { cursor: pointer; list-style: none; padding: 1.1rem 1.4rem; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; display: flex; justify-content: space-between; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-size: 1.5rem; color: var(--cyan); transition: transform .3s; }
.acc[open] summary::after { transform: rotate(45deg); }
.acc-body { padding: 0 1.4rem 1.4rem; color: #cbd5e1; line-height: 1.7; }
.acc[open] .acc-body { animation: fadeIn .4s; }
.no-acc { padding: 0; }
.sub-h { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #fff; margin: 1.3rem 0 .4rem; }

/* Pasos numerados y fases */
.steps { list-style: none; counter-reset: s; display: grid; gap: .6rem; }
.steps li { counter-increment: s; position: relative; padding-left: 2.6rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.05em; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--grad); color: #fff; }
.phases { display: grid; gap: .9rem; margin-top: .6rem; }
@media (min-width: 700px) { .phases { grid-template-columns: repeat(3, 1fr); } }
.phases > div { padding: 1.1rem; border-radius: 1rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.phases b { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--grad); color: #fff; margin-bottom: .6rem; }
.phases h6 { font-weight: 700; color: #fff; margin-bottom: .3rem; }
.phases p { font-size: .9rem; }

#hero.paused .aurora, #hero.paused .float-tri, #hero.paused .text-grad { animation-play-state: paused; }

/* ---------- Toast de copiado ---------- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%, 25px);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  background: rgba(14, 14, 24, .92);
  border: 1px solid rgba(34, 211, 238, .5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 20px rgba(34, 211, 238, .25);
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
  white-space: nowrap;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}
@media (max-width: 640px) {
  .toast { bottom: 5.5rem; font-size: .85rem; padding: .65rem 1.15rem; }
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

