/* ====================================================================
   NETTO SYSTEMS — Custom CSS v1.0
   Complementa Tailwind CDN con estilos específicos de marca
   ==================================================================== */

/* ── Google Fonts ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=Roboto:wght@500;700&display=swap');


/* ── Colores de marca — garantizados sin depender del CDN ─────────── */
/* El CDN de Tailwind no siempre genera clases de colores custom;
   las definimos aquí como CSS puro para que funcionen siempre.      */

body                { background-color: #0A1628; color: #ffffff;  font-family: 'Inter', system-ui, sans-serif; }
.bg-navy-950        { background-color: #050E1A; }
.bg-navy-900        { background-color: #0A1628; }
.bg-navy-800        { background-color: #0F2040; }
.bg-navy-700        { background-color: #132A54; }
.text-white         { color: #ffffff;            }
.text-electric      { color: #2563EB;            }
.text-skyblue       { color: #60A5FA;            }
.bg-electric        { background-color: #2563EB; }
.font-display       { font-family: 'Montserrat', system-ui, sans-serif; }
.font-body          { font-family: 'Inter',      system-ui, sans-serif; }

/* Opacidades de texto blanco más usadas */
.text-white\/20 { color: rgba(255,255,255,0.20); }
.text-white\/30 { color: rgba(255,255,255,0.30); }
.text-white\/40 { color: rgba(255,255,255,0.40); }
.text-white\/50 { color: rgba(255,255,255,0.50); }
.text-white\/55 { color: rgba(255,255,255,0.55); }
.text-white\/60 { color: rgba(255,255,255,0.60); }
.text-white\/70 { color: rgba(255,255,255,0.70); }

/* Opacidades de fondo blanco */
.bg-white\/5  { background-color: rgba(255,255,255,0.05); }
.bg-white\/10 { background-color: rgba(255,255,255,0.10); }

/* Hover nav */
.hover\:text-white:hover { color: #ffffff; }


/* ── Alpine: prevención de FOUC ─────────────────────────────────── */
[x-cloak] { display: none !important; }


/* ── Keyframes ───────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulseDot {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(1.8); opacity: 0;   }
  100% { transform: scale(1.8); opacity: 0;   }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}


/* ── Hero — entrada CSS pura (sin depender de JS) ───────────────── */
.hero-badge  { animation: fadeInUp 0.55s ease 0.10s both; }
.hero-title  { animation: fadeInUp 0.60s ease 0.25s both; }
.hero-sub    { animation: fadeInUp 0.60s ease 0.40s both; }
.hero-ctas   { animation: fadeInUp 0.60s ease 0.52s both; }
.hero-micro  { animation: fadeInUp 0.60s ease 0.62s both; }
.hero-scroll { animation: scrollBounce 1.8s ease-in-out infinite; }


/* ── Hero: fondo degradado ───────────────────────────────────────── */
.bg-hero {
  background: linear-gradient(135deg, #050E1A 0%, #0A1628 55%, #132A54 100%);
}


/* ── Patrón de grid sutil ────────────────────────────────────────── */
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
}


/* ── Texto degradado ─────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #93C5FD 0%, #60A5FA 40%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ── Punto pulsante (badge hero) ─────────────────────────────────── */
.pulse-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: #60A5FA;
  flex-shrink: 0;
}
.pulse-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: #60A5FA;
  animation: pulseDot 1.8s ease-out infinite;
}


/* ── Nav: estado scrolleado ──────────────────────────────────────── */
.nav-scrolled {
  background-color: rgba(10, 22, 40, 0.96) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}


/* ── Card featured (agente de voz) ───────────────────────────────── */
.card-featured {
  background: linear-gradient(135deg, rgba(37,99,235,0.12) 0%, rgba(96,165,250,0.04) 100%);
  border: 1px solid rgba(37,99,235,0.38);
  box-shadow: 0 0 56px rgba(37,99,235,0.14), inset 0 1px 0 rgba(255,255,255,0.05);
}


/* ── Hover lift (cards) ──────────────────────────────────────────── */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.22), 0 0 20px rgba(37,99,235,0.10);
  border-color: rgba(255,255,255,0.16) !important;
}


/* ── Líneas conectoras entre pasos (desktop) ─────────────────────── */
@media (min-width: 1024px) {
  .step-item {
    position: relative;
  }
  .step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 27px;
    left: calc(50% + 38px);
    right: calc(-50% + 38px);
    height: 1px;
    background: linear-gradient(90deg, rgba(37,99,235,0.45), rgba(96,165,250,0.06));
    pointer-events: none;
  }
}


/* ── Inputs del formulario ───────────────────────────────────────── */
.form-field {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: #ffffff;
  border-radius: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: 'Inter', system-ui, sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
}
.form-field:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.18);
}
.form-field::placeholder {
  color: rgba(255,255,255,0.25);
}


/* ── Botones CTA ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #ffffff;
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 1rem 2.25rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(37,99,235,0.30);
  transition: box-shadow 0.25s ease, transform 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -80%;
  width: 55%;
  height: 220%;
  background: rgba(255,255,255,0.13);
  transform: rotate(18deg) skewX(-8deg);
  transition: left 0.45s ease;
  pointer-events: none;
}
.btn-primary:hover {
  box-shadow: 0 6px 36px rgba(37,99,235,0.55);
  transform: translateY(-2px);
}
.btn-primary:hover::after {
  left: 130%;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255,255,255,0.05);
  color: #ffffff;
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 1rem 2.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.14);
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.18s ease;
  text-decoration: none;
}
.btn-ghost:hover {
  background-color: rgba(37,99,235,0.10);
  border-color: rgba(37,99,235,0.45);
  box-shadow: 0 0 20px rgba(37,99,235,0.15);
  transform: translateY(-2px);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #ffffff;
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  padding: 0.625rem 1.375rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(37,99,235,0.35);
  transition: box-shadow 0.25s ease, transform 0.18s ease;
  text-decoration: none;
}
.btn-pill::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -80%;
  width: 55%;
  height: 220%;
  background: rgba(255,255,255,0.14);
  transform: rotate(18deg) skewX(-8deg);
  transition: left 0.45s ease;
  pointer-events: none;
}
.btn-pill:hover {
  box-shadow: 0 4px 26px rgba(37,99,235,0.55);
  transform: translateY(-1px);
}
.btn-pill:hover::after {
  left: 130%;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #ffffff;
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(37,99,235,0.28);
  transition: box-shadow 0.25s ease, transform 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -80%;
  width: 55%;
  height: 220%;
  background: rgba(255,255,255,0.13);
  transform: rotate(18deg) skewX(-8deg);
  transition: left 0.45s ease;
  pointer-events: none;
}
.btn-sm:hover {
  box-shadow: 0 4px 24px rgba(37,99,235,0.50);
  transform: translateY(-1px);
}
.btn-sm:hover::after {
  left: 130%;
}


/* ── Scrollbar custom ────────────────────────────────────────────── */
::-webkit-scrollbar              { width: 5px; }
::-webkit-scrollbar-track        { background: #0A1628; }
::-webkit-scrollbar-thumb        { background: #1A3A6E; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover  { background: #2563EB; }


/* ── Secciones alternas: fondo oscuro con vida azul en el centro ─── */
.bg-section-alt {
  background:
    radial-gradient(ellipse 80% 55% at 50% 45%, rgba(37,99,235,0.07) 0%, transparent 70%),
    linear-gradient(180deg,
      #0A1628 0%,
      #060E1C 14%,
      #060E1C 86%,
      #0A1628 100%
    );
}


/* ── Secciones: layout base ──────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-eyebrow {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #60A5FA;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.55);
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.6;
}


/* ── Cards: base ─────────────────────────────────────────────────── */
.card {
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background-color: rgba(255,255,255,0.025);
}
.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}
.card h3 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #ffffff;
  margin-bottom: 0.625rem;
}
.card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.65;
}


/* ── Glow orbs decorativos ───────────────────────────────────────── */
.glow-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
}


/* ── Miscelánea ──────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
}
