/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  --brand: #e30613;
  --brand-dark: #b3050f;
  --brand-light: #ffebec;
  --brand-gradient: linear-gradient(135deg, #e30613 0%, #b3050f 100%);
  
  --dark-bg: #0d0f12;
  --dark-surface: #16191f;
  --dark-border: rgba(255, 255, 255, 0.08);
  --dark-input: rgba(255, 255, 255, 0.05);
  
  --light-bg: #f8fafc;
  --light-surface: #ffffff;
  --light-border: rgba(0, 0, 0, 0.06);
  
  --text-dark: #0f172a;
  --text-light: #f8fafc;
  --text-muted: #64748b;
  
  --font-primary: 'Poppins', sans-serif;
  --font-accent: 'Outfit', sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-premium: 0 30px 60px rgba(227, 6, 19, 0.15);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-accent {
  font-family: var(--font-accent);
}

section {
  scroll-margin-top: 85px;
  position: relative;
}

.py-6 {
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
}

.py-7 {
  padding-top: 8.5rem;
  padding-bottom: 8.5rem;
}

/* ==========================================================================
   TYPOGRAPHY & ACCENTS
   ========================================================================== */
.section-badge {
  font-family: var(--font-accent);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
}

.title-line {
  width: 50px;
  height: 4px;
  background: var(--brand-gradient);
  border-radius: 2px;
  margin-top: 1rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.fs-xs {
  font-size: 0.8rem;
}

.fs-xxs {
  font-size: 0.7rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-brand {
  background: var(--brand-gradient);
  border: none;
  color: #ffffff;
  font-weight: 600;
  font-family: var(--font-accent);
  border-radius: 8px;
  padding: 0.75rem 1.8rem;
  transition: var(--transition-smooth);
}

.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(227, 6, 19, 0.4);
  color: #ffffff;
}

.btn-brand.btn-sm {
  padding: 0.45rem 1.25rem;
  font-size: 0.85rem;
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
  font-family: var(--font-accent);
  border-radius: 8px;
  padding: 0.75rem 1.8rem;
  transition: var(--transition-smooth);
}

.btn-outline-light:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--text-dark);
  transform: translateY(-2px);
}

.btn-outline-light.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Hover effects */
.hover-pulse:hover {
  animation: pulse-subtle 1.5s infinite;
}

@keyframes pulse-subtle {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   NAVIGATION BAR (Transparent to Glassmorphism)
   ========================================================================== */
.navbar {
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.navbar-brand img,
.logo-shield,
.footer-logo {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-font-smoothing: antialiased;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  transition: var(--transition-smooth);
}

.navbar:not(.navbar-scrolled) .navbar-brand img {
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.navbar .nav-link {
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8) !important;
  margin: 0 0.5rem;
  padding: 0.35rem 0.5rem !important;
  position: relative;
  transition: var(--transition-fast);
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--brand);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

.navbar .nav-link:hover {
  color: #ffffff !important;
}

.navbar .nav-link:hover::after {
  width: 100%;
}

/* Scrolled state applied by JavaScript */
.navbar.navbar-scrolled {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--light-border);
  box-shadow: var(--shadow-sm);
}

.navbar.navbar-scrolled .nav-link {
  color: var(--text-dark) !important;
}

.navbar.navbar-scrolled .nav-link:hover {
  color: var(--brand) !important;
}

.navbar.navbar-scrolled .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   PARALLAX ENGINE STYLES
   ========================================================================== */
.parallax-hero,
.parallax-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  z-index: 1;
}

.parallax-hero {
  min-height: 100vh;
  padding-top: 7rem;
}

.parallax-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110%; /* Extra height to accommodate scroll translations */
  z-index: -1;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

/* CSS Fallback for Parallax if JS is disabled or on mobile devices */
@media (max-width: 991.98px) {
  .parallax-bg {
    background-attachment: scroll !important;
  }
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(13, 15, 18, 0.95) 0%,
    rgba(13, 15, 18, 0.85) 40%,
    rgba(13, 15, 18, 0.5) 70%,
    rgba(13, 15, 18, 0.25) 100%
  );
}

.parallax-overlay.darkened {
  background: rgba(13, 15, 18, 0.75);
}

/* Hero Typography */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(227, 6, 19, 0.12);
  border: 1px solid rgba(227, 6, 19, 0.25);
  color: #ff525c;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-family: var(--font-accent);
  font-weight: 600;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero-highlight {
  color: var(--brand);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  max-width: 550px;
}

.shield-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 500px;
}

.shield-mark img {
  height: 32px;
  flex-shrink: 0;
}

/* ==========================================================================
   GLASSMORPHISM FORM (Cotización)
   ========================================================================== */
.quote-bg-wrapper {
  perspective: 1000px;
}

.glass-card {
  background: rgba(22, 25, 31, 0.75) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow-lg) !important;
  overflow: hidden;
}

.quote-card-header {
  background: var(--brand-gradient);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-card-header span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.85;
}

.quote-card-header strong {
  display: block;
  font-size: 1.15rem;
  font-family: var(--font-accent);
  font-weight: 700;
  margin-top: 0.2rem;
}

.bg-dark-input {
  background-color: var(--dark-input) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.bg-dark-input:focus {
  background-color: rgba(22, 25, 31, 0.9) !important;
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 0.25rem rgba(227, 6, 19, 0.25) !important;
}

.input-group-text.bg-dark-input {
  border-right: none !important;
}

.form-control.bg-dark-input, 
.form-select.bg-dark-input {
  border-left: none !important;
}

/* Custom placeholder colors for dark input */
.form-control.bg-dark-input::placeholder {
  color: rgba(255, 255, 255, 0.3) !important;
}

/* Fix option background for dark select in Windows */
.form-select.bg-dark-input option {
  background-color: var(--dark-surface);
  color: #fff;
}

.field-caption {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   SERVICES SECTION (Cards with borders & hover states)
   ========================================================================== */
.service-card {
  position: relative;
  height: 100%;
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: 16px;
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  z-index: 1;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(227, 6, 19, 0.15);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(227, 6, 19, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.service-icon i {
  font-size: 1.6rem;
  color: var(--brand);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: var(--brand);
}

.service-card:hover .service-icon i {
  color: #ffffff;
  transform: rotateY(180deg);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.55;
}

/* Active red border animation under card */
.card-hover-border {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 4px;
  background: var(--brand-gradient);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
  z-index: 2;
}

.service-card:hover .card-hover-border {
  width: 100%;
}

/* Highlighted (Smart Vision) card styling - Premium Dark Theme */
.service-card.highlighted {
  border: 1px solid rgba(227, 6, 19, 0.3) !important;
  background: linear-gradient(135deg, #16191f 0%, #0a0c0f 100%) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.service-card.highlighted h3 {
  color: #ffffff !important;
}

.service-card.highlighted p {
  color: rgba(255, 255, 255, 0.6) !important;
}

.service-card.highlighted .service-icon {
  color: var(--brand) !important;
}


.service-card.highlighted::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-gradient);
}

.premium-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(227, 6, 19, 0.1);
  color: var(--brand);
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  font-family: var(--font-accent);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   PARALLAX SEPARATOR BANNER
   ========================================================================== */
.parallax-banner {
  min-height: 350px;
}

.banner-title {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.animate-pulse {
  animation: heart-beat 3s infinite;
}

@keyframes heart-beat {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

/* ==========================================================================
   INNOVACION SECTION (IA Elements)
   ========================================================================== */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(227, 6, 19, 0.06);
  border: 1px solid rgba(227, 6, 19, 0.12);
  color: var(--brand);
  padding: 0.35rem 0.8rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-family: var(--font-accent);
  font-weight: 600;
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(227, 6, 19, 0.06);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.feature-card-premium {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.feature-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card-premium h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.feature-card-premium p {
  font-size: 0.88rem;
  line-height: 1.5;
}

.fs-sm {
  font-size: 0.88rem;
}

/* ==========================================================================
   NOSOTROS SECTION
   ========================================================================== */
.nosotros-card {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.nosotros-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.nosotros-card.highlight-border {
  border-color: rgba(227, 6, 19, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, rgba(227, 6, 19, 0.01) 100%);
}

.nosotros-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.nosotros-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.nosotros-card .body-copy {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.values-checked-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.values-checked-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.values-checked-list li i {
  font-size: 1.1rem;
}

/* ==========================================================================
   MESSAGES FLOATING TOASTS
   ========================================================================== */
.messages-toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 9999;
  width: 380px;
  max-width: calc(100vw - 40px);
}

.alert-success-custom {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 4px solid #198754 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  color: #0f5132 !important;
  font-size: 0.9rem;
  border-radius: 8px;
}

.alert-danger-custom {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 4px solid var(--brand) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  color: var(--brand-dark) !important;
  font-size: 0.9rem;
  border-radius: 8px;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer-premium {
  background-color: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

.footer-logo {
  height: 32px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
  text-decoration: none;
}

.social-icons a:hover {
  background: var(--brand);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.footer-contact a {
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-contact a:hover {
  color: var(--brand) !important;
}

/* ==========================================================================
   ENTRANCE SCROLL REVEAL ANIMATIONS (Intersection Observer)
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Reveal types */
.scroll-reveal.fade-up {
  transform: translateY(40px);
}

.scroll-reveal.fade-down {
  transform: translateY(-40px);
}

.scroll-reveal.fade-left {
  transform: translateX(-45px);
}

.scroll-reveal.fade-right {
  transform: translateX(45px);
}

/* Triggered State via JS */
.scroll-reveal.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* Dynamic delays based on style variables */
.scroll-reveal[style*="--delay: 1"] { transition-delay: 0.1s; }
.scroll-reveal[style*="--delay: 2"] { transition-delay: 0.2s; }
.scroll-reveal[style*="--delay: 3"] { transition-delay: 0.3s; }
.scroll-reveal[style*="--delay: 4"] { transition-delay: 0.4s; }
.scroll-reveal[style*="--delay: 5"] { transition-delay: 0.5s; }

/* ==========================================================================
   WHATSAPP BUSINESS FLOATING BUTTON
   ========================================================================== */
.whatsapp-float-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 99px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  z-index: 99999;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.3s ease, 
              opacity 0.5s ease;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
}

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

.whatsapp-float-btn span {
  white-space: nowrap;
}

.whatsapp-float-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.whatsapp-float-btn:hover {
  background-color: #20ba5a;
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Pulse Animation for WhatsApp Button */
.whatsapp-float-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 99px;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  animation: whatsapp-pulse 2s infinite;
  z-index: -1;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ==========================================================================
   PORTAL CLIENTE REDESIGN (Personas/Empresas cards)
   ========================================================================== */
.portal-card {
  transition: var(--transition-smooth);
  height: 100%;
}

.portal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  border-color: rgba(227, 6, 19, 0.3) !important;
}

.portal-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(227, 6, 19, 0.1);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.max-width-600 {
  max-width: 600px;
}

/* ==========================================================================
   ACCESO CLIENTE MODAL CARDS
   ========================================================================== */
.access-choice-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: var(--transition-smooth);
  height: 100%;
}

.access-choice-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(227, 6, 19, 0.25);
  transform: translateY(-4px);
}

.access-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(227, 6, 19, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

/* ==========================================================================
   TOP BAR / HEADER DE SEGMENTACIÓN
   ========================================================================== */
.top-header {
  height: 38px;
  background-color: #0b0c10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.segment-switcher {
  display: flex;
}

.segment-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none !important;
  padding: 0 1.25rem;
  height: 38px;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-fast);
}

.segment-tab:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.03);
}

.segment-tab.active {
  color: #ffffff !important;
  background-color: rgba(227, 6, 19, 0.12);
  border-bottom: 2px solid var(--brand);
}

.top-contact {
  font-weight: 500;
}

.top-contact span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.monitoring-badge {
  background-color: rgba(227, 6, 19, 0.1);
  color: #ff525c;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px !important;
  border: 1px solid rgba(227, 6, 19, 0.18);
}

.monitoring-badge .dot {
  width: 6px;
  height: 6px;
  background-color: var(--brand);
  border-radius: 50%;
  animation: beacon-blink 1.5s infinite;
}

@keyframes beacon-blink {
  0% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 0.4; }
}

/* Adjust navbar for top-header presence on desktop */
@media (min-width: 992px) {
  .navbar {
    top: 38px;
  }
}

/* Adjust scrolled state to slide top-header up and reset navbar top to 0 */
.navbar.navbar-scrolled {
  top: 0 !important;
}

.top-header-hidden {
  transform: translateY(-38px);
}

/* ==========================================================================
   HTML LOGO STYLES (Dynamic scroll coloring)
   ========================================================================== */
.logo-text {
  line-height: 1.1;
  font-family: var(--font-accent);
}

.logo-text-main {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #ffffff;
  transition: var(--transition-smooth);
}

.navbar-scrolled .logo-text-main {
  color: var(--text-dark);
}

.logo-text-sub {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--brand);
  text-transform: uppercase;
}

/* ==========================================================================
   SERVICES NAVBAR DROPDOWN STYLES
   ========================================================================== */
/* ==========================================================================
   SERVICES NAVBAR DROPDOWN STYLES (PREMIUM & HOVER ACTIVATED)
   ========================================================================== */
.glass-dropdown {
  background: rgba(13, 15, 18, 0.96) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;
  min-width: 270px;
  padding: 1.25rem !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Scrolled state dropdown styling */
.navbar-scrolled .glass-dropdown {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.glass-dropdown .dropdown-header {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 0 0 0.5rem 0.5rem;
  color: var(--brand) !important;
  font-weight: 700;
}

.glass-dropdown .dropdown-item {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.55rem 0.8rem !important;
  border-radius: 8px;
  transition: var(--transition-fast) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-scrolled .glass-dropdown .dropdown-item {
  color: var(--text-dark) !important;
}

/* Premium Hover State inside Dropdown */
.glass-dropdown .dropdown-item:hover {
  background-color: var(--brand) !important;
  color: #ffffff !important;
  transform: translateX(6px);
}

.navbar-scrolled .glass-dropdown .dropdown-item:hover {
  background-color: var(--brand) !important;
  color: #ffffff !important;
  transform: translateX(6px);
}

.glass-dropdown .dropdown-item i {
  transition: var(--transition-fast);
}

.glass-dropdown .dropdown-item:hover i {
  color: #ffffff !important;
  transform: scale(1.1);
}

/* Hide default dropdown carets for cleaner design */
.navbar .dropdown-toggle::after,
.navbar .dropdown-toggle-custom::after {
  display: none !important;
  content: none !important;
}

/* Desktop Hover Interaction (Opens automatically on hover) */
@media (min-width: 992px) {
  .navbar .nav-item.dropdown {
    position: relative;
  }

  .navbar .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  .navbar .nav-item.dropdown .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
    margin-top: 0 !important;
  }
}

/* Mobile Tonal Independence (Direct click navigation, hides submenus) */
@media (max-width: 991.98px) {
  .navbar .dropdown-menu {
    display: none !important; /* Hides dropdowns to keep touchpoints clean and direct */
  }
}

/* Responsive Logo Best Practice */
@media (max-width: 575.98px) {
  .navbar-brand .logo-text {
    display: none !important;
  }
}

/* ==========================================================================
   AUDIENCE SELECTOR & NEED TABS STYLES
   ========================================================================== */
.publico-card {
  border: 1px solid var(--light-border);
  transition: var(--transition-smooth) !important;
}

.publico-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(227, 6, 19, 0.2) !important;
}

.publico-card .icon-circle {
  transition: var(--transition-smooth);
}

.publico-card:hover .icon-circle {
  transform: scale(1.1) rotate(5deg);
  background-color: var(--brand) !important;
  color: #ffffff !important;
}

/* Glass List Group for needs selector */
.glass-list-group .list-group-item {
  background: var(--light-surface);
  transition: var(--transition-smooth);
  border-bottom: 1px solid var(--light-border) !important;
}

.glass-list-group .list-group-item:hover {
  background: rgba(227, 6, 19, 0.03);
  transform: translateX(4px);
}

.glass-list-group .list-group-item.active {
  background: var(--brand-gradient) !important;
  border-color: transparent !important;
}

.glass-list-group .list-group-item.active * {
  color: #ffffff !important;
}

.glass-list-group .list-group-item.active .text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Industry tags */
.industry-tag {
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.industry-tag:hover {
  border-color: var(--brand) !important;
  color: #ffffff !important;
  background-color: rgba(227, 6, 19, 0.05) !important;
}

/* CTA Service select transitions */
.cta-service-select {
  transition: var(--transition-smooth);
}

/* Form inputs error validations */
.form-tracking .text-danger {
  font-size: 0.78rem;
  color: #ff3344 !important;
  display: block;
  margin-top: 4px;
}

.form-tracking input:invalid, 
.form-tracking select:invalid, 
.form-tracking textarea:invalid {
  box-shadow: none;
}

.form-tracking .is-invalid {
  border-color: #ff3344 !important;
  background-color: rgba(255, 51, 68, 0.03) !important;
}

.form-check-input:checked {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
}

/* Custom alignment for thank you page */
#gracias-page .icon-circle {
  animation: bounce-subtle 2s infinite;
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Custom dark theme utilities for cards and forms */
.bg-dark-surface {
  background-color: #16191f !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.bg-dark-input {
  background-color: #0d0f12 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.bg-dark-input::placeholder {
  color: rgba(255, 255, 255, 0.35) !important;
}

.bg-dark-input:focus {
  background-color: #0d0f12 !important;
  color: #ffffff !important;
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 0.25rem rgba(227, 6, 19, 0.2) !important;
}

/* Solid dark backgrounds for header and navbar to block background image lines */
.bg-dark-navbar {
  background-color: #0d0f12 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.bg-dark-header {
  background-color: #08090b !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Custom brand outline button for call-to-actions on dark backgrounds */
.btn-outline-brand {
  color: #ffffff !important;
  border: 1px solid #e30613 !important;
  background-color: transparent !important;
  transition: all 0.3s ease !important;
}
.btn-outline-brand:hover {
  color: #ffffff !important;
  background-color: #e30613 !important;
  border-color: #e30613 !important;
}

/* Brand typography color inside SVG logos */
.brand-text-main {
  fill: #ffffff !important;
}





