/* ==========================================================================
   styles.css - Tecnoservicios Drago
   ========================================================================== */

:root {
  --bg-dark: #0a0e17;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-input: #1f2937;
  --border-color: #1f2937;
  --border-accent: #06b6d4;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --cyber-green: #10b981;
  --cyber-cyan: #06b6d4;
  --cyber-cyan-glow: rgba(6, 182, 212, 0.4);
  --cyber-green-glow: rgba(16, 185, 129, 0.4);
  --font-mono: 'Courier New', Courier, monospace;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Canvas para Partículas de Fondo */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header & Navegación */
.header-nav {
  background: rgba(10, 14, 23, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cyber-green);
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  font-family: var(--font-mono);
}

.brand-logo span {
  color: var(--cyber-cyan);
}

.logo-img {
  height: 36px;
  width: auto;
  filter: invert(1) drop-shadow(0 0 5px var(--cyber-cyan));
}

/* Menú Desplegable */
.menu-container {
  position: relative;
}

.menu-btn {
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyber-cyan);
  border: 1px solid var(--cyber-cyan);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  font-family: var(--font-mono);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.menu-btn:hover {
  background: var(--cyber-cyan);
  color: #000;
  box-shadow: 0 0 12px var(--cyber-cyan-glow);
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  width: 220px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  overflow: hidden;
  z-index: 1001;
}

.dropdown-menu.show {
  display: flex;
  flex-direction: column;
}

.dropdown-menu a {
  color: var(--text-primary);
  text-decoration: none;
  padding: 12px 18px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover, .dropdown-menu a.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--cyber-green);
  padding-left: 24px;
}

/* Hero Section */
.hero-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.hero-content {
  text-align: center;
  max-width: 850px;
}

.logo-hero-wrapper {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.hero-logo-img {
  max-width: 420px;
  width: 100%;
  height: auto;
  filter: invert(1) drop-shadow(0 0 20px var(--cyber-cyan-glow)) drop-shadow(0 0 40px var(--cyber-green-glow));
  transition: transform 0.5s ease;
}

.hero-logo-img:hover {
  transform: scale(1.03);
}

.hero-title {
  font-size: 2.8rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Formularios y Tarjetas (Para subpáginas) */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  margin-top: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input, textarea, select {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--cyber-green);
}

.btn {
  background: var(--cyber-green);
  color: #000;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background: #0d9668;
}

/* Footer Simple */
.footer-simple {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-simple a {
  color: var(--cyber-cyan);
  text-decoration: none;
}

.footer-simple a:hover {
  text-decoration: underline;
}

/* Responsivo */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-logo-img {
    max-width: 280px;
  }
}