@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;500;700&family=Montserrat:wght@700;900&display=swap');

:root {
  --primary: #0077c2;
  --secondary: #003366;
  --orange: #f26522;
  --bg-dark: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.7);
  --text-main: #0b1e42;
  --text-muted: #5a6b85;
  --glass-border: rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(58, 123, 213, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(242, 101, 34, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 1rem 5%;
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

nav.scrolled .nav-logo {
  height: 60px;
  padding: 5px 15px;
}

.brand {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 90px;
  width: auto;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-logo:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 1);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
  display: block;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s ease;
}

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

.nav-links a:hover {
  color: var(--orange);
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  background: var(--orange);
  border: none;
  border-radius: 30px;
  color: white !important;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  line-height: 1;
  height: fit-content;
}

.btn-contact:hover {
  transform: translateY(-2px);
  background: var(--secondary);
  box-shadow: 0 10px 20px rgba(0, 51, 102, 0.25);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 5% 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  /* El canvas de Vanta.js tomará este espacio */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Gradiente más suave para no tapar el efecto 3D */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 100%);
  z-index: -1;
  pointer-events: none; /* Permite que el mouse interactúe con el fondo 3D */
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.hero-pretitle {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--orange);
  margin-bottom: 1rem;
  display: block;
}

.hero h1 {
  font-size: 4.8rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* About Section */
.about {
  padding: 6rem 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.about-content h2 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.about-content p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.mv-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mv-card:hover {
  transform: translateX(10px);
  box-shadow: -10px 10px 20px rgba(0,0,0,0.05);
  border-color: var(--orange);
}

.mv-card h3 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mv-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
}

/* Services Section (Dynamic Swiper) */
.services {
  padding: 5rem 0 4rem 5%;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-right: 5%;
}

.section-header h2 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

.services-swiper {
  width: 100%;
  padding-bottom: 4rem !important;
}

.swiper-slide {
  height: auto;
}

.service-card {
  height: 380px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease;
  cursor: grab;
  border: 1px solid var(--glass-border);
}

.service-card:active {
  cursor: grabbing;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--orange);
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  z-index: 0;
}

.service-card:hover .card-bg {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.05) 100%);
  z-index: 1;
  transition: background 0.4s ease;
}

.service-card:hover .card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.2) 100%);
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem 2rem;
  z-index: 2;
  transition: transform 0.4s ease;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--orange);
  text-shadow: 0 0 10px rgba(242, 101, 34, 0.3);
  transform: translateY(20px);
  opacity: 0.8;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  transform: translateY(0);
  opacity: 1;
}

.service-card h3 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.service-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-size: 0.95rem;
  opacity: 0.8;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.service-card:hover p {
  opacity: 1;
  transform: translateY(0);
  color: #ffffff;
}

.swiper-button-next, .swiper-button-prev {
  color: var(--orange) !important;
  background: rgba(255, 255, 255, 0.8);
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  backdrop-filter: blur(5px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.swiper-pagination-bullet {
  background: var(--text-muted) !important;
  opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
  background: var(--orange) !important;
  opacity: 1 !important;
}

/* Marcas Section */
.marcas {
  padding: 4rem 0;
  background: #ffffff; /* Fondo blanco para resaltar los logos reales */
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

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

.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

.marca-logo {
  height: 45px;
  margin: 0 4rem;
  vertical-align: middle;
  filter: grayscale(100%) opacity(0.7);
  transition: all 0.3s ease;
}

.marca-logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

.marca-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #333;
  margin: 0 4rem;
  vertical-align: middle;
  filter: grayscale(100%) opacity(0.7);
  transition: all 0.3s ease;
  display: inline-block;
}

.marca-text:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

.marca-text-custom {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  margin: 0 4rem;
  vertical-align: middle;
  filter: grayscale(100%) opacity(0.7);
  transition: all 0.3s ease;
  display: inline-block;
}

.marca-text-custom:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

.hikvision { color: #cc0000; letter-spacing: 1px; font-family: 'Inter', sans-serif; }
.dahua { color: #e60000; text-transform: lowercase; font-size: 2.8rem; font-weight: 800; font-family: 'Outfit', sans-serif; letter-spacing: -2px;}
.samsung { color: #1428a0; letter-spacing: 2px; }
.ubiquiti { color: #0559c9; letter-spacing: 2px; font-weight: 800; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } 
}

/* Clientes Section */
.clientes {
  padding: 6rem 5%;
  background: #ffffff;
}

.clientes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.cliente-box {
  background: #ffffff;
  border-radius: 16px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  filter: grayscale(100%) opacity(0.8);
  padding: 1rem;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cliente-box.lan-bg {
  background: #021a3a;
  filter: grayscale(100%) opacity(0.8);
}

.cliente-box.lan-bg:hover {
  filter: grayscale(0%) opacity(1);
}

.cliente-box:hover {
  filter: grayscale(0%) opacity(1);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Modern Typography Logos */
.logo-text-etb {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #0d47a1;
  letter-spacing: -2px;
}

.logo-text-decameron {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0b1e42;
  letter-spacing: 3px;
}

.logo-text-teleislas {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #0288d1;
  letter-spacing: 1px;
}

.logo-text-icbf {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: #212121;
}

.logo-text-colsanitas {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #01579b;
}

.logo-text-lan {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -1px;
}

.logo-text-policia {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1b5e20;
}

.logo-text-gobernacion {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.2;
}

/* Footer */
footer {
  background: #f8f9fa;
  padding: 6rem 5% 3rem;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col .brand {
  font-size: 2.2rem;
}

.footer-col h3 {
  color: var(--secondary);
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  font-weight: 900;
}

.footer-col p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  line-height: 2;
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.footer-col a:hover {
  color: var(--orange);
  transform: translateX(8px);
}

.footer-col i {
  color: var(--orange);
  margin-right: 12px;
  width: 20px;
  font-size: 1.2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 1rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0px 4px 15px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 25px rgba(37, 211, 102, 0.5);
  color: white;
}

.whatsapp-float i {
  font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 3.5rem; }
  .about { grid-template-columns: 1fr; gap: 3rem; }
  .services { padding-right: 5%; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .nav-links { display: none; }
  .section-header h2, .about-content h2 { font-size: 2.2rem; }
  .marquee-content span { font-size: 1.8rem; margin: 0 1rem; }
}
