/* MODERN MONO DARK MODE STYLES - COMMON STYLES */
:root {
  /* Color System - Black & White */
  --electric-yellow: #FFFFFF;   /* ahora actúa como "accent" blanco */
  --yellow-bright:   #F5F5F5;   /* blanco suave (hover) */
  --yellow-medium:   #E5E5E5;   /* gris muy claro (active) */
  --yellow-dark:     #D4D4D4;   /* gris claro (disabled) */

  --black-pure:   #000000;
  --black-soft:   #0A0A0A;
  --gray-dark:    #171717;
  --gray-medium:  #262626;
  --gray-light:   #404040;
  --gray-lighter: #737373;
  --gray-text:    #A3A3A3;
  --white-soft:   #E5E5E5;
  --white-pure:   #FFFFFF;

  /* Status Colors (monocromo) */
  --success: #B8B8B8;
  --error:   #9F9F9F;
  --warning: #C9C9C9;
  --info:    #DADADA;

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

/* Shadows and Effects (neutros, azul/morado en vez de amarillo) */
--shadow-cyber: 0 0 20px rgba(145, 74, 200, 0.12);      /* morado suave */
--shadow-heavy: 0 10px 40px rgba(40, 20, 80, 0.6);      /* azul oscuro */
--glow-electric: 0 0 20px rgba(74, 144, 226, 0.35);     /* azul eléctrico */
--glow-soft: 0 0 10px rgba(145, 74, 200, 0.18);         /* morado suave */

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* Borders */
  --border-cyber: 1px solid rgba(255, 255, 255, 0.16);
  --border-dark:  1px solid rgba(255, 255, 255, 0.08);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}


/* RESET AND BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--black-pure);
    color: var(--white-pure);
    line-height: 1.6;
    overflow-x: hidden;
    font-size-adjust: 0.5;
}

.dark-mode {
    background: var(--black-pure);
    color: var(--white-pure);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 3vw, 2rem); }
h4 { font-size: clamp(1rem, 2.5vw, 1.5rem); }

p { 
    margin-bottom: var(--space-sm);
    color: var(--gray-text);
}

/* UTILITIES */
.container { width: min(1400px, 90vw); margin: 0 auto; }

.text-electric {
    color: var(--electric-yellow);
    text-shadow: var(--glow-soft);
}

/* NAVIGATION */
.navbar-cyber {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: var(--border-cyber);
    transition: background-color 0.2s ease;
    font-size: 16px;
}

.nav-container {
    margin: 0 auto;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-lg);
}

.brand-logo-cyber {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}


.nav-brand img {
    width: 100%;
    max-width: 35px;
    height: 100%;
    object-fit: contain;
    filter: none;
}

.brand-text-cyber {
    font-size: 24px;
    font-weight: 700;
    color: var(--white-pure);
}

.brand-accent-cyber {
    color: var(--electric-yellow);
}

.nav-links-cyber {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links-cyber.active {
    display: flex;
}

.nav-link-cyber {
    position: relative;
    text-decoration: none;
    color: var(--gray-text);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: var(--space-xs) 0;
    font-size: 16px;
}

.nav-link-cyber:hover {
    color: var(--electric-yellow);
}

.nav-link-cyber.active {
    color: var(--electric-yellow);
}

.link-indicator {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--electric-yellow);
    transition: width 0.3s ease;
}

.nav-link-cyber:hover .link-indicator,
.nav-link-cyber.active .link-indicator {
    width: 100%;
}

.nav-cta-cyber {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: linear-gradient(135deg, var(--electric-yellow), var(--yellow-medium));
    color: var(--black-pure);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-cyber);
    transition: all 0.3s ease;
    overflow: hidden;
    font-size: 16px;
}

.nav-cta-cyber:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-electric);
}

.cta-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.nav-cta-cyber:hover .cta-glow {
    left: 100%;
}

/* Mobile Navigation */
.nav-links-mobile {
    display: none;
    gap: var(--space-sm);
    align-items: center;
}

.nav-link-mobile {
    color: var(--gray-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    position: relative;
    white-space: nowrap;
}

.nav-link-mobile:hover {
    color: var(--electric-yellow);
}

.nav-link-mobile.active {
    color: var(--electric-yellow);
}

/* Special styling for Analysis button */
.nav-link-analysis {
    background: linear-gradient(135deg, var(--electric-yellow), var(--yellow-medium));
    color: var(--black-pure) !important;
    font-weight: 600;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-cyber);
}

.nav-link-analysis:hover {
    transform: translateY(-1px);
    box-shadow: var(--glow-soft);
    color: var(--black-pure) !important;
}

.nav-toggle-cyber {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.nav-toggle-cyber span {
    width: 25px;
    height: 3px;
    background: var(--electric-yellow);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .nav-links-cyber {
        display: none;
    }
    
    .nav-links-mobile {
        display: flex;
    }
    
    .nav-toggle-cyber {
        display: none;
    }
    
    .nav-container {
        padding: var(--space-sm) var(--space-md);
    }
}

@media (max-width: 480px) {
    .nav-links-mobile {
        gap: 6px;
    }
    
    .nav-link-mobile {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .nav-link-analysis {
        font-size: 11px;
        padding: 5px 8px;
    }
}

/* BUTTONS */
.btn-cyber-primary,
.btn-cyber-secondary {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    font-size: 1rem;
}

.btn-cyber-primary {
    background: linear-gradient(135deg, var(--electric-yellow), var(--yellow-medium));
    color: var(--black-pure);
    box-shadow: var(--shadow-cyber);
}

.btn-cyber-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-electric);
}

.btn-cyber-secondary {
    background: rgba(253, 224, 71, 0.1);
    color: var(--electric-yellow);
    border: var(--border-cyber);
}

.btn-cyber-secondary:hover {
    background: rgba(253, 224, 71, 0.2);
    transform: translateY(-2px);
}

.btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.btn-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 1;
}

.btn-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* CARDS */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(145, 74, 200, 0.12), rgba(74, 144, 226, 0.10), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* SECTION HEADERS */
.section-header-cyber {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: linear-gradient(90deg, rgba(145, 74, 200, 0.12), rgba(74, 144, 226, 0.10));
    border: var(--border-cyber);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: var(--electric-yellow);
    margin-bottom: var(--space-sm);
}

.section-title-cyber {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--space-sm);
    color: var(--white-pure);
}

.section-description-cyber {
    font-size: 1.125rem;
    color: var(--gray-text);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== Footer Rediseñado (sin cambiar contenido) ===== */
.tc-footer{
  position: relative;
  background: rgba(0,0,0,.72);
  border-top: var(--border-dark);
}

/* Línea de acento sutil arriba */
.tc-footer::before{
  content:"";
  position:absolute; left:0; right:0; top:0; height:2px;
  background: linear-gradient(90deg, var(--electric-yellow), transparent 40%, transparent 60%, var(--electric-yellow));
  opacity:.18;
}

/* Grid y espaciado */
.tc-footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  padding: 28px 0 16px;
      align-items: end;
}

/* Marca */
.tc-logo-footer{
  width: 450px;
  height: auto;
  display:block;
  filter: brightness(1) contrast(1.05);
  margin-bottom: 10px;
}
.tc-footer-brand p{
  color: var(--gray-text);
  margin: 8px 0 0;
  max-width: 520px;
}

/* Columna de enlaces */
.tc-footer-links{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  text-align: end;
}
.tc-footer-links h5{
  margin: 4px 0 10px;
  font-weight: 700;
  letter-spacing: .2px;
}
.tc-footer-links a{
  color: var(--gray-text);
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  transition: color .15s ease, transform .12s ease, background .2s ease;
}
.tc-footer-links a::before{
  content: "—";
  opacity: .35;
  transform: translateX(-2px);
  transition: opacity .2s, transform .2s;
}
.tc-footer-links a:hover{
  color: var(--white-pure);
  background: rgba(255,255,255,.05);
  transform: translateX(2px);
}
.tc-footer-links a:hover::before{
  opacity: .8;
  transform: none;
}
.tc-footer-links a:focus-visible{
  outline: 2px solid rgba(255,255,255,.35);
  outline-offset: 2px;
}
.tc-footer-links a {
    display: block;
    color: var(--gray-text);
    padding: 4px 0;
}

/* Franja inferior */
.tc-footer-bottom{
  border-top: var(--border-dark);
  background: rgba(255,255,255,.02);
}
.tc-footer-bottom-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 12px 0;
  color: var(--gray-text);
}

/* Badges */
.badges{
  display:flex;
  gap:10px;
}
.badges span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border: var(--border-dark);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: var(--white-pure);
  transition: transform .12s, border-color .2s, background .2s;
}
.badges span:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
}

/* Responsive */
@media (max-width: 900px){
  .tc-footer-grid{
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0 16px;
  }
  .tc-footer-links{
    text-align: left;
    gap: 8px;
  }
  .tc-footer-bottom-wrap{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 768px){
  .tc-footer-grid{
    padding: 16px 0 12px;
    gap: 16px;
  }
  .tc-logo-footer{
    width: 300px;
  }
  .tc-footer-brand p{
    max-width: 100%;
    font-size: 14px;
    line-height: 1.5;
  }
  .tc-footer-links h5{
    font-size: 16px;
    margin-bottom: 8px;
  }
  .tc-footer-links a{
    font-size: 14px;
    padding: 4px 0;
  }
}

@media (max-width: 480px){
  .tc-footer{
    padding: 0 16px;
  }
  .tc-footer-grid{
    padding: 12px 0;
    gap: 12px;
  }
  .tc-logo-footer{
    width: 250px;
  }
  .tc-footer-bottom-wrap{
    padding: 8px 0;
    gap: 8px;
  }
  .badges{
    flex-wrap: wrap;
    gap: 8px;
  }
  .badges span{
    font-size: 12px;
    padding: 4px 8px;
  }
}


/* ANIMATIONS */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .footer-content-cyber {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-links-cyber {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-links-cyber {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* ANIMATIONS AND INTERACTIONS */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* UTILITY CLASSES */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
