:root {
  --primary: #0EA5A3;
  --primary-700: #0a7f7d;
  --dark: #0B1320;
  --surface: #0F172A;
  --muted: #9AA5B1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero */
.hero {
  background-color: #0B1320;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .55);
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, .45) 50%, rgba(0, 0, 0, .65));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* Botón primario */
.btn-primary {
  background-color: var(--brand);
  color: #fff;
  font-weight: 700;
  padding: .9rem 1.6rem;
  border-radius: .75rem;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 24px rgba(26, 104, 158, .28);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(26, 104, 158, .4);
  filter: brightness(1.05);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover::after {
  left: 100%;
}

/* Tarjetas */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(2, 8, 23, .08);
  border: 1px solid #e6eef7;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(2, 8, 23, .12);
}

.card-dark {
  background: #111B2F;
  color: #E5EAF1;
  border: 1px solid rgba(255, 255, 255, .06);
}


html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.muted {
  color: #64748b;
}

/* Imágenes uniformes */
.service-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.card:hover .service-img {
  transform: scale(1.03);
}

/* WhatsApp FAB */
.whatsapp-float-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  background: #25D366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
  transition: transform .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
}

/* Modal WhatsApp */
.whatsapp-chat-modal-content {
  background: #ece5dd;
  border-radius: 16px;
  width: 360px;
  max-width: 92vw;
  padding: 16px 16px 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
  position: relative;
  animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.whatsapp-chat-modal-content .modal-header {
  background: #075E54;
  color: #fff;
  margin: -16px -16px 12px;
  padding: 16px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whatsapp-chat-modal-content .profile-pic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff url('imagenes/Black & Blue Monoline Technology Logo_20240510_122756_0000.png') center/contain no-repeat;
  margin-right: .75rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-chat-modal-content .close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.whatsapp-chat-modal-content .close-btn:hover {
  opacity: 1;
}

/* Animations handled by AOS library */

/* Dark Theme Utilities (from desarrollo.html) */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  transition: all 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.text-gradient-premium {
  background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-grid {
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.bg-dark-theme {
  background-color: #0B1320;
  color: #fff;
}

/* Fix for logo white square - Grayscale to prevent orange color */
.logo-fix {
  filter: grayscale(1) invert(1);
  mix-blend-mode: screen;
}

.logo-integrated {
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  /* Slight darkening behind for contrast */
}

/* Global Hero Animation (Standardized) */
@keyframes hero-scroll {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 100% 0;
  }
}

.animate-hero-scroll {
  animation: hero-scroll 60s linear infinite;
}