/* ==========================================================================
   GEPSOL - Estilos Globales (style.css) - V4 (Incluye sección Quiénes Somos)
   ========================================================================== */

:root {
  --navy-900: #070d1f;
  --navy-800: #0f172a;
  --navy-700: #1e293b;
  --signal: #38bdf8;          /* Azul cielo claro */
  --signal-hover: #0ea5e9;    /* Azul cielo intenso */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --card-bg: rgba(255, 255, 255, 0.03);
  --border-color: rgba(56, 189, 248, 0.15);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

body {
  background-color: var(--navy-900);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- BOTONES --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.25s ease;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-signal {
  background: linear-gradient(135deg, var(--signal) 0%, var(--signal-hover) 100%);
  color: #070d1f;
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.35);
}

.btn-signal:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(56, 189, 248, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-ghost:hover {
  border-color: var(--signal);
  color: var(--signal);
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-2px);
}

/* --- HEADER --- */
header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1200px;
  background: rgba(7, 13, 31, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  padding: 10px 20px;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, top 0.3s ease;
}

header.header-scrolled {
  top: 12px;
  padding: 6px 16px;
  background: rgba(7, 13, 31, 0.82);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

header.header-scrolled .brand img {
  height: 30px !important;
  transition: height 0.3s ease;
}

header.header-scrolled .links a {
  padding: 7px 16px;
  font-size: 0.85rem;
}

header.header-scrolled .btn {
  padding: 10px 20px;
  font-size: 0.85rem;
}

header.header-scrolled .nav-toggle {
  width: 36px;
  height: 36px;
}

header:hover {
  background: rgba(7, 13, 31, 0.72);
}

header .wrap {
  padding: 0 4px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--signal);
}

.links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 999px;
}

.links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.links a:hover {
  color: var(--text-main);
  background: rgba(56, 189, 248, 0.12);
}

.links a.active {
  color: #070d1f;
  background: linear-gradient(135deg, var(--signal) 0%, var(--signal-hover) 100%);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
}

/* --- BOTÓN HAMBURGUESA (SOLO MÓVIL) --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- PANEL DE MENÚ MÓVIL --- */
.mobile-menu {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  width: calc(100% - 40px);
  max-width: 420px;
  background: rgba(7, 13, 31, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 25px 55px -20px rgba(0, 0, 0, 0.6);
  padding: 18px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-links a {
  padding: 13px 14px;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.98rem;
  transition: all 0.2s ease;
}

.mobile-menu-links a:hover {
  color: var(--text-main);
  background: rgba(56, 189, 248, 0.1);
}

.mobile-menu-links a.active {
  color: #070d1f;
  font-weight: 600;
  background: linear-gradient(135deg, var(--signal) 0%, var(--signal-hover) 100%);
}

.mobile-menu-divider {
  height: 1px;
  background: var(--border-color);
  margin: 14px 4px;
}

.mobile-menu-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  padding: 0 14px;
}

.mobile-menu-tools {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

@media (max-width: 968px) {
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* --- MENÚ DESPLEGABLE (HERRAMIENTAS) --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 9px 16px 9px 18px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.nav-dropdown-trigger:hover {
  color: var(--text-main);
  background: rgba(56, 189, 248, 0.12);
}

.nav-dropdown.open .nav-dropdown-trigger {
  color: var(--text-main);
  background: rgba(56, 189, 248, 0.12);
}

.nav-dropdown-caret {
  font-size: 0.6rem;
  transition: transform 0.25s ease;
  display: inline-block;
}

.nav-dropdown.open .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 300px;
  background: rgba(7, 13, 31, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.55);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 1001;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 10px;
  color: var(--text-main);
  transition: background 0.2s ease;
}

.nav-dropdown-item:hover {
  background: rgba(56, 189, 248, 0.1);
}

.nav-dropdown-item + .nav-dropdown-item {
  margin-top: 2px;
}

.nav-dropdown-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 5px;
  flex-shrink: 0;
  overflow: hidden;
}

.nav-dropdown-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-dropdown-icon.emoji {
  background: rgba(56, 189, 248, 0.12);
  color: var(--signal);
  font-size: 1.15rem;
  padding: 0;
}

.nav-dropdown-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

/* --- HERO --- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 160px 0 80px 0;
  position: relative;
  background-image: url('imagenes/principal.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,13,31,0.95) 0%, rgba(7,13,31,0.85) 45%, rgba(7,13,31,0.55) 100%);
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  max-width: 680px;
  margin-left: 0;
}

.hero .wrap {
  max-width: none;
  margin: 0;
  padding-left: clamp(24px, 6vw, 96px);
  padding-right: 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

h1 {
  font-family: var(--font-display);
  font-size: 4.25rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

h1 em {
  color: var(--signal);
  font-style: normal;
}

.lead {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* --- SEPARACIÓN GENERAL BAJO EL MENÚ FLOTANTE (OTRAS PÁGINAS) --- */
header + section:not(.hero) {
  padding-top: 160px;
}

/* --- PANEL --- */
.panel {
  background: var(--navy-800);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.panel-head {
  background: rgba(0,0,0,0.2);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.panel-dots {
  display: flex;
  gap: 6px;
}

.panel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
}

.panel-body {
  padding: 24px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.status-row:last-child {
  border-bottom: none;
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(56, 189, 248, 0.1);
  color: var(--signal);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--signal);
}

/* --- SECCIÓN ¿QUIÉNES SOMOS? (FONDO BLANCO) --- */
.about-section {
  background: #ffffff;
  padding: 90px 0;
  color: #0f172a;
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #070d1f;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #334155;
  opacity: 1;
  margin-bottom: 30px;
}

.about-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-feature-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(5px);
  transition: transform 0.2s ease;
}

.about-feature-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.15);
}

.about-feature-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-feature-card p {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 0;
}

.about-cta-box {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid rgba(3, 105, 161, 0.35);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 20px 40px -15px rgba(3, 105, 161, 0.45);
}

.about-cta-box h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.about-cta-box p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 24px;
}

/* --- CUADRO DE FOTO EN "¿QUIÉNES SOMOS?" --- */
.about-photo-box {
  position: relative;
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid rgba(3, 105, 161, 0.35);
  box-shadow: 0 20px 40px -15px rgba(3, 105, 161, 0.45);
}

.about-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 20, 40, 0.1) 0%, rgba(3, 20, 40, 0.9) 100%);
}

.about-photo-content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  text-align: center;
  color: #ffffff;
}

.about-photo-content h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.about-photo-content p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 24px;
}

/* --- SECCIÓN DE COBERTURA / MAPA --- */
.coverage-section {
  padding: 90px 0;
  background-color: var(--navy-900);
}

.coverage-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 6px;
  border-radius: 999px;
  max-width: 420px;
  margin: 0 auto 32px auto;
}

.coverage-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.coverage-btn:hover {
  color: var(--text-main);
  background: rgba(56, 189, 248, 0.1);
}

.coverage-btn.active {
  color: #070d1f;
  background: linear-gradient(135deg, var(--signal) 0%, var(--signal-hover) 100%);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.35);
}

.coverage-map-container {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  max-height: 380px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.coverage-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}

.coverage-map.active {
  opacity: 1;
  visibility: visible;
}

.coverage-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 20px;
}

.coverage-caption strong {
  color: var(--signal);
}

@media (max-width: 640px) {
  .coverage-map-container {
    aspect-ratio: 4 / 5;
    max-height: 340px;
  }
}

/* --- SECCIONES GENERALES --- */
section {
  padding: 80px 0;
}

.sec-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px auto;
}

.sec-head h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 16px;
}

/* --- PÁGINA NOSOTROS: BANNER SUPERIOR --- */
.about-banner {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  overflow: hidden;
}

.about-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.about-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(7,13,31,0.94) 0%, rgba(7,13,31,0.8) 50%, rgba(7,13,31,0.4) 100%);
}

.about-banner-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.about-banner-content h1 {
  font-size: 3.1rem;
  margin-bottom: 20px;
}

.about-banner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.about-banner-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--signal);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- MISIÓN, VISIÓN Y VALORES (DISEÑO TECH/CORPORATIVO) --- */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.mvv-card {
  position: relative;
  background: linear-gradient(165deg, rgba(56, 189, 248, 0.05) 0%, var(--navy-800) 55%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 32px 34px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  box-shadow: 0 15px 35px -18px rgba(0, 0, 0, 0.45);
}

.mvv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--signal) 50%, transparent 100%);
  opacity: 0.7;
}

.mvv-card::after {
  content: attr(data-num);
  position: absolute;
  top: -6px;
  right: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(56, 189, 248, 0.05);
  pointer-events: none;
}

.mvv-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 25px 55px -20px rgba(56, 189, 248, 0.25);
}

.mvv-card.featured {
  border-color: rgba(56, 189, 248, 0.55);
  background: linear-gradient(165deg, rgba(56,189,248,0.12) 0%, var(--navy-800) 60%);
  box-shadow: 0 20px 50px -18px rgba(56, 189, 248, 0.35);
  transform: translateY(-14px);
}

.mvv-card.featured:hover {
  transform: translateY(-22px);
}

.mvv-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.mvv-icon {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56,189,248,0.18) 0%, rgba(56,189,248,0.02) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--signal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
  box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.15);
}

.mvv-card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.mvv-card p {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.mvv-values-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.mvv-value-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 9px 14px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: var(--text-main);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.mvv-value-chip:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.5);
}

.mvv-value-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
  flex-shrink: 0;
}

/* --- TRAYECTORIA (ROADMAP TECNOLÓGICO) --- */
.roadmap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.roadmap::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, rgba(56,189,248,0.05) 0%, var(--signal) 20%, var(--signal) 80%, rgba(56,189,248,0.05) 100%);
  z-index: 0;
}

.roadmap-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 18px;
}

.roadmap-node {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(56,189,248,0.18) 0%, var(--navy-800) 72%);
  border: 2px solid var(--signal);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--signal);
  box-shadow: 0 0 0 6px rgba(7,13,31,1), 0 0 28px rgba(56, 189, 248, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.roadmap-item:hover .roadmap-node {
  transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(7,13,31,1), 0 0 40px rgba(56, 189, 248, 0.55);
}

.roadmap-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.roadmap-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.roadmap-item p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 230px;
}

@media (max-width: 968px) {
  .roadmap {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .roadmap::before {
    top: 0;
    bottom: 0;
    left: 38px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(56,189,248,0.05) 0%, var(--signal) 15%, var(--signal) 85%, rgba(56,189,248,0.05) 100%);
  }
  .roadmap-item {
    flex-direction: row;
    text-align: left;
    padding: 0;
  }
  .roadmap-node {
    margin-bottom: 0;
    margin-right: 22px;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    font-size: 1.1rem;
  }
  .roadmap-item p {
    max-width: none;
  }
}

/* --- NUESTRO EQUIPO --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.team-card {
  background: var(--navy-800);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  overflow: hidden;
}

.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.6);
}

.team-info {
  padding: 20px 16px 24px 16px;
}

.team-info h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.team-info span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- GALERÍA / INSTALACIONES --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid var(--border-color);
}

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

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(7,13,31,0.85) 0%, transparent 100%);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* --- POR QUÉ ELEGIRNOS --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
}

.why-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--signal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.why-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 6px;
}

.why-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* --- CTA FINAL --- */
.about-cta-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 64px 40px;
  text-align: center;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 25px 55px -20px rgba(3, 105, 161, 0.5);
}

.about-cta-banner h2 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: #ffffff;
  margin-bottom: 14px;
}

.about-cta-banner p {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 30px auto;
}

.about-cta-banner .btn-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 968px) {
  .mvv-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .about-banner-content h1 { font-size: 2.3rem; }
}

/* --- CINTA AZUL DE ESTADÍSTICAS (CONTADORES) --- */
.stats-ribbon {
  background: var(--navy-800);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 50px 0;
  color: var(--text-main);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--signal);
}

.stat-item .stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- SECCIÓN DE PÓLIZAS --- */
.polizas-section {
  padding: 90px 0;
  background-color: #ffffff;
}

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

.polizas-header .sub-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(56, 189, 248, 0.1);
  color: var(--signal-hover);
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 16px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.polizas-header h2 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #070d1f;
}

.polizas-header p {
  color: #475569;
  font-size: 1.05rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: center;
}

.pricing-card {
  background: var(--navy-800);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 30px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 15px 35px -15px rgba(15, 23, 42, 0.35);
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-card.featured {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border: 2px solid var(--signal);
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.3);
  transform: scale(1.05);
  z-index: 2;
}

.pricing-card.featured:hover {
  transform: scale(1.07);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  color: #070d1f;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 16px;
  background: var(--navy-700);
  color: var(--signal);
}

.featured .plan-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.pricing-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.featured p {
  color: rgba(255, 255, 255, 0.85);
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.featured .pricing-features li {
  color: #ffffff;
}

.pricing-features li::before {
  content: "✓";
  color: var(--signal);
  font-weight: bold;
}

.featured .pricing-features li::before {
  color: #ffffff;
}

/* --- ESTILO TECNOLÓGICO DE SERVICIOS --- */
.tech-services-container {
  display: grid;
  grid-template-columns: 1fr 340px 1fr;
  gap: 30px;
  align-items: center;
  margin-top: 40px;
}

.tech-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tech-node {
  background: var(--navy-800);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
}

.tech-node:hover {
  border-color: var(--signal);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.1);
}

.tech-node-content h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text-main);
}

.tech-node-content p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.tech-node-icon {
  background: rgba(56, 189, 248, 0.1);
  color: var(--signal);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-left: 15px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.tech-core-hub {
  background: radial-gradient(circle, rgba(56,189,248,0.15) 0%, rgba(15,23,42,0.9) 70%);
  border: 2px solid var(--signal);
  border-radius: 50%;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
  position: relative;
  overflow: hidden;
}

.tech-core-hub-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.tech-core-hub-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(15,23,42,0.35) 0%, rgba(15,23,42,0.85) 75%);
  border-radius: 50%;
}

.tech-core-hub-content {
  position: relative;
  z-index: 1;
}

.tech-core-hub::after {
  content: '';
  position: absolute;
  width: 326px;
  height: 326px;
  border: 1px dashed rgba(56, 189, 248, 0.3);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.core-icon {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.core-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--signal);
  letter-spacing: 1px;
}

/* --- SERVICIOS TRADICIONALES Y FORMULARIOS --- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.svc-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  transition: transform 0.2s, border-color 0.2s;
}

.svc-card:hover {
  transform: translateY(-4px);
  border-color: var(--signal);
}

.svc-index {
  font-family: var(--font-mono);
  color: var(--signal);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 16px;
}

.svc-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.svc-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- SERVICIOS DESTACADOS (BLOQUES ALTERNADOS CON FOTO) --- */
.svc-showcase {
  display: flex;
  flex-direction: column;
  gap: 110px;
}

.svc-showcase-item {
  display: flex;
  align-items: center;
  gap: 64px;
}

.svc-showcase-item.reverse {
  flex-direction: row-reverse;
}

.svc-showcase-text,
.svc-showcase-media {
  flex: 1 1 0;
  min-width: 0;
}

.svc-showcase-text h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 18px;
}

.svc-showcase-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 460px;
}

.svc-showcase-frame {
  position: relative;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16) 0%, rgba(56, 189, 248, 0.02) 100%);
  border: 1px solid var(--border-color);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.svc-showcase-item:hover .svc-showcase-frame {
  transform: translateY(-6px);
  box-shadow: 0 35px 70px -25px rgba(56, 189, 248, 0.3);
}

.svc-showcase-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
}

@media (max-width: 900px) {
  .svc-showcase {
    gap: 64px;
  }
  .svc-showcase-item,
  .svc-showcase-item.reverse {
    flex-direction: column-reverse;
    gap: 28px;
  }
  .svc-showcase-text {
    text-align: left;
  }
  .svc-showcase-text p {
    max-width: none;
  }
  .svc-showcase-text h3 {
    font-size: 1.6rem;
  }
}

/* --- CARRUSEL DE SERVICIOS (AUTO-ROTATIVO) --- */
.svc-carousel {
  max-width: 920px;
  margin: 0 auto;
}

.svc-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -20px rgba(0, 0, 0, 0.55);
}

.svc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.svc-slide.active {
  opacity: 1;
  visibility: visible;
}

.svc-slide:nth-child(2)  { background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%); }
.svc-slide:nth-child(3)  { background: linear-gradient(135deg, #6366f1 0%, #3730a3 100%); }
.svc-slide:nth-child(4)  { background: linear-gradient(135deg, #f43f5e 0%, #9f1239 100%); }
.svc-slide:nth-child(5)  { background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%); }
.svc-slide:nth-child(6)  { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); }
.svc-slide:nth-child(7)  { background: linear-gradient(135deg, #0284c7 0%, #075985 100%); }
.svc-slide:nth-child(8)  { background: linear-gradient(135deg, #8b5cf6 0%, #5b21b6 100%); }
.svc-slide:nth-child(9)  { background: linear-gradient(135deg, #10b981 0%, #065f46 100%); }
.svc-slide:nth-child(10) { background: linear-gradient(135deg, #ec4899 0%, #9d174d 100%); }
.svc-slide:nth-child(11) { background: linear-gradient(135deg, #38bdf8 0%, #0369a1 100%); }

.svc-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.svc-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7,13,31,0.92) 0%, rgba(7,13,31,0.55) 45%, rgba(7,13,31,0.15) 100%);
}

.svc-slide-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  color: #ffffff;
}

.svc-slide-content .svc-index {
  margin-bottom: 10px;
}

.svc-slide-content h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 10px;
}

.svc-slide-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  max-width: 520px;
}

.svc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(7, 13, 31, 0.45);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.svc-arrow:hover {
  background: var(--signal);
  color: #070d1f;
  border-color: var(--signal);
}

.svc-prev { left: 16px; }
.svc-next { right: 16px; }

.svc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.svc-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.svc-dot:hover {
  background: rgba(56, 189, 248, 0.6);
}

.svc-dot.active {
  width: 26px;
  background: var(--signal);
}

@media (max-width: 640px) {
  .svc-track {
    aspect-ratio: 4 / 5;
  }
  .svc-slide-content {
    padding: 26px;
  }
  .svc-slide-content h3 {
    font-size: 1.4rem;
  }
  .svc-arrow {
    width: 36px;
    height: 36px;
  }
}

/* --- CATÁLOGO COMPLETO CON FILTROS (TILES + LISTA) --- */
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 50px;
}

.cat-tile {
  position: relative;
  text-align: left;
  font-family: var(--font-sans);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 22px 18px;
  background: var(--navy-800);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cat-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tile-grad);
  opacity: 0.1;
  transition: opacity 0.3s ease;
}

.cat-tile:hover {
  transform: translateY(-4px);
}

.cat-tile:hover::before {
  opacity: 0.2;
}

.cat-tile.active {
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: 0 22px 45px -18px rgba(56, 189, 248, 0.45);
}

.cat-tile.active::before {
  opacity: 0.4;
}

.cat-tile-count {
  position: relative;
  z-index: 1;
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 999px;
}

.cat-tile-icon {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 1.7rem;
  margin-bottom: 30px;
}

.cat-tile h4 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.cat-tile p {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.svc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.svc-list-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: all 0.25s ease;
}

.svc-list-item:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.05);
  transform: translateX(6px);
}

.svc-list-item.svc-hidden {
  display: none;
}

.svc-list-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--signal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.svc-list-text {
  flex: 1;
  min-width: 0;
}

.svc-list-text h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 4px;
}

.svc-list-text p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}

.svc-list-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 968px) {
  .cat-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .cat-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .svc-list-item {
    align-items: flex-start;
  }
  .svc-list-tag {
    display: none;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* --- PÁGINA CONTACTO: LAYOUT PRINCIPAL --- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background: var(--navy-800);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 36px;
}

.contact-info-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 26px;
}

.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-info-row:last-of-type {
  margin-bottom: 0;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--signal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.contact-info-row strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-info-row span,
.contact-info-row a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.contact-info-row a:hover {
  color: var(--signal);
}

.contact-social-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
}

.contact-map {
  margin-top: 24px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 16 / 11;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-form-card {
  background: var(--navy-800);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 25px 55px -25px rgba(0, 0, 0, 0.5);
}

.contact-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.form-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--signal);
  font-size: 0.88rem;
  text-align: center;
}

.form-status.visible {
  display: block;
}

.form-status.status-ok {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.form-status.status-error {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.35);
  color: #f87171;
}

/* --- OTRAS FORMAS DE CONTACTARNOS --- */
.quick-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.quick-contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: all 0.25s ease;
}

.quick-contact-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.06);
  transform: translateY(-4px);
}

.quick-contact-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--signal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.quick-contact-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.quick-contact-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .quick-contact-grid {
    grid-template-columns: 1fr;
  }
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--navy-900);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-main);
  font-family: var(--font-sans);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

/* --- FOOTER --- */
/* --- BARRA "SÍGUENOS" (REDES SOCIALES) --- */
.social-bar {
  background: linear-gradient(90deg, #0369a1 0%, #0284c7 50%, #0369a1 100%);
  padding: 0;
}

.social-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 22px 24px;
  flex-wrap: wrap;
}

.social-bar-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: #ffffff;
}

.social-bar-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.25s ease;
}

.social-icon:hover {
  background: #ffffff;
  color: #0369a1;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.4);
}

/* --- PREGUNTAS FRECUENTES (ACORDEÓN) --- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--card-bg);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.faq-item.open {
  border-color: rgba(56, 189, 248, 0.5);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  color: var(--signal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--signal);
  color: #070d1f;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px 24px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* --- PÁGINA UTILERÍAS: TARJETAS DE RECURSOS --- */
.util-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.util-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: 16px;
  background: var(--navy-800);
  border: 1px solid var(--border-color);
  transition: all 0.25s ease;
}

.util-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(56, 189, 248, 0.3);
}

.util-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--signal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.util-card-body {
  flex: 1;
  min-width: 0;
}

.util-card-body h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.util-card-body p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.util-card-arrow {
  color: var(--signal);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.util-card-soon {
  opacity: 0.6;
  cursor: default;
}

.util-card-soon:hover {
  transform: none;
  border-color: var(--border-color);
  background: var(--navy-800);
  box-shadow: none;
}

/* --- PÁGINA UTILERÍAS: LISTA DE COMANDOS CMD --- */
.cmd-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: border-color 0.25s ease;
}

.cmd-item:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.cmd-text code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--signal);
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.cmd-text p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.5;
}

.cmd-copy {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cmd-copy:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.1);
}

.cmd-copy.copied {
  background: linear-gradient(135deg, var(--signal) 0%, var(--signal-hover) 100%);
  color: #070d1f;
  border-color: transparent;
}

@media (max-width: 968px) {
  .util-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .util-grid {
    grid-template-columns: 1fr;
  }
  .cmd-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .cmd-copy {
    width: 100%;
    text-align: center;
  }
}

/* --- BIBLIOTECA DE RECURSOS (CATEGORÍAS + ARCHIVOS) --- */
.lib-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.lib-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 8px 0 8px 0;
}

.lib-session {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lib-session-user {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-main);
}

.lib-session-rol {
  color: var(--signal);
}

/* --- VISTA 1: GRID DE CATEGORÍAS (BOTONES ESTILO TECH) --- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cat-btn {
  position: relative;
  background: linear-gradient(165deg, rgba(56, 189, 248, 0.06) 0%, var(--navy-800) 55%);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 34px 22px 26px 22px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  font-family: var(--font-sans);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cat-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--signal) 50%, transparent 100%);
  opacity: 0.7;
}

.cat-btn:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 22px 48px -20px rgba(56, 189, 248, 0.3);
}

.cat-btn-count {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--signal);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 9px;
  border-radius: 999px;
}

.cat-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 18px auto;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18) 0%, rgba(56, 189, 248, 0.02) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.15);
  font-size: 1.7rem;
}

.cat-btn h4 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.cat-btn-tipo {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cat-btn-add {
  background: transparent;
  border: 1px dashed var(--border-color);
}

.cat-btn-add:hover {
  border-color: rgba(56, 189, 248, 0.5);
  border-style: dashed;
}

.cat-btn-add::before {
  display: none;
}

.cat-btn-icon-add {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--signal);
  background: rgba(56, 189, 248, 0.08);
  border-style: dashed;
}

/* --- VISTA 2: DETALLE DE CATEGORÍA --- */
.lib-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  margin-bottom: 28px;
  transition: all 0.2s ease;
}

.lib-back-btn:hover {
  color: var(--text-main);
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
}

.lib-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.lib-panel-tipo {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.lib-panel-head h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.lib-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lib-btn-delete-cat,
.lib-btn-delete {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.lib-btn-delete-cat:hover,
.lib-btn-delete:hover {
  border-color: rgba(248, 113, 113, 0.5);
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
}

/* Grilla de tarjetas de recursos */
.lib-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.lib-resource-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 60px 20px;
  border: 1px dashed var(--border-color);
  border-radius: 16px;
}

.lib-resource-card {
  position: relative;
  padding: 20px;
  border-radius: 14px;
  background: var(--navy-800);
  border: 1px solid var(--border-color);
  transition: all 0.25s ease;
}

.lib-resource-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -20px rgba(56, 189, 248, 0.3);
}

.lib-resource-card .lib-btn-delete {
  position: absolute;
  top: 12px;
  right: 12px;
}

.lib-resource-card h5 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--text-main);
  margin-bottom: 8px;
  padding-right: 26px;
}

.lib-resource-card .meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--signal);
  margin-bottom: 10px;
}

.lib-resource-card .notas {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.lib-comando-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--signal);
  background: rgba(56, 189, 248, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow-x: auto;
  white-space: nowrap;
}

.lib-card-actions {
  margin-top: 8px;
}

.lib-btn-download {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--signal) 0%, var(--signal-hover) 100%);
  color: #070d1f;
  border: none;
  cursor: pointer;
}

@media (max-width: 968px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .lib-resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lib-resource-grid {
    grid-template-columns: 1fr;
  }
}

/* --- FORMULARIO DE "SUBIR ARCHIVO": CAMPOS DINÁMICOS SEGÚN TIPO --- */
.campo-tipo {
  display: none;
}

.campo-tipo.visible {
  display: block;
}

.form-row.campo-tipo.visible {
  display: grid;
}

/* --- MODALES (CREAR CATEGORÍA / SUBIR ARCHIVO) --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 13, 31, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--navy-800);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-box h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 22px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: var(--text-main);
  border-color: rgba(56, 189, 248, 0.4);
}

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

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .lib-header {
    flex-direction: column;
    align-items: stretch;
  }
  .lib-header .btn {
    width: 100%;
  }
}

footer {
  background: var(--navy-800);
  border-top: 1px solid var(--border-color);
  padding: 64px 0 32px 0;
  margin-top: 80px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.foot-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}

.foot-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.foot-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 16px;
}

.foot-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-col ul a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.foot-col ul a:hover {
  color: var(--signal);
}

.foot-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.foot-contact a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.foot-contact a:hover {
  color: var(--signal);
}

.foot-bottom {
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media(max-width: 968px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .tech-services-container {
    grid-template-columns: 1fr;
  }
  .tech-core-hub {
    margin: 20px auto;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card.featured {
    transform: none;
  }
  .hero-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 2.5rem; }
  .links { display: none; }
}

/* --- PANTALLA DE LOGIN --- */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 45%), var(--navy-900);
}

.login-box {
  width: 100%;
  max-width: 400px;
  background: var(--navy-800);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.login-brand {
  display: flex;
  justify-content: center;
}

.login-back {
  display: block;
  text-align: center;
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.login-back:hover {
  color: var(--signal);
}

/* --- PANEL DE ADMINISTRACIÓN DE USUARIOS --- */
.admin-card {
  background: var(--navy-800);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px 30px;
}

.admin-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.permisos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.permiso-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.permiso-check input {
  accent-color: var(--signal);
  width: 16px;
  height: 16px;
}

.usuarios-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.usuario-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.usuario-item strong {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-right: 10px;
}

.usuario-rol {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--signal);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.usuario-permisos {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.usuario-acciones {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .permisos-grid {
    grid-template-columns: 1fr;
  }
  .login-box {
    padding: 32px 24px;
  }
}
