/* ==========================================================================
   AZ COMUNICACIONES — DESIGN SYSTEM & STYLES
   Dominio: azcomunicaciones.com
   Identidad: 90% Azul Oscuro Corporativo (#030C1B, #0A192F) + Blanco (#FFFFFF)
   Acentos: Azul Eléctrico (#0066FF, #00D2FF)
   ========================================================================== */

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

:root {
  /* Paleta Corporativa Principal (90%) */
  --az-bg-dark: #030c1b;
  --az-bg-navy: #07152e;
  --az-bg-slate: #0a192f;
  --az-bg-card: rgba(10, 25, 47, 0.7);
  --az-bg-card-hover: rgba(14, 36, 66, 0.85);
  
  --az-text-white: #ffffff;
  --az-text-light: #f8fafc;
  --az-text-muted: #94a3b8;
  --az-text-dim: #64748b;
  
  /* Acentos y Variaciones de Azul (10%) */
  --az-blue-primary: #0066ff;
  --az-blue-bright: #2563eb;
  --az-blue-hover: #1d4ed8;
  --az-blue-cyan: #00d2ff;
  --az-blue-glow: rgba(0, 102, 255, 0.25);
  --az-cyan-glow: rgba(0, 210, 255, 0.18);
  
  /* Bordes y Líneas */
  --az-border-subtle: rgba(255, 255, 255, 0.08);
  --az-border-active: rgba(0, 102, 255, 0.4);
  --az-border-light: #e2e8f0;
  
  /* Tipografías */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--az-text-light);
  background-color: var(--az-bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background-color: var(--az-bg-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--az-text-white);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Background Grids & Ambient Glow */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.bg-dot-pattern {
  background-size: 24px 24px;
  background-image: radial-gradient(rgba(0, 102, 255, 0.15) 1px, transparent 1px);
}

.glow-ambient {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--az-blue-glow) 0%, rgba(3, 12, 27, 0) 70%);
  pointer-events: none;
  filter: blur(60px);
  z-index: 0;
}

.glow-ambient-cyan {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--az-cyan-glow) 0%, rgba(3, 12, 27, 0) 70%);
  pointer-events: none;
  filter: blur(50px);
  z-index: 0;
}

/* Glassmorphism Cards */
.az-card {
  background: var(--az-bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--az-border-subtle);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.az-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.az-card:hover {
  background: var(--az-bg-card-hover);
  border-color: var(--az-border-active);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 102, 255, 0.15);
}

.az-card-white {
  background: #ffffff;
  color: var(--az-bg-dark);
  border-radius: 16px;
  border: 1px solid var(--az-border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.az-card-white:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.08);
}

/* Buttons and CTAs */
.az-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--az-blue-primary), var(--az-blue-bright));
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.35);
  transition: all 0.25s ease;
  cursor: pointer;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.az-btn-primary:hover {
  background: linear-gradient(135deg, var(--az-blue-bright), #3b82f6);
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.55);
  transform: translateY(-2px);
}

.az-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  cursor: pointer;
}

.az-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.az-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25D366;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transition: all 0.25s ease;
  cursor: pointer;
}

.az-btn-whatsapp:hover {
  background: #22bf5b;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
  transform: translateY(-2px);
}

.az-btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #ffffff;
  color: var(--az-bg-dark) !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  cursor: pointer;
  text-transform: uppercase;
}

.az-btn-white:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 62px;
  height: 62px;
  background: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-float .pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.whatsapp-tooltip {
  position: absolute;
  right: 74px;
  background: var(--az-bg-navy);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.25s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Sticky Navigation */
.az-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(3, 12, 27, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.az-navbar.scrolled {
  background: rgba(3, 12, 27, 0.96);
  border-bottom-color: rgba(0, 102, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Section Dividers & Accents */
.gradient-text-blue {
  background: linear-gradient(135deg, #ffffff 40%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #00d2ff 0%, #0066ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(0, 102, 255, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(0, 102, 255, 0.3);
}

.badge-lab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Blue cinematic photo treatment filter */
.photo-blue-tint {
  filter: contrast(108%) brightness(95%) saturate(90%) hue-rotate(5deg);
  position: relative;
}

.photo-blue-overlay {
  position: relative;
}

.photo-blue-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 12, 27, 0.1) 0%, rgba(3, 12, 27, 0.85) 100%);
  pointer-events: none;
}

/* Form Styles */
.az-input {
  width: 100%;
  background: rgba(10, 25, 47, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.85rem 1.15rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: all 0.2s ease;
  outline: none;
}

.az-input:focus {
  border-color: var(--az-blue-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.25);
  background: rgba(14, 36, 66, 0.95);
}

.az-input::placeholder {
  color: #64748b;
}

/* Modal Overlay */
.az-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(3, 12, 27, 0.85);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.az-modal.active {
  display: flex;
}

/* Process Timeline / Step Indicator */
.step-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.07);
  transition: all 0.3s ease;
}

.az-card:hover .step-number {
  color: rgba(0, 102, 255, 0.35);
  transform: scale(1.05);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--az-bg-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--az-blue-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .glow-ambient {
    width: 280px;
    height: 280px;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
}
