/* ==========================================================================
   INTERCOMPUTACIÓN - UNIVERSO INTERSOFT
   UI Components, Forms, Widgets & Interactive Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Top Announcement Bar
   -------------------------------------------------------------------------- */
.top-bar {
  background: rgba(10, 14, 24, 0.95);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
  padding: 0.45rem 0;
  position: relative;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-emerald 2s infinite;
}

.top-bar-contacts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.top-bar-item:hover {
  color: var(--primary-cyan);
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--primary-cyan);
}

/* --------------------------------------------------------------------------
   2. Navbar & Header (Spacious & Clean Redesign)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(7, 9, 14, 0.98);
  border-bottom-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.logo-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(0, 240, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}

.logo-title span {
  color: var(--primary-cyan);
}

.logo-subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a78bfa;
}

/* Nav Menu: Spacious & Hierarchical */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
  margin: 0 auto;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-cyan), var(--secondary-purple));
  transition: width var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

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

/* Dropdown Menu for Divisions */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 280px;
  background: rgba(11, 16, 28, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.15);
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 150;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(0, 240, 255, 0.1);
  color: var(--primary-cyan);
  transform: translateX(4px);
}

.dropdown-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Header Actions & Quick Search Trigger */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.search-trigger-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition-fast);
}

.search-trigger-btn:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.35);
  color: #fff;
}

.search-key-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: var(--primary-cyan);
}

/* --------------------------------------------------------------------------
   Search Modal / Command Palette
   -------------------------------------------------------------------------- */
.search-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.search-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.search-modal-box {
  width: 100%;
  max-width: 640px;
  background: rgba(14, 20, 34, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 240, 255, 0.2);
  overflow: hidden;
  transform: translateY(-20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal-overlay.active .search-modal-box {
  transform: translateY(0) scale(1);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  gap: 1rem;
}

.search-input-wrap svg {
  width: 22px;
  height: 22px;
  color: var(--primary-cyan);
  flex-shrink: 0;
}

.search-main-input {
  flex-grow: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1.15rem;
  font-family: inherit;
}

.search-main-input::placeholder {
  color: var(--text-dim);
}

.search-results-container {
  max-height: 380px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  color: #e2e8f0;
  text-decoration: none;
  transition: var(--transition-fast);
}

.search-result-item:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.25);
  color: #fff;
  transform: translateX(4px);
}

.search-result-item h5 {
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
  color: #fff;
}

.search-result-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Floating Navigation Dock (Menú Flotante Futurista)
   -------------------------------------------------------------------------- */
.floating-nav-dock {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 990;
  background: rgba(10, 15, 28, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 240, 255, 0.15);
  transition: all var(--transition-smooth);
}

.dock-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dock-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.dock-item:hover, .dock-item.active {
  color: var(--primary-cyan);
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  transform: translateY(-3px) scale(1.1);
}

/* Dock Tooltips */
.dock-item::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(8, 12, 22, 0.95);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 240, 255, 0.25);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.dock-item:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dock-divider {
  width: 1px;
  height: 24px;
  background: var(--border-light);
  margin: 0 0.25rem;
}

/* --------------------------------------------------------------------------
   3. Hero Section & Interactive Constellation
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 3.5rem 0 1.75rem 0;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
}

.hero-badge-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(1.85rem, 3.4vw, 3.35rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.hero-title .hero-line {
  display: block;
}

@media (min-width: 768px) {
  .hero-title .hero-line {
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: clamp(1.45rem, 5.8vw, 2.1rem);
    line-height: 1.25;
  }
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  max-width: 820px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.25rem 1.75rem;
  background: rgba(13, 20, 35, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.stat-item {
  border-left: 2px solid var(--border-light);
  padding-left: 1.25rem;
}

.stat-item:first-child {
  border-left: none;
  padding-left: 0;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-cyan);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   4. Universe Divisions Grid (Cards)
   -------------------------------------------------------------------------- */
.division-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.division-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--card-accent, var(--primary-cyan)), transparent);
  opacity: 0.4;
  transition: opacity var(--transition-fast);
}

.division-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-accent, var(--primary-cyan));
  box-shadow: 0 16px 35px -8px rgba(0, 0, 0, 0.8), 0 0 30px var(--card-glow, rgba(0, 240, 255, 0.15));
}

.division-card:hover::before {
  opacity: 1;
}

.division-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--card-accent, var(--primary-cyan));
}

.division-icon-box svg {
  width: 28px;
  height: 28px;
}

.division-title {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}

.division-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.division-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.division-features li {
  font-size: 0.92rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.division-features li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--card-accent, var(--primary-cyan));
}

.division-action {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   5. Interactive Modules Component: Repair Diagnostic Tool
   -------------------------------------------------------------------------- */
.interactive-section {
  padding: 3.25rem 0;
  position: relative;
}

#divisiones.interactive-section {
  padding-top: 1.75rem;
}

.tool-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.device-picker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.device-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 0.75rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.device-btn svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
}

.device-btn:hover {
  background: rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.3);
  color: #fff;
}

.device-btn.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.diagnostic-display {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

/* --------------------------------------------------------------------------
   6. Portfolio & Case Studies
   -------------------------------------------------------------------------- */
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-purple-glow);
  box-shadow: 0 16px 35px -8px rgba(0, 0, 0, 0.8), 0 0 35px var(--shadow-glow-purple);
}

.portfolio-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.06);
}

.portfolio-badge-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.portfolio-nasa-card {
  border-color: rgba(0, 240, 255, 0.35);
  background: linear-gradient(180deg, rgba(14, 21, 37, 0.85) 0%, rgba(9, 13, 23, 0.95) 100%);
}

.portfolio-nasa-card:hover {
  border-color: var(--primary-cyan);
  box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 240, 255, 0.35);
}

.portfolio-header {
  padding: 1.75rem 1.75rem 0 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.portfolio-body {
  padding: 1.5rem 1.75rem 2rem 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.tag-pill {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------------------------
   7. Contact Form & Location Module
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 3.25rem 0;
  position: relative;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #090e18 100%);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: stretch;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.info-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: all var(--transition-fast);
}

.info-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  background: var(--bg-card-hover);
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
  flex-shrink: 0;
}

.info-icon svg {
  width: 24px;
  height: 24px;
}

.info-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  color: #fff;
}

.info-content p {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.info-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.info-link:hover {
  text-decoration: underline;
}

/* Map Embed */
.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  height: 220px;
  position: relative;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) contrast(110%);
}

/* Smart Contact Form */
.form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(10, 15, 26, 0.8);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  color: #fff;
  font-size: 0.98rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  background: rgba(13, 20, 36, 0.95);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.form-feedback {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.form-feedback.error {
  display: block;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fca5a5;
}

/* --------------------------------------------------------------------------
   8. Antigravity AI Assistant Widget
   -------------------------------------------------------------------------- */
.antigravity-widget-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-purple));
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.4);
  transition: all var(--transition-smooth);
}

.antigravity-widget-toggle:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.6);
}

.antigravity-chat-window {
  position: fixed;
  bottom: 6.5rem;
  right: 2rem;
  width: 380px;
  max-width: calc(100vw - 2.5rem);
  height: 540px;
  max-height: calc(100vh - 8rem);
  background: rgba(11, 16, 28, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 240, 255, 0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-smooth);
}

.antigravity-chat-window.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  padding: 1.15rem 1.25rem;
  background: rgba(16, 24, 42, 0.8);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.chat-avatar svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.chat-header-text h4 {
  font-size: 1rem;
  color: #fff;
}

.chat-header-text span {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chat-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
}

.chat-close-btn:hover {
  color: #fff;
}

.chat-messages {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-msg {
  max-width: 85%;
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
}

.chat-msg.bot {
  align-self: flex-start;
  background: rgba(22, 34, 58, 0.75);
  border: 1px solid var(--border-light);
  color: #f1f5f9;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(139, 92, 246, 0.25));
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
}

.quick-action-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-action-pill:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
}

.chat-input-area {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 0.6rem;
  background: rgba(14, 20, 34, 0.9);
}

.chat-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  color: #fff;
  font-size: 0.88rem;
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary-cyan);
}

.chat-send-btn {
  background: var(--primary-cyan);
  color: #050a14;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating WhatsApp Quick Action Button */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1000;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-smooth);
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 35px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #04060a;
  border-top: 1px solid var(--border-light);
  padding: 3rem 0 1.75rem 0;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h5 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .device-picker-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .top-bar-inner { justify-content: center; text-align: center; }
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: rgba(7, 9, 14, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-150%);
    transition: transform var(--transition-smooth);
  }
  .nav-menu.open {
    transform: translateY(0);
  }
  .mobile-toggle { display: block; }
  .device-picker-grid { grid-template-columns: repeat(2, 1fr); }
  .diagnostic-display { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat-item { border-left: none; padding-left: 0; border-top: 1px solid var(--border-light); padding-top: 1rem; }
  .stat-item:first-child { border-top: none; padding-top: 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-section { padding: 2.5rem 0 1.25rem 0; }
  .interactive-section, .contact-section { padding: 2.25rem 0; }
  .antigravity-chat-window { right: 1rem; bottom: 5.5rem; width: calc(100vw - 2rem); }
  .floating-whatsapp-btn { bottom: 1.5rem; left: 1.5rem; }
  .antigravity-widget-toggle { bottom: 1.5rem; right: 1.5rem; }
}

/* ==========================================================================
   Quotation Modal & PDF Generator Styles
   ========================================================================== */
.quote-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 8, 17, 0.85);
  backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.25s ease-out;
}

.quote-modal-container {
  background: rgba(13, 17, 34, 0.96);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-lg);
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.15);
  overflow: hidden;
  position: relative;
}

.quote-modal-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-cyan), var(--primary-emerald), var(--primary-purple));
}

.quote-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
}

.quote-header-brand h3 {
  color: #fff;
  font-size: 1.35rem;
  margin: 0.35rem 0 0.2rem 0;
}

.quote-header-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.quote-dual-badges {
  display: flex;
  gap: 0.5rem;
}

.quote-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color var(--transition-fast);
}

.quote-close-btn:hover {
  color: #fff;
}

/* Steps Progress Pill Bar */
.quote-wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-light);
}

.quote-step-pill {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.quote-step-pill.active {
  color: var(--primary-cyan);
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--primary-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.quote-step-pill.completed {
  color: var(--primary-emerald);
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--primary-emerald);
}

.quote-step-line {
  width: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}

/* Step Body */
.quote-step-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

/* Client Type Switcher */
.quote-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quote-type-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quote-type-btn:hover {
  border-color: rgba(0, 240, 255, 0.4);
  color: #fff;
}

.quote-type-btn.active {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--primary-cyan);
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}

/* Items Table */
.quote-items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.quote-items-header h4 {
  color: #fff;
  margin: 0;
  font-size: 1.1rem;
}

.quote-items-table-wrap {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.quote-table-edit {
  width: 100%;
  border-collapse: collapse;
}

.quote-table-edit th {
  padding: 0.75rem 0.5rem;
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.quote-table-edit td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.form-input-sm {
  padding: 0.5rem 0.75rem !important;
  font-size: 0.88rem !important;
}

.quote-remove-item-btn {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fda4af;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: all var(--transition-fast);
}

.quote-remove-item-btn:hover {
  background: rgba(244, 63, 94, 0.35);
  color: #fff;
}

.quote-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.quote-validity-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
}

.quote-total-display {
  text-align: right;
}

.quote-total-amount {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-cyan);
  font-family: var(--font-heading);
}

.quote-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Step 3: Success & PDF Preview */
.quote-success-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.quote-success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quote-pdf-preview-box {
  background: #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  max-height: 440px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.quote-final-actions {
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  .quote-type-selector {
    grid-template-columns: 1fr;
  }
  .quote-summary-row {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    text-align: center;
  }
  .quote-total-display {
    text-align: center;
  }
  .quote-final-actions {
    flex-direction: column;
  }
}
