/* ============================================================
   CoreNode SYSTEMS - Official Design System & Cyber-Tech Styles
   Identidad visual oficial de corenodesystem.com con transiciones smooth
   ============================================================ */

:root {
  --bg-dark: #0b0b0f;
  --bg-card: #15151e;
  --bg-card-hover: #1d1b2b;
  --purple-primary: #9333ea;
  --purple-deep: #581c87;
  --purple-glow: #a855f7;
  --lavender: #e9d5ff;
  --cyan-glow: #38bdf8;
  --text-white: #ffffff;
  --text-muted: #9ca3af;
}

body.corenode-theme {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(147, 51, 234, 0.16) 0%, transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(88, 28, 135, 0.18) 0%, transparent 42%);
}

.font-orbitron {
  font-family: 'Orbitron', 'Inter', sans-serif !important;
  letter-spacing: 0.05em;
}

/* Navbar */
.app-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.22);
  padding: 0.85rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.nav-logo-mini {
  height: 42px;
  max-width: 140px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
}

.brand-nav .brand-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-white);
}

.brand-nav .brand-sub {
  display: block;
  font-size: 0.62rem;
  color: var(--purple-glow);
  letter-spacing: 4px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 0.55rem 1.15rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.tab-btn:hover {
  color: var(--lavender);
  background: rgba(147, 51, 234, 0.12);
  transform: translateY(-1px);
}

.tab-btn.active {
  color: var(--text-white);
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.32), rgba(88, 28, 135, 0.55));
  border-color: var(--purple-glow);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
}

/* Tasa BCV Ticker en Navbar */
.bcv-ticker {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #4ade80;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Botón Destacado de Dashboard en Navbar */
.btn-dashboard-pill {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(233, 213, 255, 0.4) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.45) !important;
  border-radius: 9999px !important;
  padding: 0.45rem 1.25rem !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-size: 0.88rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-dashboard-pill:hover {
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%) !important;
  box-shadow: 0 6px 22px rgba(168, 85, 247, 0.7) !important;
  transform: translateY(-2px) scale(1.04) !important;
  color: #ffffff !important;
}

/* Botón Destacado de Dashboard en Hero Principal */
.btn-dashboard-hero {
  background: linear-gradient(135deg, #9333ea 0%, #10b981 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  font-family: 'Orbitron', 'Inter', sans-serif;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  box-shadow: 0 6px 22px rgba(147, 51, 234, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.btn-dashboard-hero:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.6);
  color: #ffffff;
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 72vh;
  gap: 2rem;
  padding: 3rem 1rem;
}

.logo-animator {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  border-radius: 28px;
  animation: floatLogo 5s ease-in-out infinite;
}

.cyber-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.ring-inner {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.42) 0%, transparent 70%);
  animation: pulseGlow 3.2s infinite alternate;
}

.ring-outer {
  width: 380px;
  height: 380px;
  border: 1.5px dashed rgba(233, 213, 255, 0.32);
  box-shadow: 0 0 35px rgba(147, 51, 234, 0.22) inset;
  animation: spinSlow 24s linear infinite;
}

.hero-logo-img {
  max-width: 440px;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.7));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.hero-logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 38px rgba(233, 213, 255, 0.9));
}

.hero-subtitle {
  max-width: 680px;
  color: var(--text-muted);
  font-size: 1.18rem;
  line-height: 1.7;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.btn-primary-cns {
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-deep));
  color: var(--text-white);
  border: 1px solid var(--purple-glow);
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 18px rgba(147, 51, 234, 0.38);
  text-decoration: none;
}

.btn-primary-cns:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.55);
  color: white;
}

.btn-secondary-cns {
  background: transparent;
  color: var(--lavender);
  border: 1px solid rgba(233, 213, 255, 0.3);
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary-cns:hover {
  background: rgba(147, 51, 234, 0.15);
  color: white;
  border-color: var(--purple-glow);
  transform: translateY(-2px);
}

/* Sections */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.3rem;
  margin-bottom: 0.6rem;
  background: linear-gradient(90deg, #ffffff, var(--lavender), var(--purple-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Tarjeta Quiénes Somos */
.about-card {
  background: var(--bg-card);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--purple-glow), var(--lavender));
}

.about-text {
  font-size: 1.2rem;
  line-height: 1.85;
  color: #e5e7eb;
  margin-bottom: 2.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-box {
  background: rgba(147, 51, 234, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.22);
  padding: 1.6rem;
  border-radius: 14px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-4px);
  border-color: var(--purple-glow);
  background: rgba(147, 51, 234, 0.14);
}

.stat-box h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.1rem;
  color: var(--purple-glow);
  margin-bottom: 0.4rem;
}

.stat-box p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Cuadrícula de Empresas ISP */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.company-card {
  background: var(--bg-card);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 20px;
  padding: 2.2rem 1.6rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  text-decoration: none;
  color: inherit;
}

.company-card:hover {
  transform: translateY(-8px);
  border-color: var(--purple-glow);
  box-shadow: 0 16px 36px rgba(147, 51, 234, 0.32);
  background: linear-gradient(180deg, #1d1b2b 0%, #15151e 100%);
  color: inherit;
}

.company-logo-wrap {
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.company-logo-img {
  max-height: 65px;
  max-width: 180px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.company-card:hover .company-logo-img {
  transform: scale(1.06);
}

.company-title {
  margin-top: 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
}

.company-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.4rem;
  line-height: 1.5;
}

.methods-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 1rem;
}

.method-tag {
  font-size: 0.74rem;
  background: rgba(168, 85, 247, 0.12);
  color: var(--lavender);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 4px 9px;
  border-radius: 6px;
  font-weight: 600;
}

.select-action {
  color: var(--purple-glow);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Soluciones */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid rgba(168, 85, 247, 0.22);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.info-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple-glow);
  box-shadow: 0 14px 30px rgba(147, 51, 234, 0.22);
}

.info-card i {
  font-size: 2.3rem;
  color: var(--purple-glow);
  margin-bottom: 1.25rem;
  display: block;
}

.info-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-white);
  font-weight: 700;
}

.info-card p {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* App Download Banner */
.app-promo-card {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 24px;
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: 4rem auto 1rem;
  box-shadow: 0 20px 50px rgba(147, 51, 234, 0.2);
}

/* Footer & Watermark */
.app-footer {
  background: #060609;
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  padding: 2.5rem 5%;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.powered-by-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(147, 51, 234, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
  color: var(--lavender);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
}

.powered-by-brand:hover {
  background: rgba(147, 51, 234, 0.24);
  border-color: var(--purple-glow);
  color: white;
}

/* Animaciones */
@keyframes floatLogo {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

@keyframes pulseGlow {
  0% { transform: scale(0.88); opacity: 0.45; }
  100% { transform: scale(1.25); opacity: 0.95; }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsividad Móvil */
@media (max-width: 768px) {
  .app-navbar {
    padding: 0.75rem 1rem;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  .tab-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.84rem;
  }
  .ring-inner {
    width: 220px;
    height: 220px;
  }
  .ring-outer {
    width: 280px;
    height: 280px;
  }
  .hero-logo-img {
    max-width: 300px;
  }
  .about-card {
    padding: 2rem 1.25rem;
  }
}
