/*
Theme Name: NERION Tech Theme
Theme URI: https://nerion.cl
Author: NERION
Author URI: https://nerion.cl
Description: Tema premium de alta tecnología para NERION. Infraestructura, Redes, Servidores, Virtualización, Cloud, Desarrollo, IA, Bases de Datos y Ciberseguridad.
Version: 1.0.0
Text Domain: nerion
*/

:root {
  /* Color Palette */
  --bg-dark: #080c14;
  --bg-surface: #0f172a;
  --bg-surface-hover: #1e293b;
  --bg-glass: rgba(15, 23, 42, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 150, 255, 0.3);

  --primary: #0066ff;
  --primary-hover: #0052cc;
  --accent: #00d2ff;
  --accent-glow: rgba(0, 210, 255, 0.25);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --success: #10b981;
  --warning: #f59e0b;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Layout */
  --max-width: 1240px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--text-main);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 10000;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.site-header:has(.mobile-nav.open) {
  z-index: 99999;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo svg {
  height: 38px;
  width: auto;
}

.brand-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
}

.brand-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0099ff 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 102, 255, 0.5);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  color: #ffffff;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Navigation Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 12, 20, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 2rem 1.5rem 3rem 1.5rem;
  flex-direction: column;
  gap: 1rem;
  z-index: 99999;
  pointer-events: auto;
  overflow-y: auto;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  animation: fadeInMobileNav 0.25s ease-out;
}

@keyframes fadeInMobileNav {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav.open {
  display: flex;
  pointer-events: auto;
}

.mobile-nav .nav-menu {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: auto;
}

.mobile-nav li {
  width: 100%;
  pointer-events: auto;
}

.mobile-nav .nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  width: 100%;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 100000;
}

.mobile-nav .nav-link::after {
  content: '→';
  opacity: 0.4;
  transition: var(--transition);
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
  background: rgba(0, 210, 255, 0.12);
  border-color: var(--accent);
  color: var(--accent);
  padding-left: 1.5rem;
}

.mobile-nav .nav-link:hover::after,
.mobile-nav .nav-link.active::after {
  opacity: 1;
  transform: translateX(4px);
}

/* Hero Section */
.hero-section {
  padding: calc(var(--header-height) + 4rem) 0 5rem 0;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(0, 102, 255, 0.15) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 1rem;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 50px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  max-width: 650px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-card-preview {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.hero-card-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.tech-nodes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5rem;
}

.tech-node {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--accent);
}

/* Value Prop Section */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem auto;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.8rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0, 102, 255, 0.15);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(0, 102, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #ffffff;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover {
  gap: 10px;
}

/* Experience Banner */
.exp-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.exp-number {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  background: linear-gradient(180deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.exp-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.5rem;
}

.exp-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Tech Stack Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.2rem;
}

.tech-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1.2rem 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tech-item:hover {
  border-color: var(--primary);
  background: var(--bg-surface-hover);
}

.tech-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Why Nerion Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.pillar-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Process Timeline */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.process-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
}

.process-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.process-step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.process-step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact CTA Banner & Form */
.cta-banner {
  background: radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.2) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 4rem 2.5rem;
  text-align: center;
  margin-top: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2rem;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-input, .form-select, .form-textarea {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  width: 100%;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: #ffffff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

/* Footer */
.site-footer {
  background: #04070d;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .exp-box {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .desktop-nav, .header-actions {
    display: none;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}


/* Keep WordPress admin bar from covering the site navigation */
body.admin-bar .site-header {
  top: 32px;
}

body.admin-bar .mobile-nav {
  top: calc(var(--header-height) + 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  body.admin-bar .mobile-nav {
    top: calc(var(--header-height) + 46px);
  }
}


/* Native mobile navigation control: works without external JavaScript */
.mobile-menu-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mobile-menu-checkbox:checked ~ .mobile-nav {
  display: flex;
}


/* Fix mobile menu overlay height inside the filtered header */
@media (max-width: 768px) {
  .site-header .mobile-nav {
    position: absolute;
    top: 100%;
    right: 0;
    bottom: auto;
    left: 0;
    height: calc(100dvh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
  }

  body.admin-bar .site-header .mobile-nav {
    top: 100%;
    height: calc(100dvh - var(--header-height) - 32px);
    min-height: calc(100dvh - var(--header-height) - 32px);
    max-height: calc(100dvh - var(--header-height) - 32px);
  }
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header .mobile-nav {
    top: 100%;
    height: calc(100dvh - var(--header-height) - 46px);
    min-height: calc(100dvh - var(--header-height) - 46px);
    max-height: calc(100dvh - var(--header-height) - 46px);
  }
}


/* NERION kinetic infrastructure visual layer */
:root {
  --nr-signal: #00d2ff;
  --nr-electric: #2f7dff;
  --nr-violet: #7c5cff;
  --nr-glow: rgba(0, 210, 255, 0.34);
  --nr-deep-glow: rgba(47, 125, 255, 0.24);
}

@keyframes nr-grid-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(44px, 44px, 0); }
}

@keyframes nr-orbit-light {
  0%, 100% { transform: translate3d(-7%, -5%, 0) scale(0.92); opacity: 0.48; }
  50% { transform: translate3d(8%, 7%, 0) scale(1.08); opacity: 0.82; }
}

@keyframes nr-title-glint {
  0%, 14%, 100% { background-position: 0% 50%; }
  52%, 66% { background-position: 100% 50%; }
}

@keyframes nr-enter {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes nr-float-card {
  0%, 100% { transform: translate3d(0, 0, 0) rotateX(0deg); }
  50% { transform: translate3d(0, -10px, 0) rotateX(1.5deg); }
}

@keyframes nr-card-sweep {
  0%, 56% { transform: translateX(-135%); opacity: 0; }
  66% { opacity: 1; }
  84%, 100% { transform: translateX(135%); opacity: 0; }
}

@keyframes nr-node-pulse {
  0%, 100% { border-color: rgba(0, 210, 255, 0.23); box-shadow: 0 0 0 rgba(0, 210, 255, 0); }
  50% { border-color: rgba(0, 210, 255, 0.7); box-shadow: 0 0 24px rgba(0, 210, 255, 0.26); }
}

@keyframes nr-tech-breathe {
  0%, 100% { border-color: rgba(255,255,255,0.08); background-color: rgba(255,255,255,0.02); }
  50% { border-color: rgba(0,210,255,0.36); background-color: rgba(0,210,255,0.06); }
}

@keyframes nr-whatsapp-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.26), 0 0 0 0 rgba(37, 211, 102, 0.28); }
  56% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.30), 0 0 0 13px rgba(37, 211, 102, 0); }
}

.hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 16%, rgba(0, 210, 255, 0.19), transparent 29%),
    radial-gradient(circle at 10% 96%, rgba(47, 125, 255, 0.22), transparent 34%),
    linear-gradient(134deg, #050914 0%, #08172a 48%, #0a1730 100%);
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero-section::before {
  inset: -20%;
  opacity: 0.58;
  background-image:
    linear-gradient(rgba(129, 208, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 208, 255, 0.075) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 18%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 18%, transparent 72%);
  animation: nr-grid-drift 24s linear infinite;
}

.hero-section::after {
  width: min(52vw, 720px);
  aspect-ratio: 1;
  right: -17%;
  top: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.20), rgba(47, 125, 255, 0.07) 34%, transparent 69%);
  filter: blur(3px);
  animation: nr-orbit-light 14s ease-in-out infinite;
}

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

.hero-badge {
  border-color: rgba(0, 210, 255, 0.35);
  background: rgba(4, 18, 37, 0.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 26px rgba(0, 210, 255, 0.09);
  animation: nr-enter 0.6s both;
}

.hero-badge span {
  box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.44);
  animation: nr-whatsapp-pulse 3.4s ease-out infinite;
}

.hero-title {
  background: linear-gradient(105deg, #ffffff 0%, #d9edff 40%, #50d8ff 50%, #f5fbff 60%, #d5e6ff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: nr-enter 0.78s 0.08s both, nr-title-glint 8s ease-in-out infinite;
}

.hero-subtitle {
  animation: nr-enter 0.78s 0.20s both;
}

.hero-ctas {
  animation: nr-enter 0.78s 0.32s both;
}

.hero-visual {
  transform-origin: center;
  animation: nr-enter 0.86s 0.16s both, nr-float-card 7.5s 1.1s ease-in-out infinite;
}

.hero-card-preview {
  position: relative;
  overflow: hidden;
  border-color: rgba(114, 205, 255, 0.30);
  background:
    linear-gradient(145deg, rgba(19, 40, 70, 0.92), rgba(7, 17, 33, 0.92)),
    #091321;
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 210, 255, 0.06),
    0 0 60px rgba(0, 166, 255, 0.12);
}

.hero-card-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 24%, rgba(141, 233, 255, 0.16) 46%, transparent 67%);
  transform: translateX(-135%);
  animation: nr-card-sweep 8s ease-in-out infinite;
}

.tech-node {
  position: relative;
  border-color: rgba(0, 210, 255, 0.23);
  background: rgba(5, 24, 48, 0.72);
  animation: nr-node-pulse 4.8s ease-in-out infinite;
}

.tech-node:nth-child(2n) { animation-delay: 0.8s; }
.tech-node:nth-child(3n) { animation-delay: 1.6s; }

.desktop-nav .nav-link {
  position: relative;
}

.desktop-nav .nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--nr-signal), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease;
}

.desktop-nav .nav-link:hover::after,
.desktop-nav .nav-link.active::after {
  transform: scaleX(1);
}

.btn-primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 102, 255, 0.28);
}

.btn-primary::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, transparent 18%, rgba(255,255,255,0.26) 45%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 0.52s ease;
}

.btn-primary:hover::after,
.btn-primary:focus-visible::after {
  transform: translateX(120%);
}

.section {
  position: relative;
}

.section-title {
  letter-spacing: -0.035em;
}

.section-header::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 1.15rem;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--nr-signal), transparent);
  box-shadow: 0 0 18px rgba(0, 210, 255, 0.38);
}

.service-card,
.pillar-card,
.process-step,
.tech-item {
  position: relative;
  overflow: hidden;
  border-color: rgba(136, 192, 255, 0.14);
}

.service-card {
  transition: transform 0.35s cubic-bezier(0.2, 0.75, 0.25, 1), border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 12%;
  left: 12%;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--nr-signal), transparent);
  box-shadow: 0 0 18px var(--nr-glow);
  transform: scaleX(0.3);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.service-card:hover {
  transform: translateY(-9px);
  border-color: rgba(0, 210, 255, 0.55);
  background: linear-gradient(150deg, rgba(15, 43, 74, 0.98), rgba(8, 19, 35, 0.98));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32), 0 0 34px rgba(0, 174, 255, 0.13);
}

.service-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.service-icon {
  transition: transform 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover .service-icon {
  color: #d9f7ff;
  transform: rotate(-8deg) scale(1.10);
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.20);
}

.tech-item {
  animation: nr-tech-breathe 6.5s ease-in-out infinite;
}

.tech-item:nth-child(4n+2) { animation-delay: 1s; }
.tech-item:nth-child(4n+3) { animation-delay: 2s; }
.tech-item:nth-child(4n+4) { animation-delay: 3s; }

.pillar-card,
.process-step {
  transition: transform 0.32s ease, border-color 0.32s ease, background 0.32s ease, box-shadow 0.32s ease;
}

.pillar-card:hover,
.process-step:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 210, 255, 0.42);
  background: rgba(13, 38, 66, 0.62);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.process-num {
  color: var(--nr-signal);
  text-shadow: 0 0 18px rgba(0, 210, 255, 0.46);
}

.cta-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 210, 255, 0.20);
  background:
    radial-gradient(circle at 84% 18%, rgba(0, 210, 255, 0.16), transparent 29%),
    linear-gradient(135deg, rgba(10, 32, 58, 0.96), rgba(7, 17, 34, 0.98));
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.28);
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 22%, rgba(0, 210, 255, 0.09) 48%, transparent 72%);
  transform: translateX(-135%);
  animation: nr-card-sweep 10s ease-in-out infinite;
}

.whatsapp-float {
  animation: nr-whatsapp-pulse 3.8s ease-out infinite;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--nr-signal);
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .hero-section::before { opacity: 0.38; }
  .hero-section::after { width: 440px; right: -48%; top: -6%; }
  .service-card:hover,
  .pillar-card:hover,
  .process-step:hover { transform: translateY(-4px); }
  .desktop-nav .nav-link::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
