/* ==========================================
   ESTILOS EXCLUSIVOS PARA ENTERPRISE SOLUTIONS
========================================= */

.enterprise-solutions {
  position: relative;
  padding: 5rem 5%;
  /* Variables locales */
  --gf-blue: #003366;
  --gf-orange: #ff6600;
  --gf-white: #ffffff;
  --gf-text-muted: rgba(255, 255, 255, 0.7);
  --gf-glass-bg: rgba(0, 51, 102, 0.4);
  --gf-glass-border: rgba(255, 255, 255, 0.1);
  --gf-glass-hover: rgba(255, 255, 255, 0.15);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  background: 
    radial-gradient(circle at 15% 50%, rgba(0, 51, 102, 0.4), transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(255, 102, 0, 0.08), transparent 40%),
    linear-gradient(180deg, #001a33 0%, #000d1a 100%);
  color: var(--gf-white);
  overflow: hidden; /* Importante para los degradados de bordes */
}

/* ==========================================
   EFECTO DE BORDES DIFUMINADOS (FADE IN/OUT)
   Para que no se vea el "cuadrado" al inicio y fin
========================================= */

/* Degradado Superior */
.enterprise-solutions::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, #000d1a, transparent);
  z-index: 5; /* Encima del fondo, pero debajo del contenido si usamos mask, o encima de todo para efecto viñeta */
  pointer-events: none;
}

/* Degradado Inferior */
.enterprise-solutions::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, #000d1a, transparent);
  z-index: 5;
  pointer-events: none;
}

/* ==========================================
   FONDO DE CUADRÍCULA (Grid Background)
   Restaurado y posicionado correctamente atrás
========================================= */
.enterprise-solutions .carrier-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  opacity: 0.5;
  z-index: 0; /* Muy atrás */
  pointer-events: none;
}

/* ==========================================
   CONTENIDO Y TIPOGRAFÍA
========================================== */

/* Asegurar que el contenido esté encima de la cuadrícula */
.enterprise-solutions > * {
  position: relative;
  z-index: 10;
}

/* Header con z-index extra alto para evitar "sólidos tapando" */
.enterprise-solutions .section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
  z-index: 20; 
}

.enterprise-solutions .text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--gf-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.enterprise-solutions .mini-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255, 102, 0, 0.15);
  color: var(--gf-orange);
  border: 1px solid rgba(255, 102, 0, 0.3);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(5px);
}

.enterprise-solutions .section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin: 0;
}

/* ==========================================
   GRID SYSTEM
========================================= */
.enterprise-solutions .enterprise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  z-index: 10;
}

@media (min-width: 768px) {
  .enterprise-solutions .enterprise-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .enterprise-solutions .enterprise-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================
   CARDS
========================================= */
.enterprise-solutions .enterprise-card {
  position: relative;
  background: var(--gf-glass-bg);
  border: 1px solid var(--gf-glass-border);
  border-radius: 20px;
  padding: 2rem;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 240px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
}

/* Spotlight */
.enterprise-solutions .enterprise-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 20px;
  background: radial-gradient(
    800px circle at var(--x, 50%) var(--y, 50%), 
    rgba(255, 255, 255, 0.06), 
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 0;
}

/* Glow Border */
.enterprise-solutions .enterprise-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, transparent, rgba(255, 102, 0, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}

.enterprise-solutions .enterprise-card:hover::before,
.enterprise-solutions .enterprise-card:hover::after {
  opacity: 1;
}

.enterprise-solutions .enterprise-card:hover {
  transform: translateY(-8px);
  background: rgba(0, 51, 102, 0.6);
  border-color: rgba(255, 102, 0, 0.4);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 102, 0, 0.1);
}

/* Card Content */
.enterprise-solutions .enterprise-card .card-icon-wrapper {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  color: var(--gf-orange);
  z-index: 2;
  position: relative;
}

.enterprise-solutions .enterprise-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #fff;
  z-index: 2;
  position: relative;
}

.enterprise-solutions .enterprise-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--gf-text-muted);
  margin: 0;
  z-index: 2;
  position: relative;
}

/* ==========================================
   ANIMACIONES DE ICONOS
========================================== */
@keyframes pulse-glow {
  0% { filter: drop-shadow(0 0 2px rgba(255, 102, 0, 0.3)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 8px rgba(255, 102, 0, 0.6)); transform: scale(1.05); }
  100% { filter: drop-shadow(0 0 2px rgba(255, 102, 0, 0.3)); transform: scale(1); }
}

@keyframes fish-breathe {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

/* Asignación de animaciones */
.enterprise-solutions .icon-pulse-lock,
.enterprise-solutions .icon-pulse-network,
.enterprise-solutions .icon-pulse-broadcast,
.enterprise-solutions .icon-pulse-signal,
.enterprise-solutions .icon-pulse-building {
  animation: pulse-glow 3s infinite ease-in-out;
}

.enterprise-solutions .icon-pulse-fish {
  animation: fish-breathe 3s infinite ease-in-out;
}

/* ==========================================
   MODAL PREMIUM
========================================== */
.enterprise-solutions .modal-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 10, 20, 0.8);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  z-index: 99999;

  display: flex;

  align-items: flex-start;
  justify-content: center;

  padding-top: 110px;

  opacity: 0;
  visibility: hidden;

  transition: all 0.3s var(--ease-out);
}

.modal-container{
  width: min(850px, 92vw);
  max-height: 80vh;
  overflow: hidden;
}

.modal-scroll-area{
  overflow-y: auto;
  max-height: calc(80vh - 120px);
}




.enterprise-solutions .modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.enterprise-solutions .modal-container {
  background: linear-gradient(145deg, rgba(0, 51, 102, 0.95), rgba(0, 20, 40, 0.98));
  border: 1px solid var(--gf-glass-border);
  border-radius: 24px;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.enterprise-solutions .modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.enterprise-solutions .modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gf-glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.enterprise-solutions .modal-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.enterprise-solutions .modal-icon-bg {
  width: 48px;
  height: 48px;
  background: rgba(255, 102, 0, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gf-orange);
  font-size: 1.5rem;
}

.enterprise-solutions .modal-title {
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
}

.enterprise-solutions .modal-close {
  background: transparent;
  border: 1px solid var(--gf-glass-border);
  color: var(--gf-text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.enterprise-solutions .modal-close:hover {
  background: var(--gf-orange);
  color: #fff;
  border-color: var(--gf-orange);
}

/* Modal Body */
.enterprise-solutions .modal-scroll-area {
  overflow-y: auto;
  padding: 2rem;
  flex-grow: 1;
}

.enterprise-solutions .modal-scroll-area::-webkit-scrollbar {
  width: 6px;
}
.enterprise-solutions .modal-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}
.enterprise-solutions .modal-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.enterprise-solutions .modal-body p {
  color: var(--gf-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.enterprise-solutions .modal-section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gf-orange);
  margin-bottom: 1rem;
  font-weight: 700;
}

.enterprise-solutions .modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.enterprise-solutions .modal-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.enterprise-solutions .modal-list li i {
  color: var(--gf-orange);
  margin-top: 4px;
  flex-shrink: 0;
}

.enterprise-solutions .modal-divider {
  height: 1px;
  background: var(--gf-glass-border);
  margin: 1.5rem 0;
}