/* ============================================================
   F&L Soluciones Digitales & Automatización
   styles.css — CSS nativo puro · Neón ciberpunk · Alta conversión
   ============================================================ */

:root {
  --neon: #00f0ff;
  --neon-deep: #00a8ff;
  --silver: #e2e8f0;
  --bg-deep: #030712;
  --bg-dark: #070c18;
  --glass: rgba(7, 12, 24, 0.8);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background: #030712;
  color: #e2e8f0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img, canvas, svg { max-width: 100%; }

/* Eliminar el morado por defecto de los enlaces visitados */
a { color: inherit; text-decoration: none; }

::selection { background: rgba(0, 240, 255, 0.4); color: #fff; }

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

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #030712; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon), var(--neon-deep));
  border-radius: 999px;
}

/* ============================================================
   LEGIBILIDAD GARANTIZADA (contraste obligatorio)
   ============================================================ */
h1, h2, h3, h4 { color: #ffffff !important; }
p, span, li, label { color: #e2e8f0 !important; }

/* Textos secundarios atenuados */
.form-hint, .payments-hint, .section-desc, .card-text,
.gateway-tag, .stat-label, .pay-sub { color: #9fb0c9 !important; }

/* ============================================================
   HEADER FIJO
   ============================================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: rgba(3, 7, 18, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  box-sizing: border-box;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }

/* CONTROL ESTRICTO DEL LOGO EN EL HEADER */
.brand-logo {
  max-height: 55px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: inline-block;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.35));
}

/* ---------- Menú horizontal desktop en cápsulas tabs ---------- */
.desktop-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
  justify-content: center;
  flex: 1;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.2);
  transition: color 0.3s, background 0.3s, border-color 0.3s,
              box-shadow 0.3s, transform 0.3s;
}
.nav-link:hover,
.nav-link.active {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.14);
  border-color: rgba(0, 240, 255, 0.65);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.35),
              inset 0 0 12px rgba(0, 240, 255, 0.12);
  transform: translateY(-2px);
}

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.hamburger:hover { background: rgba(0, 240, 255, 0.18); }
.hamburger:active { transform: scale(0.94); }

/* ============================================================
   MENÚ MÓVIL DRAWER
   ============================================================ */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  width: min(320px, 85vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: rgba(3, 7, 18, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8);
  transform: translateX(105%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}

.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s;
}
.drawer-close:hover { background: rgba(0, 240, 255, 0.18); }

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  flex-grow: 1;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #e2e8f0;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, padding-left 0.2s;
}
.drawer-link:hover,
.drawer-link.active {
  color: #ffffff;
  background: rgba(0, 240, 255, 0.14);
  border-color: rgba(0, 240, 255, 0.35);
  padding-left: 18px;
}
.drawer-link.active { box-shadow: inset 3px 0 0 var(--neon); }
.drawer-link .icon { color: var(--neon); }

.drawer-footer {
  padding: 20px;
  border-top: 1px solid rgba(0, 240, 255, 0.15);
}

.drawer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 0.75rem;
}
.drawer-meta .icon { color: var(--neon); }

/* ============================================================
   HERO CON LOGO CENTRAL Y RADIACIÓN NEÓN
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 70px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 16px;
  padding-right: 16px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 168, 255, 0.12), transparent 60%),
    #030712;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero-logo-wrap {
  margin: 0 auto 25px auto;
  max-width: 320px;
  width: 100%;
  /* Sin caja contenedora: el logo flota libre sobre el fondo */
  background: transparent;
  border: none;
  box-shadow: none;
}

/* CONTROL ESTRICTO DEL LOGO EN HERO + ensamblado de partículas + radiación neón */
#hero-logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  background: transparent;
  border: none;
  box-shadow: none;
  /* Radiación neón transparente en los bordes del propio PNG */
  filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.6));
  animation: particleAssemble 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both,
             logo-float 6s ease-in-out 1.3s infinite,
             neonGlowPulse 3s ease-in-out 1.3s infinite;
  will-change: transform, opacity, filter, clip-path;
}

@keyframes neonGlowPulse {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5))
            drop-shadow(0 0 25px rgba(0, 168, 255, 0.35))
            drop-shadow(0 0 45px rgba(0, 240, 255, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.85))
            drop-shadow(0 0 45px rgba(0, 168, 255, 0.6))
            drop-shadow(0 0 75px rgba(0, 240, 255, 0.4));
  }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Logo: desintegración -> reintegración con impacto PUM */
@keyframes particleAssemble {
  0% {
    opacity: 0;
    transform: scale(2.2);
    filter: blur(25px) brightness(3) drop-shadow(0 0 0 transparent) drop-shadow(0 0 0 transparent);
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  }
  45% {
    opacity: 0;
    transform: scale(2.2);
    filter: blur(25px) brightness(3) drop-shadow(0 0 0 transparent) drop-shadow(0 0 0 transparent);
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  }
  58% {
    opacity: 1;
    transform: scale(0.95);
    filter: blur(0px) brightness(1.2)
            drop-shadow(0 0 50px #00f0ff) drop-shadow(0 0 90px #00a8ff);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  75% {
    transform: scale(1.01);
    filter: blur(0px) brightness(1.1)
            drop-shadow(0 0 25px rgba(0, 240, 255, 0.8)) drop-shadow(0 0 45px rgba(0, 168, 255, 0.5));
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px) brightness(1)
            drop-shadow(0 0 8px rgba(0, 240, 255, 0.4)) drop-shadow(0 0 20px rgba(0, 168, 255, 0.2));
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* ---------- Cápsula de ubicación: glassmorphism cian ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #e0f2fe !important;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.35),
              inset 0 0 18px rgba(0, 240, 255, 0.08);
  margin-bottom: 20px;
}

.hero-title {
  --collide-at: 0.8s;
  font-family: 'Cinzel', serif;
  font-size: 2.4rem;
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0 0 15px 0;
  letter-spacing: 1px;
  max-width: 920px;
  /* Choque de energía: micro-vibración + destello al encontrarse las líneas */
  animation: collisionImpact 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) var(--collide-at) both,
             shockwaveFlash 0.7s ease-out var(--collide-at) both;
}

/* ============================================================
   COLLISION REVEAL — título en dos contenedores que chocan
   ============================================================ */
.title-line {
  display: block;
  background: linear-gradient(135deg, #ffffff 0%, #a5f3fc 50%, #00f0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  will-change: transform, opacity, filter;
}

/* Lado izquierdo: entra proyectado desde -100vw con desenfoque de movimiento */
.title-left {
  animation: slideFromLeft 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
}

/* Lado derecho: entra proyectado desde 100vw con desenfoque de movimiento */
.title-right {
  animation: slideFromRight 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
}

@keyframes slideFromLeft {
  0%   { transform: translateX(-100vw) rotate(8deg); opacity: 0; filter: blur(15px); }
  80%  { transform: translateX(14px) rotate(-2deg); opacity: 1; filter: blur(0); }
  100% { transform: translateX(0) rotate(0); opacity: 1; }
}

@keyframes slideFromRight {
  0%   { transform: translateX(100vw) rotate(-8deg); opacity: 0; filter: blur(15px); }
  80%  { transform: translateX(-14px) rotate(2deg); opacity: 1; filter: blur(0); }
  100% { transform: translateX(0) rotate(0); opacity: 1; }
}

/* Sacudón instantáneo de impacto al colisionar en el centro (scale 1.08) */
@keyframes collisionImpact {
  0%   { transform: translateX(0) scale(1.08); }
  15%  { transform: translateX(-5px) scale(1.05); }
  35%  { transform: translateX(5px) scale(1.03); }
  55%  { transform: translateX(-3px) scale(1.02); }
  75%  { transform: translateX(3px) scale(1.01); }
  100% { transform: translateX(0) scale(1); }
}

/* Destello blanco/cian de la colisión */
@keyframes shockwaveFlash {
  0%   { filter: drop-shadow(0 0 0 transparent); }
  45%  { filter: drop-shadow(0 0 45px rgba(255, 255, 255, 0.9))
                drop-shadow(0 0 90px #00f0ff)
                drop-shadow(0 0 130px #00a8ff); }
  100% { filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.5)); }
}

.hero-sub {
  color: #e2e8f0 !important;
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

.hero-motto {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: #a5f3fc !important;
  margin: 32px 0 0;
}

.hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.btn-lg { min-height: 52px; padding: 12px 30px; font-size: 1rem; }

/* Botón degradado neón azul cielo */
.btn-primary {
  background: linear-gradient(135deg, #00f0ff, #00a8ff);
  color: #030712 !important;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.5);
}
.btn-primary:hover {
  box-shadow: 0 0 34px rgba(0, 240, 255, 0.85), 0 0 70px rgba(0, 168, 255, 0.45);
  transform: translateY(-3px);
}
.btn-primary:active { transform: translateY(0) scale(0.96); }

/* Botón fantasma con borde neón */
.btn-ghost {
  background: rgba(0, 240, 255, 0.08);
  color: #ffffff !important;
  border-color: rgba(0, 240, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(0, 240, 255, 0.16);
  border-color: var(--neon);
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.6), 0 0 52px rgba(0, 168, 255, 0.3);
  transform: translateY(-3px);
}
.btn-ghost:active { transform: translateY(0) scale(0.96); }

.btn-block { width: 100%; }

.copy-btn { min-height: 48px; padding: 8px 18px; font-size: 0.9rem; }
.copy-btn.copied {
  background: linear-gradient(135deg, #10b981, #34d399) !important;
  border-color: rgba(52, 211, 153, 0.9) !important;
  color: #022c22 !important;
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.6) !important;
}

/* ============================================================
   SECCIONES Y TARJETAS GLASSMORPHISM
   ============================================================ */
.section {
  position: relative;
  padding: 70px 5%;
  max-width: 1280px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7df3ff !important;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.4);
  margin-bottom: 16px;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 14px 0;
  letter-spacing: 0.5px;
}

.section-desc {
  max-width: 680px;
  margin: 0 auto;
}

/* ---------- Grids ---------- */
.services-grid,
.process-grid,
.cases-grid,
.portfolio-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.glass-card {
  background: rgba(7, 12, 24, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 16px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease, border-color 0.35s ease;
}
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              rgba(0, 240, 255, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.glass-card:hover::before { opacity: 1; }

/* Hover 3D con borde neón azul cielo */
.glass-card:hover {
  transform: translateY(-8px) scale(1.01) perspective(900px) rotateX(1.5deg);
  border-color: #00f0ff;
  box-shadow: 0 15px 35px rgba(0, 240, 255, 0.25),
              0 26px 60px rgba(0, 0, 0, 0.6);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--neon), var(--neon-deep));
  color: #030712;
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}
.card-icon .icon { width: 26px; height: 26px; color: #030712; }

.card-title {
  margin: 0 0 10px 0;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  line-height: 1.3;
}

.card-text {
  margin: 0 0 16px 0;
  font-size: 0.9rem;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #7df3ff !important;
  transition: color 0.3s, gap 0.3s;
}
.card-link:hover { color: var(--neon) !important; gap: 12px; }
.card-link .icon { width: 18px; height: 18px; }

/* Badge "Proyecto Demostrativo" */
.demo-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7df3ff !important;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.45);
}

/* ============================================================
   PROCESO (5 PASOS NUMERADOS)
   ============================================================ */
.process-step {
  position: relative;
  padding: 26px;
  border-radius: 16px;
  background: rgba(7, 12, 24, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 240, 255, 0.25);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease, box-shadow 0.35s ease;
}
.process-step:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 240, 255, 0.8);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.22);
}

.step-number {
  display: block;
  margin-bottom: 12px;
  font-family: 'Cinzel', serif;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #00f0ff, #00a8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}

/* ============================================================
   CASOS DE USO POR SECTOR
   ============================================================ */
.use-case-card {
  position: relative;
  padding: 26px;
  border-radius: 16px;
  background: rgba(7, 12, 24, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 240, 255, 0.22);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease, box-shadow 0.35s ease;
}
.use-case-card:hover {
  transform: translateY(-7px);
  border-color: #00f0ff;
  box-shadow: 0 15px 35px rgba(0, 240, 255, 0.2);
}

/* ============================================================
   PORTAFOLIO
   ============================================================ */
.portfolio-card { padding-top: 44px; }

/* ============================================================
   SOBRE NOSOTROS
   ============================================================ */
.nosotros-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: center;
}

.nosotros-text p { margin: 0 0 20px 0; }
.nosotros-text strong { color: #ffffff; }

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 6px 0;
}
.check-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--neon), var(--neon-deep));
  color: #030712;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
  flex-shrink: 0;
}
.check-dot .icon { width: 14px; height: 14px; color: #030712; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-box {
  padding: 26px 16px;
  border-radius: 16px;
  text-align: center;
  background: rgba(7, 12, 24, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 240, 255, 0.25);
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.stat-box:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.22);
}
.stat-number {
  display: block;
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.1;
  color: #ffffff !important;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ============================================================
   CONTACTO / FORMULARIO CUALIFICADOR
   ============================================================ */
.contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.form-card { gap: 4px; }

.form-hint { margin: 0 0 20px 0; font-size: 0.8rem; }

.form-field { margin-bottom: 18px; }

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0 !important;
}

.form-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.3);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.form-input::placeholder { color: #94a3b8; }
.form-input:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.2), 0 0 20px rgba(0, 240, 255, 0.18);
  background: rgba(0, 240, 255, 0.05);
}
textarea.form-input { min-height: 120px; line-height: 1.5; resize: vertical; }

/* Selects nativos con flecha neón */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 44px;
  cursor: pointer;
}
select.form-input option {
  background-color: #070c18;
  color: #e2e8f0;
}

/* ============================================================
   PASARELAS DE PAGO INTERACTIVAS
   ============================================================ */
.payments { display: flex; flex-direction: column; gap: 16px; }

.payments-head h3 { margin: 0 0 4px 0; }
.payments-hint { margin: 0; font-size: 0.8rem; }

.payments-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.pay-gateway {
  position: relative;
  background: rgba(7, 12, 24, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 18px;
  padding: 22px 20px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease, border-color 0.35s ease;
}
.pay-gateway:hover,
.pay-gateway.expanded,
.pay-gateway:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(0, 240, 255, 0.8);
  box-shadow: 0 0 34px rgba(0, 240, 255, 0.3), 0 20px 50px rgba(0, 0, 0, 0.6);
}

.gateway-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.gateway-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 2rem;
  color: #ffffff;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.pay-gateway:hover .gateway-logo,
.pay-gateway.expanded .gateway-logo { transform: scale(1.08); }

.banco-logo {
  background: linear-gradient(135deg, #f5b20a, #ffce3a);
  color: #1a1300 !important;
  box-shadow: 0 0 24px rgba(245, 178, 10, 0.55);
}
.davi-logo {
  background: linear-gradient(135deg, #0ea66e, #2ebd59);
  box-shadow: 0 0 24px rgba(14, 166, 110, 0.55);
}
.nequi-logo {
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.55);
}
.dale-logo {
  background: linear-gradient(135deg, #00f0ff, #00a8ff);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.55);
}

.gateway-name {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
}

.gateway-tag {
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.45);
}
.tag-primary {
  color: #fde68a !important;
  background: rgba(245, 178, 10, 0.12);
  border-color: rgba(245, 178, 10, 0.5);
}

.gateway-details {
  max-height: 0;
  opacity: 0;
  transform: translateY(12px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.35s ease,
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              margin-top 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.pay-gateway:hover .gateway-details,
.pay-gateway.expanded .gateway-details,
.pay-gateway:focus-visible .gateway-details {
  max-height: 220px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 18px;
}

.gateway-number {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff !important;
  word-break: break-all;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.35);
}

.pay-gateway .copy-btn { width: 100%; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(3, 7, 18, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 48px 5% calc(40px + env(safe-area-inset-bottom));
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-brand p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 0.9rem;
}
.footer-brand .icon { color: var(--neon); }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-title {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff !important;
  margin-bottom: 6px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.9rem;
  color: #e2e8f0 !important;
  transition: color 0.25s, transform 0.25s;
}
.footer-link:hover { color: var(--neon) !important; transform: translateX(4px); }
.footer-link .icon { width: 18px; height: 18px; color: var(--neon); }

.footer-bottom {
  max-width: 1280px;
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  text-align: center;
}
.footer-bottom p { margin: 0; }

/* ============================================================
   REVEAL / SCROLL ANIMATIONS — Rodillo 3D bidireccional
   (entra al bajar, se repliega al subir)
   ============================================================ */
.scroll-reveal-item {
  opacity: 0;
  transform: translateY(110px) rotateX(-28deg) scale(0.88);
  transition: transform 0.75s cubic-bezier(0.2, 1, 0.3, 1),
              opacity 0.75s ease,
              filter 0.75s ease;
  filter: blur(12px);
  will-change: transform, opacity;
}

.scroll-reveal-item.is-in-view {
  opacity: 1;
  transform: translateY(0) rotateX(0deg) scale(1);
  filter: blur(0px);
}

/* Los hovers 3D de cada tarjeta siguen funcionando al estar visible */
.scroll-reveal-item.is-in-view.glass-card:hover {
  transform: translateY(-8px) scale(1.01) perspective(900px) rotateX(1.5deg);
}
.scroll-reveal-item.is-in-view.process-step:hover { transform: translateY(-6px); }
.scroll-reveal-item.is-in-view.use-case-card:hover { transform: translateY(-7px); }
.scroll-reveal-item.is-in-view.stat-box:hover { transform: translateY(-5px); }
.scroll-reveal-item.is-in-view.pay-gateway:hover,
.scroll-reveal-item.is-in-view.pay-gateway.expanded,
.scroll-reveal-item.is-in-view.pay-gateway:focus-visible { transform: translateY(-6px); }

/* ============================================================
   RESPONSIVE (mobile-first)
   ============================================================ */
@media (min-width: 640px) {
  .payments-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction: row; align-items: center; }
  .footer-bottom { flex-direction: row; }
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .nosotros-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .hero-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .cases-grid { grid-template-columns: repeat(4, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: 3.2rem; }
}

/* Hamburguesa visible y menú desktop oculto en móvil */
@media (max-width: 1023.98px) {
  .desktop-nav { display: none; }
  .header-cta { display: none; }
  .hamburger { display: inline-flex; }
}

/* CTA del header solo en pantallas muy anchas */
@media (max-width: 1279.98px) {
  .header-cta { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.5rem; letter-spacing: 0.5px; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-logo-wrap { max-width: 240px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #hero-logo { animation: none; will-change: auto; }
  .title-line { animation: none !important; }
  .hero-title { animation: none !important; }
  .scroll-reveal-item { opacity: 1; transform: none; filter: none; transition: none; will-change: auto; }
  .glass-card::before { opacity: 0; }
  .pay-gateway .gateway-details,
  .pay-gateway:hover .gateway-details,
  .pay-gateway.expanded .gateway-details { transition: none; }
}