@import url("https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap");

/*
+-----------------------------------------------
+*********** VARIABLES Y DISENO BASE ***********
+-----------------------------------------------
+*/

:root {
  /* Colores Principales */
  --primary-blue: #0056b3;
  --blue-dark: #0095ff92;
  --blue-light: #00c3ff92;
  --purple: #c76eff92;
  --white: #ffffff;
  --dark: #000000;

  /* Fondos y Grises */
  --bg-gray: #ffffff;
  --gray-light: #f8f9fa;
  --gray: #f1f5f9;
  --border-color: #f1f5f9;

  /* Colores de Marca */
  --panasonic: #001fd0;
  --grandstream: #0062f5;
  --hikvision: #ff0000;
  --dahua: #ff7300;
  --nitrotel: #3acc00;
  --ericsson: #000000;
  --panduit: #000000;

  /* Tipografia y Layout */
  --font-main: "Google Sans", sans-serif;
  --nav-height: 70px;
  --transition-fast: 0.3s ease-in-out;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
  --radius-xl: 15px;
  --radius-md: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--white); /* Fondo gris claro exterior */
  margin: 0;
  color: #333;
}

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

/*
+-----------------------------------------------
+*********** PRELOADER / LOADER ****************
+-----------------------------------------------
*/

#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition:
    opacity 0.5s ease,
    visibility 0.5s;
}

.loader-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-logo {
  width: 120px;
  height: auto;
  z-index: 10;
  animation: pulseLogo 1.5s ease-in-out infinite;
}

.loader-circle {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--nitrotel);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes pulseLogo {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

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

.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

/*
+-----------------------------------------------
+*********** HEADER Y NAVEGACION ***************
+-----------------------------------------------
+*/

.estatico {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  background-color: var(--white);
  width: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.top-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
}

.logo-inicio {
  display: flex;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
}

.logo-circle {
  width: 90px;
  height: 80px;
  background: url(../img/logointelsel.png) no-repeat center;
  background-size: contain;
  margin-right: 15px;
}

.brand-name h1 {
  color: var(--primary-blue);
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.brand-name p {
  font-size: 10px;
  color: #555;
  font-weight: bold;
}

.contact-area {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 25px;
}

.social-icons {
  display: flex;
  gap: 10px;
  flex-direction: column;
  align-items: center;
}

.icons-row {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 25px;
  transition: transform 0.2s ease-in-out;
}

.social-icons a:hover {
  transform: scale(1.2);
}
.fb {
  background-color: #3b5998;
}
.yt {
  background-color: #cc181e;
}
.ig {
  background: linear-gradient(to left top, #fa7e1e, #d62976, #962fbf);
}
.wa {
  background-color: #25d366;
}

.social-icons .company-email {
  font-size: 1.2rem;
  color: #000000;
  text-decoration: none;
  font-weight: 500;
}

.phone-number {
  color: var(--primary-blue);
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  gap: 10px;
}

/* Bottom Bar / Marquee */
.bottom-bar {
  background: linear-gradient(
    to right,
    var(--blue-light),
    var(--purple),
    var(--blue-dark)
  );
  height: 30px;
  position: relative;
  clip-path: polygon(3% 0%, 100% 0, 100% 100%, 0% 100%);
  display: flex;
  align-items: center;
  padding-left: 45px;
  overflow: hidden;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.scrolling-text {
  display: inline-block;
  padding-left: 100%;
  color: var(--dark);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: marquee-animation 25s linear infinite;
}

@keyframes marquee-animation {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-100%, 0);
  }
}

/* Navbar */
.navbar {
  background: var(--white);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 20px;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-link {
  padding: 0 20px;
  color: var(--dark);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-blue);
}

/* Mega Menu */
.has-mega {
  position: static;
}

.mega-box {
  position: absolute;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: var(--white);
  padding: 30px 0;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
}

.has-mega:hover .mega-box {
  opacity: 1;
  visibility: visible;
}

.mega-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  padding: 0 5%;
}

.mega-card {
  background: var(--gray);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.mega-card:hover {
  transform: translateY(-5px) scale(1.05);
}

.mega-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.mega-info {
  padding: 10px;
}
.mega-info p {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 5px;
  font-weight: bold;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--dark);
}

/*
+-----------------------------------------------
+*********** SECCIONES DE INICIO ***************
+-----------------------------------------------
+*/

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #001f3f 0%, #0056b3 100%);
  padding: 120px 20px;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1551434678-e076c223a692?q=80&w=2070")
      center/cover; /* Opcional si tienes un patron */
  opacity: 0.3;
}

.hero-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(90deg, var(--purple), #a855f7);
  color: var(--white);
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 20px rgba(168, 85, 247, 0.3);
  transition: var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(132, 0, 255, 0.4);
  background: linear-gradient(90deg, var(--purple), #931fff);
}

/* Brands Section */
.brands-section {
  background-color: var(--white);
  padding: 40px 20px;
  border-bottom: 1px solid var(--border-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.brands-label {
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
  font-weight: 700;
}

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  opacity: 0.7;
}

.brand-item {
  font-size: 1.5rem;
  font-weight: 900;
  color: #1e293b;
  transition: var(--transition-fast);
  cursor: default;
}

.brand-item:hover {
  opacity: 1;
  transform: scale(1.1);
  color: var(--primary-blue);
}

.panasonic:hover {
  color: var(--panasonic);
}

.grandstream:hover {
  color: var(--grandstream);
}

.hikvision:hover {
  color: var(--hikvision);
}

.dahua:hover {
  color: var(--dahua);
}

.nitrotel:hover {
  color: var(--nitrotel);
}
.ericsson:hover {
  color: var(--ericsson);
}
.panduit:hover {
  color: var(--panduit);
}

/* About Section */
.about-section {
  padding: 100px 20px;
  background-color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.section-tag {
  color: var(--purple);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: block;
}

.about-text h2 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 25px;
  line-height: 1.2;
}

.about-text p {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 30px;
}

.check-list {
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #1e293b;
  font-weight: 500;
}

.check-list i {
  color: var(--nitrotel);
  font-size: 1.3rem;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* Services Section */
.services-section {
  padding: 100px 20px;
  background-color: var(--white);
}

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

.section-header h2 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 15px;
}

.section-header p {
  color: #64748b;
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
  border: solid 2px var(--border-color);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 25px;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.service-card p {
  color: #64748b;
  line-height: 1.6;
}

/* Responsividad extra para estas secciones */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .about-text h2,
  .section-header h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 580px) {
  .hero-section {
    padding: 80px 20px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .about-text h2,
  .section-header h2 {
    font-size: 1.8rem;
  }
}

/*
+-----------------------------------------------
+*********** SECCION DE PRODUCTOS **************
+-----------------------------------------------
+*/

.productos-section {
  padding: 60px 20px;
  background-color: var(--white);
}

.productos-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 30px;
}

.productos-container-global {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.titulo-categoria {
  color: var(--primary-blue);
  border-left: 5px solid var(--purple);
  padding-left: 20px;
  margin-bottom: 30px;
  font-size: 1.6rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 1px;
}

.grid-productos,
.grid-productos-global {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

/* Tarjeta de Producto Premium */
.producto-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.producto-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-light);
}

.producto-img-container {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  border-bottom: 1px solid var(--border-color);
}

.producto-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition-slow);
}

.producto-card:hover .producto-img {
  transform: scale(1.1);
}

.card-header {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-light));
  color: white;
  padding: 10px 15px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1px;
}

.card-brand {
  /* Para compatibilidad con otras paginas */
  background-color: var(--primary-blue);
  color: white;
  padding: 8px 15px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
}

.card-body {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.modelo {
  font-weight: 800;
  color: var(--primary-blue);
  font-size: 0.95rem;
  margin-bottom: 15px;
  display: block;
}

.descripcion {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
}

/*
+-----------------------------------------------
+*********** FOOTER Y ELEMENTOS FINALES ********
+-----------------------------------------------
+*/

.color-linee {
  height: 5px;
  background: linear-gradient(90deg, var(--primary-blue), var(--blue-light));
  width: 100%;
}

.footer-seo {
  padding: 40px 20px;
  text-align: center;
  background-color: var(--gray-light);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}

.keywords-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.footer-divider {
  border: 0;
  border-top: 1px solid #ccc;
  margin: 30px 0;
}

.footer-divider-2 {
  margin: 10px 0;
  border-top: 1px solid #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  font-size: 1.2rem;
}

.contact-block i,
.contact-item i {
  color: var(--primary-blue);
  font-size: 1.6rem;
  margin-bottom: 15px;
  display: block;
}

.footer-bottom {
  margin-top: 40px;
  font-size: 0.8rem;
  color: #666;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

/* Botones Flotantes */
.whatsapp-float {
  position: fixed;
  bottom: 95px;
  right: 30px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: var(--transition-fast);
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

#btnScrollTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary-blue);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 99;
  transition: var(--transition-fast);
}

#btnScrollTop:hover {
  background-color: var(--purple);
  transform: scale(1.1);
}

/*
+-----------------------------------------------
+*********** MEDIA QUERIES GLOBALES ************
+-----------------------------------------------
+*/

/* Tablets y Laptops Pequenas */
@media (max-width: 992px) {
  .top-section {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    text-align: center;
  }

  .whatsapp-float {
    display: flex;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    font-size: 25px;
  }

  .logo-area {
    flex-direction: column;
  }
  .logo-circle {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .contact-area,
  .conten-descripcion,
  .phone-number {
    display: none;
  }

  .bottom-bar {
    clip-path: none;
    padding: 0;
    height: 35px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-list {
    position: absolute;
    top: var(--nav-height);
    left: -100%;
    flex-direction: column;
    background: var(--white);
    width: 100%;
    height: calc(100vh - var(--nav-height));
    transition: 0.4s;
    overflow-y: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-list.active {
    left: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--gray);
  }
  .nav-link {
    width: 100%;
    padding: 20px 30px;
    justify-content: space-between;
    font-size: 1rem;
  }

  .mega-box {
    position: static;
    opacity: 1;
    visibility: visible;
    display: none;
    background: var(--gray);
    box-shadow: none;
    padding: 0;
  }

  .mega-box.show-mobile {
    display: block;
  }

  .mega-container {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .mega-img {
    display: none;
  }
  .mega-info {
    padding: 15px 40px;
    border-bottom: 1px solid #e2e8f0;
  }

  .productos-container {
    grid-template-columns: 1fr;
  }
}

/* Celulares */
@media (max-width: 580px) {
  .brand-name h1 {
    font-size: 24px;
  }
  .grid-productos,
  .grid-productos-global {
    grid-template-columns: 1fr;
  }
  .producto-img-container {
    height: 240px;
  }

  .whatsapp-float {
    display: flex;
    bottom: 85px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 25px;
  }
  #btnScrollTop {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}
