/* -------------------
   VARIABLES BÁSICAS
--------------------*/
:root {
  --blue-dark: #021937;
  --blue-mid: #052b63;
  --blue-soft: #0b3f80;
  --red-main: #e50914;
  --bg-light: #f4f7fb;
  --text-main: #0f172a;
  --text-soft: #64748b;
  --white: #ffffff;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.25);
  --shadow-card: 0 16px 40px rgba(15, 23, 42, 0.12);
}

/* -------------------
   RESET
--------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
}

/* Contenedor general */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* -------------------
   TOPBAR / NAVBAR
--------------------*/
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-mid));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.6);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

/* Logo texto */
.logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--white);
}

.logo-compact {
  color: #e5f0ff;
}

.logo-network {
  color: var(--red-main);
}

.logo-eirl {
  font-weight: 500;
  font-size: 0.8rem;
  margin-left: 0.25rem;
  opacity: 0.9;
}

.brand-tagline {
  display: block;
  font-size: 0.7rem;
  color: rgba(226, 232, 240, 0.85);
  margin-top: 0.15rem;
}

.topbar-left {
  display: flex;
  flex-direction: column;
}

/* Navegación */
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.nav a {
  color: #e2e8f0;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  background: rgba(15, 23, 42, 0.4);
  color: #ffffff;
}

.nav a.active {
  background: #ffffff;
  color: var(--blue-mid);
}

/* Dropdown base */
.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: #e2e8f0;
  font: inherit;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.dropdown-toggle::after {
  content: "▾";
  font-size: 0.7rem;
}

.dropdown-toggle:hover {
  background: rgba(15, 23, 42, 0.4);
  color: #ffffff;
}

/* Megamenú servicios */
.dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  background: #ffffff;
  color: var(--text-main);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 0.8rem;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.18s ease-out;
}

.dropdown-services {
  min-width: 420px;
}

.dropdown-services ul,
.dropdown-simple ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* items laterales, estilo profesional */
.dropdown-services ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.9rem;
}

.dropdown-services li a {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto auto;
  gap: 0.05rem;
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: background 0.16s, transform 0.16s, box-shadow 0.16s;
}

.dropdown-services li a:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.dd-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #e0f2fe, #0f172a);
  margin-bottom: 0.15rem;
}

.dd-title {
  font-size: 0.8rem;
  font-weight: 600;
}

.dd-desc {
  font-size: 0.72rem;
  color: var(--text-soft);
}

/* Dropdown simple (Nosotros) */
.dropdown-simple ul li a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-main);
}

.dropdown-simple ul li a:hover {
  background: #f1f5f9;
}

/* Mostrar dropdown al pasar el mouse (desktop) */
@media (min-width: 900px) {
  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* BOTÓN NAV MOBILE */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: #e2e8f0;
  border-radius: 999px;
}

/* -------------------
   HERO
--------------------*/
.hero {
  background: radial-gradient(circle at 10% 10%, #1d4ed8 0, #02101f 45%, #010814 100%);
  color: #ffffff;
  padding: 3.2rem 0 3.8rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  margin: 0 0 0.7rem;
}

.hero .accent {
  color: var(--red-main);
}

.hero p {
  font-size: 0.95rem;
  color: #cbd5f5;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.hero-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.7rem;
}

.kpi-item {
  min-width: 90px;
}

.kpi-number {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
}

.kpi-label {
  font-size: 0.75rem;
  color: #bfdbfe;
}

/* Hero visual (nodo de red) */
.hero-visual {
  position: relative;
  padding: 1.5rem;
  border-radius: 24px;
  background: radial-gradient(circle at 0% 0%, rgba(248, 250, 252, 0.08), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(248, 250, 252, 0.1), transparent 60%);
  box-shadow: var(--shadow-soft);
}

.hero-network {
  position: relative;
  height: 220px;
  border-radius: 22px;
  background: radial-gradient(circle at 10% 10%, #2f4fd6 0, #020617 80%);
  overflow: hidden;
}

/* nodos */
.node {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f97316;
  box-shadow: 0 0 0 6px rgba(248, 250, 252, 0.18);
}

.node-main {
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  background: #22c55e;
}

.node-1 {
  top: 22%;
  left: 25%;
}

.node-2 {
  top: 75%;
  left: 30%;
}

.node-3 {
  top: 30%;
  left: 80%;
}

/* enlaces */
.link {
  position: absolute;
  background: linear-gradient(90deg, #38bdf8, #a855f7);
  opacity: 0.9;
}

.link-1 {
  top: 50%;
  left: 28%;
  width: 26%;
  height: 3px;
  transform: translateY(-50%);
}

.link-2 {
  top: 34%;
  left: 36%;
  width: 33%;
  height: 3px;
}

.link-3 {
  top: 60%;
  left: 55%;
  width: 20%;
  height: 3px;
}

/* Chips */
.hero-chip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.92);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.5);
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.hero-chip-top {
  top: -1.6rem; /* Ajuste para que no quede tapado */
}

.hero-chip-bottom {
  bottom: -0.75rem;
}

.chip-title {
  font-weight: 600;
}

.chip-sub {
  font-size: 0.68rem;
  color: #cbd5f5;
}

/* -------------------
   BOTONES
--------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--red-main);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.5);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(220, 38, 38, 0.6);
}

.btn-ghost {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.6);
}

.btn-outline-red {
  background: transparent;
  color: var(--red-main);
  border: 1px solid var(--red-main);
}

.btn-outline-red:hover {
  background: var(--red-main);
  color: #ffffff;
}

.btn-small {
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
}

/* -------------------
   SECCIONES GENERALES
--------------------*/
.section {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
}

.section-header p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.bg-light {
  background: #f9fafb;
}

.section-alt {
  background: #f3f4f6;
}

/* -------------------
   SERVICIOS GRID
--------------------*/
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: flex-start;
}


/* --- Animaciones PRO para las tarjetas --- */

.service-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.22s ease-out,
    box-shadow 0.22s ease-out,
    background 0.22s ease-out;
}

/* halo suave */
.service-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.24), transparent 55%);
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 0.28s ease-out, transform 0.28s ease-out;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.25);
  background: #f9fafb;
}

.service-card:hover::before {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* --- Iconos animados --- */
.service-card .service-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.25s ease-out,
    box-shadow 0.25s ease-out,
    background 0.25s ease-out;
}

.service-card .service-icon .icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(248, 250, 252, 0.75);
  transition: transform 0.35s ease-out;
}

/* Hover del icono */
.service-card:hover .service-icon {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
  background: radial-gradient(circle at 25% 20%, #e5f0ff, #0f172a);
}

.service-card:hover .service-icon .icon {
  transform: rotate(-10deg);
}

/* --- Subrayado animado del link --- */
.service-card .link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-soft);
  text-decoration: none;
  padding-bottom: 0.05rem;
}

.service-card .link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #a855f7);
  transition: width 0.22s ease-out;
}

.service-card:hover .link::after {
  width: 100%;
}


/* Icono redondo – animación suave */
.service-card .service-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.25s ease-out,
    box-shadow 0.25s ease-out,
    background 0.25s ease-out;
}

.service-card .service-icon .icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(248, 250, 252, 0.75);
  transition: transform 0.35s ease-out;
}

/* efecto al pasar el mouse por la tarjeta */
.service-card:hover .service-icon {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
  background: radial-gradient(circle at 25% 20%, #e5f0ff, #0f172a);
}

.service-card:hover .service-icon .icon {
  transform: rotate(-10deg);
}



/* Link dentro de tarjetas de servicios */
.service-card .link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-soft);
  text-decoration: none;
  padding-bottom: 0.05rem;
}

.service-card .link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #a855f7);
  transition: width 0.22s ease-out;
}

.service-card:hover .link::after {
  width: 100%;
}





.service-card-highlight {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-soft));
  color: #e5f0ff;
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-gradient {
  background: radial-gradient(circle at 25% 20%, #e5f0ff, #0f172a);
}

.icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid rgba(248, 250, 252, 0.7);
}

.icon-internet {
  border-radius: 999px;
}

.icon-interconexion {
  border-top-right-radius: 999px;
}

.icon-cableado {
  border-style: dashed;
}

.icon-cctv {
  border-bottom-left-radius: 999px;
}

.icon-telefonia {
  border-radius: 8px 2px 8px 2px;
}

.service-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.service-body p {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.link {
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--blue-soft);
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

.service-card-highlight .service-body p {
  color: #e2e8f0;
}

.service-card-highlight .tag-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.service-card-highlight .tag-list li {
  font-size: 0.75rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
}

/* -------------------
   NOSOTROS
--------------------*/
.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.col-text h2 {
  margin: 0 0 0.7rem;
  font-size: 1.6rem;
}

.col-text p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Placeholder en vez de imagen rota */
.img-frame {
  border-radius: 22px;
  background: #ffffff;
  padding: 0.9rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.img-placeholder {
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  background: radial-gradient(circle at 5% 0%, #e0f2fe, #0b1120);
  color: #e5f0ff;
  position: relative;
  overflow: hidden;
}

.placeholder-line {
  height: 3px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.8);
  margin-bottom: 0.5rem;
}

.line-1 {
  width: 60%;
}

.line-2 {
  width: 80%;
}

.line-3 {
  width: 40%;
}

.placeholder-caption {
  position: absolute;
  bottom: 0.8rem;
  right: 1rem;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

/* -------------------
   CTA
--------------------*/
.cta {
  background: linear-gradient(90deg, var(--blue-mid), var(--blue-dark));
  color: #e5f0ff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta h2 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
}

.cta p {
  margin: 0;
  font-size: 0.9rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* -------------------
   FOOTER
--------------------*/
.footer {
  background: #020617;
  color: #e5e7eb;
  padding-top: 2rem;
  padding-bottom: 1.25rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr 1fr;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footer-logo-text {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.footer-col h4 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.footer-small {
  font-size: 0.78rem;
  color: #cbd5f5;
  margin: 0 0 0.25rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.25rem;
}

.footer-links a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.78rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding-top: 0.5rem;
  text-align: center;
}

/* -------------------
   MEDIA QUERIES
--------------------*/
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero-visual {
    margin-top: 1.2rem;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card-highlight {
    grid-column: span 2;
  }

  .two-cols {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .topbar-inner {
    padding: 0.5rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 56px 0 auto 0;
    background: #020617;
    flex-direction: column;
    padding: 0.8rem 1.5rem 1.5rem;
    gap: 0.9rem;
    transform: translateY(-120%);
    transition: transform 0.18s ease-out;
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .dropdown,
  .dropdown-services,
  .dropdown-simple {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 0.2rem;
    background: transparent;
    padding: 0;
  }

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

  .dropdown-services ul {
    grid-template-columns: 1fr;
  }

  .dropdown-services li a {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
    box-shadow: none;
  }

  .dropdown-services li a:hover {
    background: rgba(15, 23, 42, 0.5);
  }

  .dropdown-simple ul li a {
    padding-left: 0;
    padding-right: 0;
  }

  .hero {
    padding-bottom: 3rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card-highlight {
    grid-column: span 1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}




/* =========================================================
   SECCIÓN INFRAESTRUCTURA – SOLO PARA LA NUEVA SECCIÓN
   ====================================================== */

.section-infraestructura {
  /* Fondo general de la sección (oscuro pero elegante) */
  background: linear-gradient(180deg, #061528 0%, #0a1d3c 50%, #020a14 100%);
  padding: 80px 0;
}

.section-infraestructura .section-header h2 {
  color: #f02005;  /* "Infraestructura que respalda tu red" */
}

.section-infraestructura .section-header p {
  color: #f2f4f5; /* "Un vistazo a los entornos técnicos..." */
  max-width: 620px;
}

/* Grid de tarjetas */
.infra-grid {
  margin-top: 2.8rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Tarjeta base – sin fondo negro, solo vidrio + imagen */
/* Tarjetas premium infraestructura – con glow y zoom */
.infra-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 2.4rem 2.2rem;
  background: radial-gradient(circle at top left, #172554 0, #020617 55%);
  color: #f9fafb;
  isolation: isolate;

  /* Sombra base */
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.65);

  /* Transiciones suaves */
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* Capa de imagen de fondo común a todas las tarjetas */
.infra-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.9;
  z-index: -2;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    filter 0.35s ease;
}

/* Hover: elevación + glow azul + zoom de imagen */
.infra-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.45),
    0 0 40px rgba(59, 130, 246, 0.55),
    0 28px 70px rgba(15, 23, 42, 0.9);
  border-color: rgba(59, 130, 246, 0.55);
}

.infra-card:hover::before {
  transform: scale(1.06);
  opacity: 1;
  filter: saturate(1.1);
}

/* (esto lo dejas como ya lo tenías) */
.infra-content {
  position: relative;
  z-index: 1;
}

.infra-card:hover .infra-content h3 {
  color: #60a5fa;
}

/* Capa de imagen de fondo (se rellena con las clases bg-*) */
.infra-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.9;                         /* intensidad de la foto */
  z-index: -2;
  transform: scale(1.03);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Capa de degradado para que el texto siempre sea legible */
.infra-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2, 6, 23, 0.88) 8%,
    rgba(15, 23, 42, 0.45) 55%,
    rgba(15, 23, 42, 0.08) 100%
  );
  z-index: -1;
}

/* Contenido por encima de las capas */
.infra-content {
  position: relative;
  z-index: 1;
}

/* Etiqueta de categoría */
.infra-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.75);
  color: rgba(226, 232, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 1.4rem;
}

.infra-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #f9fafb;
}

.infra-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(226, 232, 255, 0.86);
}

/* Hover suave: la imagen se ilumina un poco y el título se tiñe de azul */
.infra-card:hover::before {
  opacity: 1;
  transform: scale(1.06);
}

.infra-card:hover .infra-content h3 {
  color: #60a5fa;
}

/* Imágenes de cada tarjeta
   Ajusta las rutas según tus archivos reales en assets/img/* */
.infra-card.bg-fibra::before {
  background-image: url("../img/infra-fibra.jpg");
}

.infra-card.bg-datacenter::before {
  background-image: url("../img/infra-datacenter.jpg");
}

.infra-card.bg-oficina::before {
  background-image: url("../img/infra-oficinas.jpg");
}

.infra-card.bg-cctv::before {
  background-image: url("../img/infra-cctv.jpg");
}

.infra-card.bg-infra::before {
  background-image: url("../img/infra-rack.jpg");
}

.infra-card.bg-equipo::before {
  background-image: url("../img/infra-equipo-tecnico.jpg");
}

/* Responsivo pequeño */
@media (max-width: 640px) {
  .infra-card {
    padding: 1.9rem 1.6rem;
  }

  .infra-content h3 {
    font-size: 1.1rem;
  }
}


/* =========================================================
   ANIMACIONES HERO – NODOS Y ENLACES
   (pegar al final de styles.css)
   ====================================================== */

/* Brillo suave del contenedor de red */
.hero-network {
  animation: hero-glow 10s ease-in-out infinite alternate;
}

/* Pulso de los nodos naranjas */
.hero-network .node {
  animation: node-pulse 4s ease-in-out infinite;
}

/* Nodo verde principal un poquito más fuerte */
.hero-network .node-main {
  animation: node-main-pulse 4.5s ease-in-out infinite;
}

/* Desfasamos los tiempos para que no pulsen todos igual */
.hero-network .node-1 { animation-delay: 0s; }
.hero-network .node-2 { animation-delay: 0.8s; }
.hero-network .node-3 { animation-delay: 1.4s; }

/* Movimiento de “tráfico” en las líneas */
.hero-network .link-1,
.hero-network .link-2,
.hero-network .link-3 {
  background-size: 200% 100%;
  animation: link-flow 5s linear infinite;
}

.hero-network .link-2 {
  animation-duration: 6.5s;
}

.hero-network .link-3 {
  animation-duration: 7.5s;
}

/* ---------- KEYFRAMES ---------- */

/* Glow muy suave del fondo del hero-network */
@keyframes hero-glow {
  0% {
    box-shadow: 0 0 0 rgba(15, 23, 42, 0.6);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.8);
    transform: translateY(-2px);
  }
  100% {
    box-shadow: 0 0 0 rgba(15, 23, 42, 0.6);
    transform: translateY(0);
  }
}

/* Pulso nodos naranjas */
@keyframes node-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(248, 250, 252, 0.18);
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 0 12px rgba(248, 250, 252, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(248, 250, 252, 0.18);
  }
}

/* Pulso nodo verde principal */
@keyframes node-main-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.6);
  }
  50% {
    transform: scale(1.22);
    box-shadow: 0 0 0 14px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.6);
  }
}

/* Flujo de datos en las líneas de colores */
@keyframes link-flow {
  0% {
    background-position: 0% 0;
    opacity: 0.85;
  }
  100% {
    background-position: 200% 0;
    opacity: 1;
  }
}

/* =========================================================
   ANIMACIÓN FADE-IN + SLIDE-UP DEL HERO COMPLETO
   ====================================================== */

/* El hero entero aparece suave al cargar */
.hero {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1.4s ease-out forwards;
}

/* El contenido de texto tiene un delay pequeño para aparecer después */
.hero-inner {
  opacity: 0;
  transform: translateY(20px);
  animation: heroContentIn 1.6s ease-out forwards;
  animation-delay: 0.25s;
}

/* Las KPIs aparecen después también */
.hero-kpis {
  opacity: 0;
  animation: heroKPIsIn 1.4s ease-out forwards;
  animation-delay: 0.55s;
}

/* ---------- KEYFRAMES ---------- */

@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroContentIn {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroKPIsIn {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   HERO VISUAL 3D + GLOW AL PASAR EL MOUSE
   ====================================================== */

/* Preparamos el bloque visual para animación 3D suave */
.hero-visual {
  position: relative;
  transform-style: preserve-3d;
  transition:
    transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.35s ease,
    filter 0.35s ease;
}

/* Glow sutil debajo del bloque */
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 10% 6%;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 120%, rgba(59, 130, 246, 0.2), transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: -1;
}

/* Efecto 3D + elevación cuando pasas el mouse */
.hero-visual:hover {
  transform: translateY(-8px) scale(1.02) rotateX(4deg) rotateY(-6deg);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.78);
  filter: saturate(1.08);
}

.hero-visual:hover::after {
  opacity: 1;
}

/* Pequeño “latido” en el nodo principal para darle vida */
.node-main {
  animation: nodePulse 2.2s ease-in-out infinite;
}

@keyframes nodePulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 0 0 12px rgba(34, 197, 94, 0.06);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
  }
}

/* =========================================================
   ANIMACIÓN LÍNEAS + ETIQUETAS HERO
   ====================================================== */

/* 1) Animación de las líneas (tráfico en movimiento) */
.link-1,
.link-2,
.link-3 {
  position: absolute;
  background: linear-gradient(90deg, #38bdf8, #a855f7);
  opacity: 0.9;
  overflow: hidden;
}

/* Capa interna que “corre” por la línea */
.link-1::after,
.link-2::after,
.link-3::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248, 250, 252, 0), rgba(248, 250, 252, 0.9), rgba(248, 250, 252, 0));
  transform: translateX(-100%);
  animation: linkFlow 2.8s linear infinite;
}

/* Pequeña desincronización entre líneas */
.link-2::after {
  animation-delay: 0.6s;
}
.link-3::after {
  animation-delay: 1.2s;
}

/* Efecto de “flujo” */
@keyframes linkFlow {
  0% {
    transform: translateX(-110%);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    transform: translateX(110%);
    opacity: 1;
  }
  100% {
    transform: translateX(130%);
    opacity: 0;
  }
}

/* 2) Animación de las etiquetas (chips) del hero */

/* Estado inicial: un poco abajo y transparentes */
.hero-chip {
  opacity: 0;
  transform: translate(-50%, 10px);
  animation: chipIn 0.7s ease-out forwards;
}

/* La de arriba entra primero, la de abajo con un ligero delay */
.hero-chip-top {
  animation-delay: 0.15s;
}

.hero-chip-bottom {
  animation-delay: 0.35s;
}

/* Animación de entrada suave */
@keyframes chipIn {
  0% {
    opacity: 0;
    transform: translate(-50%, 18px);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -2px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}


/* =========================================================
   PARPADEO PROFESIONAL DE NODOS – EFECTO RED ACTIVA
   ====================================================== */

/* Nodos naranjas – parpadeo alternado */
.node {
  animation: nodeBlink 2.8s ease-in-out infinite;
}

/* Desfasamos los tiempos para que se vea "aleatorio" */
.node-1 { animation-delay: 0.2s; }
.node-2 { animation-delay: 0.9s; }
.node-3 { animation-delay: 1.6s; }

/* Keyframes del parpadeo */
@keyframes nodeBlink {
  0% {
    opacity: 0.85;
    transform: scale(1);
  }
  40% {
    opacity: 1;
    transform: scale(1.18);
  }
  70% {
    opacity: 0.85;
    transform: scale(1);
  }
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
}


/* =========================================================
   EFECTO PREMIUM – BRILLO SUAVE EN CALL TO ACTION
   ====================================================== */

.btn-primary {
  background: var(--red-main);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(229, 9, 20, 0.5);
  animation: ctaPulse 3.6s ease-in-out infinite;
}

@keyframes ctaPulse {
  0% {
    box-shadow: 0 8px 18px rgba(229, 9, 20, 0.35);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 12px 26px rgba(229, 9, 20, 0.6);
    transform: scale(1.025);
  }
  100% {
    box-shadow: 0 8px 18px rgba(229, 9, 20, 0.35);
    transform: scale(1);
  }
}

/* =========================================================
   ANIMACIÓN LOGO + SCROLL REVEAL + PREPARACIÓN PARALLAX
   ====================================================== */

/* Logo COMPACTNETWORK: entrada suave al cargar */
.logo-text {
  opacity: 0;
  animation: logoFadeIn 0.9s ease-out forwards;
}

@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal genérico para secciones y bloques */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* El bloque visual del hero preparado para parallax suave */
.hero-visual {
  will-change: transform;
  transition: transform 0.18s ease-out;
}



/* Link "Ver detalle del servicio" con subrayado animado */
.service-card .link {
  position: relative;
  display: inline-block;
  padding-bottom: 0.08rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-soft);
  text-decoration: none;
  overflow: hidden;
}

/* Barra de color que se desliza por debajo del texto */
.service-card .link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #6366f1, #ec4899);
  transform: translateX(-105%);
  transition: transform 0.28s ease-out;
}

/* Al hacer hover en la tarjeta o en el link, aparece la barra */
.service-card:hover .link::after,
.service-card .link:hover::after {
  transform: translateX(0);
}

/* Cambio muy suave de color del texto al hacer hover */
.service-card:hover .link,
.service-card .link:hover {
  color: #0f172a;
}

/* Animación hover para tarjetas de servicios (home) */
.service-card {
  transition:
    transform 0.22s ease-out,
    box-shadow 0.22s ease-out;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
}


/* ===========================
   ÍCONOS DIFERENTES POR TARJETA
   =========================== */

/* Base: nos aseguramos de que el contenedor tenga el gradiente bonito */
.service-card .service-icon {
  background: radial-gradient(circle at 25% 20%, #e5f0ff, #0f172a);
}

/* Icono 1 – Internet Dedicado: círculo completo */
.service-grid .service-card:nth-child(1) .icon {
  border-radius: 999px;
  border-width: 2px;
}

/* Icono 2 – Interconexión: esquina superior derecha redondeada */
.service-grid .service-card:nth-child(2) .icon {
  border-radius: 4px 999px 4px 4px;
  border-width: 2px;
}

/* Icono 3 – Cableado Estructurado: borde punteado */
.service-grid .service-card:nth-child(3) .icon {
  border-radius: 8px;
  border-style: dashed;
  border-width: 2px;
}

/* Icono 4 – CCTV: “cámara” con esquina inferior izquierda redondeada */
.service-grid .service-card:nth-child(4) .icon {
  border-radius: 999px 6px 6px 999px;
  border-width: 2px;
}

/* Icono 5 – Telefonía IP: forma tipo chip */
.service-grid .service-card:nth-child(5) .icon {
  border-radius: 10px 3px 10px 3px;
  border-width: 2px;
}

/* Si hubiera una 6ta tarjeta en el futuro, le damos otra variante */
.service-grid .service-card:nth-child(6) .icon {
  border-radius: 999px 999px 2px 2px;
  border-width: 2px;
}


.footer-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.5rem;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  margin-bottom: 0.7rem;
  font-size: 1rem;
  color: #ffffff;
}

.footer-links li a {
  opacity: 0.85;
}

.footer-links li a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  font-size: 1.1rem;
  color: #fff;
  transition: 0.25s;
}

.social-icon:hover {
  background: #e50914;
  transform: translateY(-3px);
}

/* responsive */
@media(max-width:980px){
  .footer-inner{
    grid-template-columns: repeat(2,1fr);
  }
}
@media(max-width:640px){
  .footer-inner{
    grid-template-columns: 1fr;
  }
}


/* ==== ANIMACIONES FOOTER – NO BORRAR NADA, SOLO PEGAR ABAJO ==== */

/* Fondo con glow suave en movimiento */
.footer {
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(229, 9, 20, 0.22), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(37, 99, 235, 0.26), transparent 50%);
  opacity: 0.6;
  filter: blur(10px);
  animation: footerGlow 16s linear infinite;
  z-index: 0;
}

/* Aseguramos que el contenido quede encima del glow */
.footer-inner,
.footer-bottom {
  position: relative;
  z-index: 1;
}

/* Entrada suave de columnas (fade + slide up) */
.footer-col {
  opacity: 0;
  transform: translateY(10px);
  animation: footerFadeUp 0.7s ease-out forwards;
}

/* Pequeños delays en cada columna para efecto escalonado */
.footer-col:nth-child(1) { animation-delay: 0.05s; }
.footer-col:nth-child(2) { animation-delay: 0.15s; }
.footer-col:nth-child(3) { animation-delay: 0.25s; }
.footer-col:nth-child(4) { animation-delay: 0.35s; }
.footer-col:nth-child(5) { animation-delay: 0.45s; }

/* Animación glow del fondo */
@keyframes footerGlow {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-4%, 3%, 0) scale(1.05); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

/* Animación entrada columnas */
@keyframes footerFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Subrayado animado en enlaces del footer */
.footer-links a {
  position: relative;
  display: inline-block;
  transition: color 0.25s ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #38bdf8, #e50914);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-links a:hover::after {
  width: 100%;
}

/* Social icons más elegantes */
.social-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 50%;
  font-size: 1rem;
  color: #e5e7eb;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.4);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.social-icon:hover {
  background: linear-gradient(135deg, #2563eb, #e50914);
  border-color: rgba(248, 250, 252, 0.8);
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 0 0 1px rgba(248, 250, 252, 0.25),
    0 18px 40px rgba(0, 0, 0, 0.85);
}


/* ===== Redes sociales – Animación PRO ===== */

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 1rem;
}

.social-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 6px 16px rgba(0,0,0,0.45);
  transition: 
    transform .25s ease,
    box-shadow .3s ease,
    background .25s ease,
    color .25s ease;
}

.social-icon svg {
  width: 21px;
  height: 21px;
  transition: transform .3s ease;
}

/* Hover premium */
.social-icon:hover {
  transform: translateY(-6px) scale(1.09);
  background: linear-gradient(145deg, #2563eb, #e50914);
  border-color: rgba(255,255,255,0.7);
  box-shadow:
    0 0 20px rgba(37, 99, 235, 0.55),
    0 0 30px rgba(229, 9, 20, 0.45);
  color: #fff;
}

.social-icon:hover svg {
  transform: scale(1.18);
}





/* ============================================
   PARTNERS TECNOLÓGICOS – COMPACTNETWORK
   ============================================ */

.partners-section {
  background: radial-gradient(circle at 0% 0%, #1d4ed8 0, #020617 60%, #000814 100%);
  color: #f9fafb;
  padding: 80px 0 90px;
}

.partners-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.partners-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.55);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e50914;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.9);
}

.partners-title {
  margin: 1.4rem 0 0.6rem;
  font-size: 2.1rem;
  line-height: 1.25;
}

.partners-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #cbd5f5;
}

/* Contenedor tipo “barra” de logos */
.partners-strip {
  margin: 2.5rem auto 1.6rem;
  max-width: 1200px;
  padding: 1.4rem 2.3rem;
  border-radius: 28px;
  background: radial-gradient(circle at 0% 0%, #0f172a 0, #020617 60%);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.1rem;
}

/* Pastillas de marca */
.partner-pill {
  position: relative;
  flex: 1 1 140px;
  min-width: 130px;
  text-align: center;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: #e5f0ff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: radial-gradient(circle at 50% 0%, rgba(148, 163, 184, 0.22), rgba(15, 23, 42, 0.95));
  overflow: hidden;
  cursor: default;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    background 0.25s ease;
}

/* Brillo interno animado */
.partner-pill::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0% 0%, rgba(250, 250, 255, 0.28), transparent 55%);
  opacity: 0;
  transform: translate3d(-30%, -30%, 0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Efecto hover / glow */
.partner-pill:hover {
  transform: translateY(-6px);
  border-color: rgba(248, 250, 252, 0.95);
  color: #ffffff;
  background: radial-gradient(circle at 50% 0%, rgba(239, 246, 255, 0.28), #020617);
  box-shadow:
    0 0 30px rgba(56, 189, 248, 0.75),
    0 0 50px rgba(37, 99, 235, 0.7);
}

.partner-pill:hover::before {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Pulso suave automático (sin ser exagerado) */
@keyframes partnerGlow {
  0%   { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6); }
  50%  { box-shadow: 0 0 26px rgba(56, 189, 248, 0.65); }
  100% { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6); }
}

/* Aplico el pulso a algunas marcas para dar vida */
.partner-pill:nth-child(2),
.partner-pill:nth-child(4),
.partner-pill:nth-child(6) {
  animation: partnerGlow 4.5s ease-in-out infinite;
}

/* Texto inferior */
.partners-caption {
  margin: 1.8rem auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 960px) {
  .partners-title {
    font-size: 1.7rem;
  }

  .partners-strip {
    padding: 1.4rem 1.4rem;
  }
}

@media (max-width: 720px) {
  .partners-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .partner-pill {
    flex: 1 1 auto;
  }
}


/* ...aquí termina tu CSS anterior con su } de cierre... */


/* ============================================
   PARTNERS TECNOLÓGICOS – COMPACTNETWORK
   ============================================ */

.partners-section {
  background: radial-gradient(circle at 0% 0%, #1d4ed8 0, #020617 60%, #000814 100%);
  color: #f9fafb;
  padding: 80px 0 90px;
}





/* ========= PARTNERS TECNOLÓGICOS ========= */

.section-partners {
  background: radial-gradient(circle at top left, #004e9c 0%, #00152f 45%, #000814 100%);
  color: #ffffff;
  padding-top: 4rem;
  padding-bottom: 4.5rem;
}

.partners-inner {
  text-align: center;
  max-width: 1100px;
}

.badge-partners {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 1.2rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.3);
  color: #f5f5f5;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.5);
}

.badge-partners::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e50914;
  margin-right: 0.5rem;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.9);
}

.section-partners h2 {
  margin-top: 1.3rem;
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.section-partners p {
  max-width: 780px;
  margin: 0 auto;
  color: #d9e2ff;
}

/* Contenedor de chips de marcas */
.partners-brands {
  margin-top: 2.8rem;
  margin-bottom: 2.1rem;
  padding: 1.8rem 2.2rem;
  border-radius: 24px;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.65));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Cada marca */
.partner-chip {
  min-width: 130px;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(9, 32, 63, 0.9), rgba(27, 72, 139, 0.95));
  box-shadow:
    0 0 15px rgba(0, 0, 0, 0.6),
    0 0 18px rgba(0, 123, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: default;
  /* Animación base */
  animation: partnerGlow 3.2s ease-in-out infinite;
}

/* Pequeña variación de tiempos para cada marca */
.partner-chip:nth-child(2) {
  animation-delay: 0.3s;
}
.partner-chip:nth-child(3) {
  animation-delay: 0.6s;
}
.partner-chip:nth-child(4) {
  animation-delay: 0.9s;
}
.partner-chip:nth-child(5) {
  animation-delay: 1.2s;
}
.partner-chip:nth-child(6) {
  animation-delay: 1.5s;
}

/* Efecto de brillo en movimiento dentro del chip */
.partner-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.14) 40%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Hover: más glow y barrido de luz */
.partner-chip:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 0 25px rgba(0, 0, 0, 0.9),
    0 0 35px rgba(0, 174, 255, 0.65);
}

.partner-chip:hover::after {
  opacity: 1;
  animation: partnerShine 1.5s ease-out;
}

.partners-footnote {
  font-size: 0.9rem;
  color: #b8c5ff;
}

/* -------- Animaciones -------- */

@keyframes partnerGlow {
  0% {
    box-shadow:
      0 0 15px rgba(0, 0, 0, 0.6),
      0 0 18px rgba(0, 123, 255, 0.25);
    transform: translateY(0);
  }
  50% {
    box-shadow:
      0 0 20px rgba(0, 0, 0, 0.9),
      0 0 28px rgba(0, 184, 255, 0.6);
    transform: translateY(-2px);
  }
  100% {
    box-shadow:
      0 0 15px rgba(0, 0, 0, 0.6),
      0 0 18px rgba(0, 123, 255, 0.25);
    transform: translateY(0);
  }
}

@keyframes partnerShine {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .partners-brands {
    padding: 1.4rem 1.2rem;
    gap: 0.8rem;
  }

  .partner-chip {
    min-width: 46%;
    font-size: 0.8rem;
    padding: 0.75rem 1.1rem;
  }
}




