/* Radio Club LU1HPW - Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;600;700&display=swap');

:root {
  --bg-dark: #0b101d;
  --bg-card: #131b2e;
  --bg-card-hover: #1a253e;
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(19, 27, 46, 0.75);
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.15);
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'Space Grotesk', monospace;
}

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

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

/* Background Grid Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 15% 20%, rgba(0, 242, 254, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(79, 172, 254, 0.08) 0%, transparent 45%);
  pointer-events: none;
  z-index: -1;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.nav-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  background: #ffffff;
  padding: 3px 6px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
  border: 1px solid rgba(0, 242, 254, 0.4);
  transition: transform 0.25s ease;
}

.brand:hover .nav-logo {
  transform: scale(1.08);
}

.brand-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}

.hero-badge-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.75rem;
  background: radial-gradient(circle, #ffffff 0%, #f0f4f9 70%, rgba(0, 242, 254, 0.15) 100%);
  border: 2px solid rgba(0, 242, 254, 0.5);
  border-radius: 28px;
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.8);
  animation: floatShield 6s ease-in-out infinite;
}

.hero-badge-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 45px rgba(0, 242, 254, 0.5), inset 0 0 20px rgba(255, 255, 255, 1);
}

.hero-logo {
  width: 180px;
  max-width: 80vw;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

@keyframes floatShield {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.callsign-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  letter-spacing: 1px;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

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

/* Botón Hamburguesa */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  z-index: 102;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Hero Section */
.hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-subtitle {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(0, 242, 254, 0.08);
  border-radius: 20px;
  border: 1px solid rgba(0, 242, 254, 0.2);
}

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

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #040914;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 242, 254, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  width: 100%;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Grid & Cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: var(--shadow-glow);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.status-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
}

.status-activa, .status-active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.status-mantenimiento {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.status-inactiva, .status-inactive {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}

.card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

/* Footer */
footer {
  margin-top: auto;
  background: rgba(11, 16, 29, 0.9);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer strong {
  color: var(--text-main);
}

/* ==========================================================
   Mobile Responsive Navigation & Styles (<= 768px)
   ========================================================== */
@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .brand {
    gap: 0.6rem;
    display: flex;
    align-items: center;
  }

  /* Ocultar el texto largo en móviles para que no rompa el navbar */
  .brand-title {
    display: none !important;
  }

  .callsign-badge {
    font-size: 1.05rem;
    padding: 0.15rem 0.5rem;
  }

  .nav-toggle {
    display: flex !important;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(11, 16, 29, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.5rem 1.25rem 2rem;
    gap: 1.25rem;
    align-items: stretch;
    text-align: center;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.7);
    display: none !important;
  }

  .nav-links.nav-active {
    display: flex !important;
    animation: fadeInDown 0.25s ease-out forwards;
  }

  .nav-link {
    font-size: 1.15rem;
    padding: 0.6rem 0;
    display: block;
    color: var(--text-main);
  }

  .nav-links .btn-primary {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    font-size: 1rem !important;
    margin-top: 0.5rem;
  }

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

  /* Responsive Hero */
  .hero {
    padding: 3rem 1rem 2.5rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  /* Responsive Grid */
  .grid-cards {
    grid-template-columns: 1fr;
  }
}
