/* ═══════════════════════════════════════════════
   EAV — Ejército del Aire Virtual
   Design System — Minimalista Militar
═══════════════════════════════════════════════ */

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

:root {
  --bg:          #080a0f;
  --bg-2:        #0d1117;
  --bg-3:        #161b22;
  --bg-4:        #1c2128;

  --blue:        #1a6ed8;
  --blue-light:  #3b8ef0;
  --blue-dim:    rgba(26, 110, 216, 0.15);

  --gold:        #c9a84c;
  --gold-dim:    rgba(201, 168, 76, 0.15);

  --red:         #e05454;
  --red-dim:     rgba(224, 84, 84, 0.15);

  --navy:        #1a3a6e;
  --navy-dim:    rgba(26, 58, 110, 0.3);

  --text:        #f0f6fc;
  --text-2:      #b1bac4;
  --text-3:      #6e7681;

  --border:      rgba(255, 255, 255, 0.06);
  --border-2:    rgba(255, 255, 255, 0.1);

  --radius:      6px;
  --radius-lg:   12px;

  --nav-h:       64px;

  --font-body:   'Inter', system-ui, sans-serif;
  --font-head:   'Rajdhani', 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; }

/* ── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }

/* ── Layout ────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(8, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.navbar.scrolled {
  background: rgba(8, 10, 15, 0.97);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  filter: brightness(1);
}

.logo-text {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
}

/* Nav menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

/* Oculto en desktop, visible sólo dentro del menú móvil */
.nav-login-mobile { display: none; }

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-2);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-item:hover > .nav-link {
  color: var(--text);
  background: var(--border);
}

.chevron {
  font-size: 10px;
  transition: transform 0.2s;
}
.nav-item:hover .chevron {
  transform: rotate(180deg);
}

/* Dropdowns */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-inner {
  display: flex;
  gap: 4px;
}

.dropdown.dropdown-sm .dropdown-inner { flex-direction: column; }

.dropdown-group {
  flex: 1;
  min-width: 160px;
}

.dropdown-group.full { width: 100%; }

.dropdown-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
  padding: 6px 10px 4px;
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  border-radius: var(--radius);
  transition: background 0.15s;
  gap: 1px;
}

.dropdown-item:hover {
  background: var(--bg-4);
}

.item-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.item-subs {
  font-size: 11px;
  color: var(--text-3);
}

.dropdown.dropdown-sm .dropdown-item {
  flex-direction: row;
  align-items: center;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.btn-login {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s;
}

.btn-login svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.btn-login:hover {
  background: var(--bg-4);
  border-color: var(--blue);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  background: var(--blue);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  transition: color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-3);
  transform: translateY(-1px);
}

.btn-full { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--nav-h) 0 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,110,216,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,110,216,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 80%);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 60% 40%, rgba(26,110,216,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(26,58,110,0.15) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 100px 24px 120px;
  max-width: 680px;
  margin-left: max(calc(50vw - 590px), 24px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--blue-dim);
  border: 1px solid rgba(26,110,216,0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--blue-light);
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.text-accent { color: var(--blue-light); }

.hero-subtitle {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 0 28px;
}

.stat:first-child { padding-left: 0; }

.stat-num {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-2);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.hero-scroll span {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-3), transparent);
  animation: scrollAnim 1.8s infinite;
}

@keyframes scrollAnim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ══════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════ */
.section {
  padding: 96px 0;
}

.section-dark {
  background: var(--bg-2);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: var(--blue-dim);
  border: 1px solid rgba(26,110,216,0.25);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.15;
}

.section-desc {
  font-size: 15px;
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════
   CREW / UNITS
══════════════════════════════════════════════ */
.units-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.unit-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.unit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-dim), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.unit-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.unit-card:hover::before {
  opacity: 1;
}

.unit-card.featured {
  border-color: rgba(26,110,216,0.3);
  background: linear-gradient(135deg, var(--bg-3), var(--bg-4));
}

.unit-card.featured-gold {
  border-color: rgba(201,168,76,0.25);
}

.unit-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--blue-dim);
  color: var(--blue-light);
  border: 1px solid rgba(26,110,216,0.2);
}

.unit-badge.accent-gold {
  background: var(--gold-dim);
  color: var(--gold);
  border-color: rgba(201,168,76,0.2);
}

.unit-badge.accent-navy {
  background: var(--navy-dim);
  color: #6ab0f5;
  border-color: rgba(26,58,110,0.4);
}

.unit-badge.accent-red {
  background: var(--red-dim);
  color: var(--red);
  border-color: rgba(224,84,84,0.2);
}

.unit-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.unit-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-4);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
}

.unit-icon-img {
  background: transparent;
  border-color: transparent;
  padding: 2px;
}

.unit-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  transition: transform 0.3s;
}

.unit-card:hover .unit-icon-img img {
  transform: scale(1.08);
}

.unit-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.unit-type {
  font-size: 12px;
  color: var(--text-3);
}

.unit-sqns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}

.sqn-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-2);
}

.unit-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-light);
  transition: color 0.2s;
  margin-top: auto;
}

.unit-link:hover { color: white; }

/* ══════════════════════════════════════════════
   NOTAMS
══════════════════════════════════════════════ */
.notams-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.notam-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}

.notam-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.notam-card.notam-featured {
  grid-column: span 3;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-4));
  border-color: rgba(26,110,216,0.2);
}

.notam-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-dim);
  border: 1px solid rgba(26,110,216,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-light);
}

.notam-icon svg { width: 20px; height: 20px; }

.notam-card h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.notam-featured h3 {
  font-size: 18px;
}

.notam-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

.notam-arrow {
  margin-top: auto;
  font-size: 14px;
  color: var(--text-3);
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.notam-card:hover .notam-arrow {
  color: var(--blue-light);
  transform: translateX(3px);
}

.notam-featured .notam-arrow {
  position: absolute;
  top: 28px;
  right: 24px;
}

/* ══════════════════════════════════════════════
   SERVIDORES
══════════════════════════════════════════════ */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.server-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
}

.server-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.server-card.server-featured {
  border-color: rgba(26,110,216,0.3);
  background: linear-gradient(160deg, var(--bg-3), var(--bg-4));
}

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: flex-end;
  color: var(--text-3);
}

.server-status.online { color: #22c55e; }

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  animation: pulse 2.5s infinite;
}

.server-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.server-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-4);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
}

.server-icon svg { width: 22px; height: 22px; }

.server-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-3);
}

.server-tag.accent {
  background: var(--blue-dim);
  color: var(--blue-light);
  border-color: rgba(26,110,216,0.2);
}

.server-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.server-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}

.server-info {
  font-size: 11px;
  color: var(--text-3);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
}

/* ══════════════════════════════════════════════
   NOTICIAS
══════════════════════════════════════════════ */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.news-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}

.news-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.news-card.news-featured {
  grid-column: span 2;
  border-color: rgba(26,110,216,0.2);
  background: linear-gradient(135deg, var(--bg-3), var(--bg-4));
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--blue-dim);
  color: var(--blue-light);
  border-radius: 4px;
  border: 1px solid rgba(26,110,216,0.2);
}

time {
  font-size: 11px;
  color: var(--text-3);
}

.news-card h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.news-featured h3 { font-size: 20px; }

.news-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}

.news-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-light);
  transition: color 0.2s;
  margin-top: auto;
  align-self: flex-start;
}

.news-link:hover { color: white; }

/* ══════════════════════════════════════════════
   GALERÍA
══════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 200px 200px;
  gap: 12px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.gallery-item.g-tall {
  grid-row: span 2;
}

.gallery-item.g-wide {
  grid-column: span 2;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background-image:
    linear-gradient(rgba(26,110,216,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,110,216,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  transition: border-color 0.2s;
}

.gallery-placeholder:hover {
  border-color: rgba(26,110,216,0.25);
}

.gallery-placeholder span {
  font-size: 12px;
  color: var(--text-3);
  background: rgba(8,10,15,0.8);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════════ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}

.social-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.social-link.discord:hover { border-color: #5865f2; color: #7289da; }
.social-link.youtube:hover { border-color: #ff0000; color: #ff4444; }
.social-link.instagram:hover { border-color: #e1306c; color: #e1306c; }

/* Form */
.contact-form {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-4);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.form-group select option {
  background: var(--bg-3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-3);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-top {
  display: flex;
  gap: 80px;
  margin-bottom: 48px;
}

.footer-brand {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  font-size: 28px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  gap: 48px;
  flex: 1;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

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

/* ══════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .units-grid  { grid-template-columns: repeat(2, 1fr); }
  .notams-grid { grid-template-columns: repeat(2, 1fr); }
  .notam-card.notam-featured { grid-column: span 2; }
  .servers-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.news-featured { grid-column: span 2; }
}

/* ── Tablet estrecha (≤ 900px) ─────────────── */
@media (max-width: 900px) {
  .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-nav { flex-wrap: wrap; gap: 32px; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — Móvil (≤ 768px)
══════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Variables móvil ── */
  :root {
    --nav-h: 56px;
  }

  /* ── Navbar ── */
  .hamburger { display: flex; }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0; bottom: 0;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 32px;
    gap: 2px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 99;
  }

  .nav-menu.open { display: flex; }

  /* Links en menú móvil — táctiles (min 48px) */
  .nav-link {
    padding: 12px 14px;
    font-size: 15px;
    letter-spacing: 0.04em;
    justify-content: space-between;
    border-radius: var(--radius);
    color: var(--text);
  }

  .nav-link:hover,
  .nav-item:hover > .nav-link {
    background: var(--bg-3);
  }

  /* Dropdowns en móvil — acordeón */
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: none;
    padding: 4px 8px 8px;
    margin-top: 4px;
    display: none;
    min-width: 0;
  }

  .nav-item.open .dropdown { display: block; }
  .dropdown-inner { flex-direction: column; gap: 0; }

  .dropdown-group { min-width: 0; }

  .dropdown-item {
    padding: 10px 10px;
    min-height: 44px;
    justify-content: flex-start;
  }

  .item-title { font-size: 14px; }
  .item-subs  { font-size: 11px; }

  /* Separador entre grupos de nav y links simples */
  .nav-item + .nav-item { border-top: 1px solid var(--border); }

  .nav-menu > a.nav-link {
    border-top: 1px solid var(--border);
    margin: 0;
  }

  /* Login en desktop oculto en navbar actions en móvil */
  .nav-actions .btn-login { display: none; }

  /* LOGIN dentro del menú móvil */
  .nav-login-mobile {
    display: flex !important;
    align-items: center;
    margin-top: 8px;
    border-top: 1px solid var(--border-2) !important;
    padding-top: 16px !important;
    color: var(--blue-light) !important;
    font-weight: 600;
  }


  /* ── Hero ── */
  .hero-content {
    padding: 80px 20px 80px;
    margin-left: 0;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(36px, 10vw, 52px);
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 15px;
  }

  .hero-stats {
    gap: 0;
    flex-wrap: wrap;
  }

  .stat { padding: 0 20px 0 0; }
  .stat:first-child { padding-left: 0; }

  /* ── Secciones ── */
  .section { padding: 64px 0; }

  .section-header { margin-bottom: 36px; }

  .section-title { font-size: clamp(24px, 6vw, 34px); }

  /* ── Units grid ── */
  .units-grid  { grid-template-columns: 1fr; gap: 12px; }

  /* ── NOTAMS ── */
  .notams-grid { grid-template-columns: 1fr; gap: 12px; }
  .notam-card.notam-featured {
    grid-column: span 1;
    flex-direction: column;
    gap: 14px;
  }
  .notam-featured .notam-arrow {
    position: static;
  }

  /* ── Servidores ── */
  .servers-grid { grid-template-columns: 1fr; gap: 12px; }

  /* ── Noticias ── */
  .news-grid { grid-template-columns: 1fr; gap: 12px; }
  .news-card.news-featured { grid-column: span 1; }

  /* ── Galería ── */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 140px 140px 140px;
    gap: 8px;
  }
  .gallery-item.g-tall,
  .gallery-item.g-wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* ── Contacto ── */
  .contact-wrapper { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }

  /* ── Footer ── */
  .footer { padding: 48px 0 24px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-nav { flex-wrap: wrap; gap: 28px; }
  .footer-col { min-width: calc(50% - 14px); }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — Móvil pequeño (≤ 480px)
══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* Hero más compacto */
  .hero-content { padding: 72px 16px 64px; }
  .hero-badge { font-size: 11px; }
  .hero-title { font-size: clamp(32px, 11vw, 44px); }
  .hero-stats { gap: 0; }
  .stat-divider { display: none; }
  .stat { padding: 0 16px 0 0; }
  .stat-num { font-size: 22px; }

  /* Cards más compactas */
  .unit-card,
  .notam-card,
  .server-card,
  .news-card { padding: 20px 16px; }

  .contact-form { padding: 20px 16px; }

  /* Footer: 2 columnas ajustadas */
  .footer-col { min-width: 100%; }

  /* Galería: 1 sola columna */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-placeholder { min-height: 140px; }

  /* Scroll hint oculto en muy pequeño */
  .hero-scroll { display: none; }
}

/* ══════════════════════════════════════════════
   TOUCH — Mejoras táctiles globales
══════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  /* Sin hover states en táctil — evita estados pegados */
  .unit-card:hover,
  .notam-card:hover,
  .server-card:hover,
  .news-card:hover {
    transform: none;
    border-color: var(--border);
  }

  .unit-card.featured:hover  { border-color: rgba(26,110,216,0.3); }
  .unit-card.featured-gold:hover { border-color: rgba(201,168,76,0.25); }

  /* Área táctil mínima en links */
  .unit-link,
  .news-link,
  .notam-arrow {
    display: inline-block;
    padding: 8px 0;
    min-height: 44px;
    line-height: 44px;
    padding: 0;
  }

  /* Inputs más grandes en táctil */
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 13px 14px;
    font-size: 16px; /* evita zoom automático en iOS */
  }

  .btn-primary,
  .btn-ghost {
    padding: 14px 24px;
  }

  .btn-login {
    padding: 10px 16px;
  }
}
