/* ================================================================
   GS DYNAMIC — Ecosistema Corporativo 3D (Arquitectura 3 Niveles)
   Holding ➔ Suite Transversal Intra-UENs ➔ 3 UENs Oficiales
   Diseño de Alta Gama Enterprise (Microsoft / Google Cloud Inspired)
   ================================================================ */

:root {
  --uen-ussi-color: #a855f7;
  --uen-ussi-glow: rgba(168, 85, 247, 0.35);
  --uen-dor-color: #10b981;
  --uen-dor-glow: rgba(16, 185, 129, 0.35);
  --uen-iic-color: #0ea5e9;
  --uen-iic-glow: rgba(14, 165, 233, 0.35);
  --suite-gsd-color: #f59e0b;
  --suite-gsd-glow: rgba(245, 158, 11, 0.35);
  --holding-cyan: #00f0ff;
  --holding-ruby: #ff0055;
}

/* ═══════════════ NIVEL 1: HOLDING & MAPA MAESTRO ═══════════════ */
.holding-hero-band {
  background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.08) 0%, rgba(5, 5, 16, 0) 70%);
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
  padding: 3.5rem 0;
  position: relative;
}

.holding-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #38bdf8;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
  margin-bottom: 1.5rem;
}

.federal-alliance-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.alliance-node-card {
  background: rgba(13, 16, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.alliance-node-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), transparent);
}

.alliance-node-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.15);
}

.alliance-node-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--r-md);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal Mapa Maestro */
.map-banner-container {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 240, 255, 0.1);
  margin-top: 2.5rem;
  background: #080d1a;
  cursor: pointer;
  transition: all 0.3s ease;
}

.map-banner-container:hover {
  transform: scale(1.01);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 45px rgba(0, 240, 255, 0.25);
}

.map-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.map-overlay-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(10, 15, 26, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.4);
  backdrop-filter: blur(12px);
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* ═══════════════ NIVEL 2: SUITE TRANSVERSAL DE PRODUCTOS INTRA-UEN ═══════════════ */
.suite-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, rgba(5, 5, 16, 0) 0%, rgba(13, 16, 38, 0.5) 50%, rgba(5, 5, 16, 0) 100%);
  position: relative;
}

.suite-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.suite-card {
  background: rgba(13, 16, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  backdrop-filter: blur(20px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s var(--ease);
  overflow: hidden;
}

.suite-card--featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(10, 15, 30, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.12);
}

@media (max-width: 900px) {
  .suite-card--featured {
    grid-column: span 1;
  }
}

.suite-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.15);
}

.suite-card--featured:hover {
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 240, 255, 0.25);
}

.suite-preview-img {
  width: 100%;
  border-radius: var(--r-md);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ═══════════════ NIVEL 3: LAS 3 UENS OFICIALES ═══════════════ */
.uens-section {
  padding: 5.5rem 0;
  position: relative;
}

.uens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

@media (max-width: 1024px) {
  .uens-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-inline: auto;
  }
}

.uen-card {
  background: rgba(13, 16, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease);
}

/* Acentos de color por UEN */
.uen-card--ussi {
  border-top: 4px solid var(--uen-ussi-color);
}
.uen-card--ussi:hover {
  transform: translateY(-8px);
  border-color: var(--uen-ussi-color);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 35px var(--uen-ussi-glow);
}

.uen-card--dor {
  border-top: 4px solid var(--uen-dor-color);
}
.uen-card--dor:hover {
  transform: translateY(-8px);
  border-color: var(--uen-dor-color);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 35px var(--uen-dor-glow);
}

.uen-card--iic {
  border-top: 4px solid var(--uen-iic-color);
}
.uen-card--iic:hover {
  transform: translateY(-8px);
  border-color: var(--uen-iic-color);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 35px var(--uen-iic-glow);
}

.uen-header-logo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--r-md);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.uen-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.uen-tag--ussi { color: #c084fc; }
.uen-tag--dor  { color: #34d399; }
.uen-tag--iic  { color: #38bdf8; }

.uen-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.uen-tagline {
  font-size: 0.92rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  min-height: 48px;
}

.uen-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.uen-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.uen-feature-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  margin-top: 2px;
}

.uen-feature-icon--ussi { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
.uen-feature-icon--dor  { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.uen-feature-icon--iic  { background: rgba(14, 165, 233, 0.2); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.4); }

.uen-action-btn {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

.uen-action-btn--ussi {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
}
.uen-action-btn--ussi:hover {
  background: #a855f7;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.uen-action-btn--dor {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
}
.uen-action-btn--dor:hover {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.uen-action-btn--iic {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.4);
  color: #bae6fd;
}
.uen-action-btn--iic:hover {
  background: #0ea5e9;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

/* ═══════════════ TABS DE FILTRADO UEN EN PRODUCTOS.HTML ═══════════════ */
.uen-filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 2.5rem 0;
}

.uen-filter-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(8px);
}

.uen-filter-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.uen-filter-btn.active {
  background: rgba(14, 165, 233, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.uen-filter-btn--ussi.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.uen-filter-btn--dor.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.uen-filter-btn--suite.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

/* Badge de UEN en tarjeta de producto */
.specimen-uen-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.specimen-uen-tag--ussi {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
}

.specimen-uen-tag--dor {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.specimen-uen-tag--iic {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.4);
  color: #7dd3fc;
}

.specimen-uen-tag--suite {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}



/* ═══════════════ LIGHTBOX MODAL MAPA HD ═══════════════ */
.map-lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(4, 7, 16, 0.96);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.map-lightbox-modal.active {
  display: flex;
}

.map-lightbox-header {
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.map-lightbox-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.map-lightbox-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.map-lightbox-close:hover {
  background: #ff0055;
  border-color: #ff0055;
  transform: rotate(90deg);
}

.map-lightbox-content {
  width: 100%;
  max-width: 1400px;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  border-radius: var(--r-lg);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 60px rgba(0, 240, 255, 0.2);
  background: #02040a;
}

.map-lightbox-img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}
