/**
 * SIETI - Estilos Corporativos Principales
 */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #020617;
  color: #f8fafc;
  margin: 0;
  overflow-x: hidden;
}

/* --- FALLBACKS TAILWIND --- */
.text-slate-900 { color: #0f172a !important; }
.text-slate-950 { color: #020617 !important; }
.bg-slate-950 { background-color: #020617 !important; }
.bg-slate-950\/50 { background-color: rgba(2, 6, 23, 0.5) !important; }
.bg-slate-950\/60 { background-color: rgba(2, 6, 23, 0.6) !important; }
.bg-slate-950\/70 { background-color: rgba(2, 6, 23, 0.7) !important; }
.bg-slate-950\/80 { background-color: rgba(2, 6, 23, 0.8) !important; }
.bg-slate-950\/90 { background-color: rgba(2, 6, 23, 0.9) !important; }
.bg-cyan-500 { background-color: #06b6d4 !important; }
.bg-cyan-600 { background-color: #0891b2 !important; }
.hover\:bg-cyan-400:hover { background-color: #22d3ee !important; }
.hover\:bg-cyan-500:hover { background-color: #06b6d4 !important; }

/* --- ANIMACIONES DE IMÁGENES DINÁMICAS --- */
@keyframes heroTechFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.25);
  }
  50% {
    transform: translateY(-14px) rotate(0.8deg);
    box-shadow: 0 28px 50px rgba(0, 212, 255, 0.45);
  }
}

@keyframes auraPulse {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.img-dynamic-hero {
  animation: heroTechFloat 5s ease-in-out infinite;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease, border-color 0.5s ease;
  border: 1px solid rgba(0, 212, 255, 0.4) !important;
}

.img-dynamic-hero:hover {
  transform: translateY(-18px) scale(1.03) !important;
  box-shadow: 0 35px 70px rgba(0, 212, 255, 0.6) !important;
  border-color: #00d4ff !important;
}

.hero-aura {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.35) 0%, rgba(59, 130, 246, 0.15) 55%, transparent 75%);
  border-radius: 3.5rem;
  filter: blur(25px);
  z-index: 0;
  animation: auraPulse 4s ease-in-out infinite;
  pointer-events: none;
}

/* --- HERO GRADIENTE & TEXTO DEGRADADO --- */
.text-tech-gradient {
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: #22d3ee;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  display: inline;
}

.hero-gradient {
  background: radial-gradient(circle at 10% 20%, #0f172a 0%, #020617 100%);
}

/* --- NAVBAR & UI --- */
.nav-sieti {
  display: flex;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 1.2rem 0;
}

.nav-active {
  padding: 0.6rem 0;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.logo-box {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform-style: preserve-3d;
  transition: all 0.3s ease;
}

.logo-img {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
  transform: translateZ(30px);
}

.btn-soporte {
  background: linear-gradient(135deg, #00d4ff 0%, #0076ff 100%);
  color: #020617 !important;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  font-weight: 900;
  font-size: 0.7rem;
  text-transform: uppercase;
}

/* --- BADGES DE CONFIANZA EN HERO --- */
.hero-trust-badge {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-trust-badge:hover {
  transform: translateY(-3px) scale(1.02);
}

/* --- BOTONES DE FILTRADO DE PORTAFOLIO --- */
.portfolio-filter-btn {
  background: rgba(15, 23, 42, 0.85);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.portfolio-filter-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  color: #ffffff;
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.15);
}

.portfolio-filter-btn.active {
  background: linear-gradient(135deg, #00d4ff 0%, #0076ff 100%) !important;
  color: #020617 !important;
  border-color: transparent !important;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
  transform: translateY(-1px);
}

/* --- CARDS SERVICIOS --- */
.service-card {
  position: relative;
  height: 340px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  cursor: pointer;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.3);
}

.service-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, #020617 30%, transparent);
}

.service-card:hover img {
  transform: scale(1.1);
  filter: brightness(0.5);
}

/* --- CARRUSEL MARCAS (LIMITADO) --- */
.slider-container {
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(2, 6, 23, 0.3);
}

.slider {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  border-radius: 1rem;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.slide-track {
  display: flex;
  width: 3240px;
  animation: scroll 40s linear infinite;
}

.slide {
  width: 180px;
  height: 75px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.slide img {
  max-width: 130px;
  max-height: 38px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.4;
  filter: grayscale(1);
  transition: all 0.3s ease;
}

.slide img:hover {
  opacity: 1;
  filter: grayscale(0) drop-shadow(0 0 10px rgba(34, 211, 238, 0.3));
  transform: scale(1.1);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-1620px);
  }
}

/* --- MODAL Y MENÚ ANDROID --- */
#modal-frame {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50000;
  background: rgba(2, 6, 23, 0.98);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

#modal-frame.active {
  display: flex;
}

#modal-descargas {
  z-index: 99999 !important;
  background-color: rgba(2, 6, 23, 0.88) !important;
}

.modal-descarga-card {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.modal-descarga-card:hover {
  border-color: #00d4ff;
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.25);
}

#mobile-menu {
  background-color: #020617 !important;
}

/* --- ANIMACIÓN FLOTANTE E ILUMINACIÓN HERO IMAGE --- */
.hero-img-box {
  position: relative;
  display: inline-block;
  perspective: 1000px;
}

.hero-img {
  height: 20rem; /* Tamaño reducido de h-96 a 20rem para balance perfecto */
  width: auto;
  max-width: 100%;
  border-radius: 2rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.8), 0 0 30px rgba(0, 212, 255, 0.25);
  animation: heroFloat 6s ease-in-out infinite;
  transition: all 0.5s ease;
}

.hero-img:hover {
  transform: scale(1.03) rotateY(-4deg) rotateX(2deg);
  border-color: rgba(0, 212, 255, 0.7);
  box-shadow: 0 25px 50px rgba(2, 6, 23, 0.9), 0 0 45px rgba(0, 212, 255, 0.5);
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.8), 0 0 30px rgba(0, 212, 255, 0.25);
  }
  50% {
    transform: translateY(-14px) rotate(1deg);
    box-shadow: 0 30px 50px rgba(2, 6, 23, 0.9), 0 0 45px rgba(0, 212, 255, 0.45);
  }
}

/* --- TARJETA DE CONTACTO ELEGANTE Y FORMULARIO --- */
.contact-card-box {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(2, 6, 23, 0.98) 100%);
  border: 1px solid rgba(0, 212, 255, 0.25);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.9), 0 0 35px rgba(0, 212, 255, 0.15);
  border-radius: 2.5rem;
  position: relative;
  overflow: hidden;
}

.contact-card-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #00d4ff, #3b82f6, #00d4ff);
}

.contact-info-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.contact-info-pill:hover {
  background: rgba(0, 212, 255, 0.05);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateX(4px);
}

.contact-icon-box {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d4ff;
  flex-shrink: 0;
}

.form-input-styled {
  width: 100%;
  background: rgba(2, 6, 23, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 1rem 1.25rem !important;
  border-radius: 0.85rem !important;
  color: #ffffff !important;
  outline: none !important;
  transition: all 0.3s ease !important;
  font-size: 0.9rem;
}

.form-input-styled:focus {
  border-color: #00d4ff !important;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.35) !important;
  background: rgba(2, 6, 23, 0.95) !important;
}

.btn-submit-contact {
  width: 100%;
  background: linear-gradient(135deg, #00d4ff 0%, #0076ff 100%);
  color: #020617 !important;
  font-weight: 900;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 1.1rem 1.5rem;
  border-radius: 0.85rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.35);
}

.btn-submit-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.55);
}

/* --- MODAL HIGH-TECH GLASSMORPHISM --- */
.modal-glass-container {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96) 0%, rgba(2, 6, 23, 0.99) 100%);
  border: 1px solid rgba(0, 212, 255, 0.35);
  box-shadow: 0 25px 60px rgba(2, 6, 23, 0.95), 0 0 45px rgba(0, 212, 255, 0.25);
  border-radius: 2rem;
  position: relative;
  overflow: hidden;
}

.modal-header-banner {
  position: relative;
  height: 12rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.modal-header-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #020617 15%, rgba(2, 6, 23, 0.6) 100%);
}

.tech-spec-pill {
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #e2e8f0;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.tech-spec-pill:hover {
  background: rgba(0, 212, 255, 0.06);
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateX(3px);
}

/* --- BADGES DE CATEGORÍA DE SERVICIOS --- */
.badge-cableado { background: rgba(0, 212, 255, 0.15); color: #00d4ff; border: 1px solid rgba(0, 212, 255, 0.4); }
.badge-voip { background: rgba(129, 140, 248, 0.15); color: #818cf8; border: 1px solid rgba(129, 140, 248, 0.4); }
.badge-cctv { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-ciberseguridad { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-hosting { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.4); }
.badge-soporte { background: rgba(34, 211, 238, 0.15); color: #22d3ee; border: 1px solid rgba(34, 211, 238, 0.4); }

.btn-modal-cta {
  background: linear-gradient(135deg, #00d4ff 0%, #0076ff 100%);
  color: #020617 !important;
  font-weight: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.85rem 1.6rem;
  border-radius: 0.85rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.35);
}

.btn-modal-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.6);
}
