/* ═══════════════════════════════════════════════════
   QUIMERA OS — Components v2.0
   ═══════════════════════════════════════════════════ */

/* ══ NAVBAR ══ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(0) saturate(100%);
  -webkit-backdrop-filter: blur(0) saturate(100%);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(212,168,83,0.1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.04);
}

/* Logo shrink on scroll */
.navbar-logo img {
  transition: height 0.3s ease;
}
.navbar.scrolled .navbar-logo img {
  height: 32px !important;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text span:first-child {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.logo-text span:last-child {
  font-size: 9px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Nav Links */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.7);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.25s cubic-bezier(0.25,0.1,0.25,1);
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: none;
}
.nav-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}
.nav-cta .btn {
  height: 40px;
  padding: 0 24px;
  font-size: 13px;
  border-radius: 50px;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1002;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--dur-normal) var(--ease-out);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mega Menu */
.nav-item {
  position: relative;
}
.nav-item > .nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-item .chevron {
  width: 10px;
  height: 10px;
  transition: transform var(--dur-fast);
}
.nav-item:hover .chevron {
  transform: rotate(180deg);
}
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 600px;
  background: rgba(18,18,20,0.96);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.03);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25,0.1,0.25,1), visibility 0.3s cubic-bezier(0.25,0.1,0.25,1), transform 0.3s cubic-bezier(0.25,0.1,0.25,1);
  will-change: opacity, transform;
}
.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.mega-menu-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  transition: background 0.25s cubic-bezier(0.25,0.1,0.25,1);
  text-decoration: none;
}
.mega-menu-item:hover {
  background: rgba(255,255,255,0.06);
}
.mega-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(212,168,83,0.1);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.mega-menu-item h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}
.mega-menu-item p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
.icon-svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mobile Nav */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .navbar-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 24px;
    background: rgba(0,0,0,0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: none;
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease-out);
    will-change: transform;
    overflow-y: auto;
    z-index: 1001;
  }
  .navbar-nav.open {
    transform: translateX(0);
  }
  .nav-link {
    padding: 16px 24px;
    font-size: 22px;
    font-weight: 500;
    border-bottom: none;
    color: rgba(255,255,255,0.7);
    text-align: center;
  }
  .nav-link:hover, .nav-link.active {
    color: #fff;
  }
  .nav-cta {
    flex-direction: column;
    margin-left: 0;
    margin-top: var(--sp-5);
    gap: 12px;
  }
  .nav-cta .btn { width: 100%; justify-content: center; height: 48px; font-size: 15px; }
  .nav-item .mega-menu {
    position: static;
    transform: none;
    min-width: 100%;
    background: rgba(255,255,255,0.03);
    border: none;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    padding: 8px;
    box-shadow: none;
    display: none;
  }
  .nav-item.open .mega-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .mega-menu-grid { grid-template-columns: 1fr; }
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--dur-normal);
  }
  .nav-overlay.visible {
    opacity: 1;
    visibility: visible;
  }
}

/* ══ HERO ══ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 72px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(212,168,83,0.06) 0%, transparent 60%),
    url('../img/hero-banner.jpg') center/cover no-repeat;
}
.hero-mesh {
  position: absolute;
  top: -30%;
  right: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, var(--gold-dim) 0%, transparent 60%);
  filter: blur(100px);
  animation: heroGlow 12s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
@keyframes heroGlow {
  0% { opacity: 0.3; transform: translate(0, 0) scale(1); }
  100% { opacity: 0.5; transform: translate(-5%, 5%) scale(1.1); }
}
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
}
.hero-badge { margin-bottom: var(--sp-4); }
.hero-headline {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: var(--sp-4);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero-sub {
  font-size: 20px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: var(--sp-5);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--sp-5);
}
.hero-ctas .btn,
.hero-ctas a {
  border-radius: 50px;
  height: 56px;
  padding: 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.25,0.1,0.25,1);
}
.hero-trust {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  justify-content: center;
}
.hero-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
}
.hero-trust .check {
  color: var(--green);
  font-weight: 700;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: calc(72px + 48px) 0 64px;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-headline { font-size: clamp(32px, 8vw, 48px); }
  .hero-sub { margin-left: auto; margin-right: auto; font-size: 17px; }
  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }
}

/* ══ SERVICE CARDS ══ */
.service-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.25,0.1,0.25,1);
}
.service-card:hover {
  border-color: rgba(212,168,83,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gold-dim);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
}
.service-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: var(--sp-2);
  border-radius: 50px;
  padding: 6px 16px;
  background: rgba(212,168,83,0.08);
}
.service-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-2);
}
.service-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.service-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold);
  transition: gap var(--dur-fast);
}
.service-arrow:hover { gap: 12px; }

/* ══ STATS ══ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  text-align: center;
  contain: layout style;
}
.stat-row > * {
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 28px 20px;
  transition: all 0.4s cubic-bezier(0.25,0.1,0.25,1);
}
.stat-row > *:hover {
  background: rgba(255,255,255,0.05);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
}
@media (max-width: 768px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* ══ CTA BANNER ══ */
.cta-banner {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: var(--sp-7) var(--sp-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(212,168,83,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-sub {
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 560px;
  margin: var(--sp-3) auto var(--sp-5);
  line-height: 1.7;
}
.cta-trust {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  font-size: var(--text-xs);
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* ══ TESTIMONIALS ══ */
.testimonial-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.25,0.1,0.25,1);
}
.testimonial-card:hover {
  border-color: rgba(212,168,83,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.testimonial-card blockquote {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
  margin-bottom: var(--sp-4);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-dim);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
}
.author-info h4 {
  font-size: var(--text-sm);
  font-weight: 600;
}
.author-info p {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ══ LOGO BAND ══ */
.logo-band {
  padding: var(--sp-6) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: transparent;
}
.logo-band-title {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}
.logo-band-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.client-logo {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  opacity: 0.5;
  transition: opacity var(--dur-fast);
}
.client-logo:hover { opacity: 1; }

/* ══ TECH GRID ══ */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.tech-item {
  padding: 6px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: all 0.4s cubic-bezier(0.25,0.1,0.25,1);
}
.tech-item:hover {
  border-color: rgba(212,168,83,0.4);
  color: var(--gold);
  background: rgba(212,168,83,0.08);
}

/* ══ PROCESS TRACK ══ */
.process-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-4);
  counter-reset: step;
  contain: layout style;
}
.process-step {
  text-align: center;
  padding: 28px 20px;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.4s cubic-bezier(0.25,0.1,0.25,1);
}
.process-step:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(212,168,83,0.2);
}
.process-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212,168,83,0.08);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  margin: 0 auto var(--sp-3);
  border: 1px solid rgba(212,168,83,0.15);
}
.process-step h4 {
  font-size: var(--text-base);
  margin-bottom: var(--sp-2);
}
.process-step p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ══ PAIN ITEMS ══ */
.pain-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 600px;
}
.pain-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  font-size: var(--text-base);
  transition: all 0.3s cubic-bezier(0.25,0.1,0.25,1);
}
.pain-item:hover {
  background: rgba(255,255,255,0.05);
}
.pain-x {
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
}

/* ══ BREADCRUMB ══ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  margin-bottom: var(--sp-4);
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--dur-fast);
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--text-muted); }

/* ══ BREADCRUMBS (semantic nav) ══ */
.breadcrumbs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 0;
  position: relative;
  z-index: 1;
}
.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
}
.breadcrumbs ol li {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.5);
}
.breadcrumbs ol li:not(:last-child)::after {
  content: "/";
  margin: 0 10px;
  color: var(--gold);
  font-weight: 500;
}
.breadcrumbs ol li a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumbs ol li a:hover {
  color: var(--gold);
}
.breadcrumbs ol li[aria-current="page"] {
  color: rgba(255,255,255,0.9);
}
:root[data-theme="light"] .breadcrumbs ol li {
  color: rgba(0,0,0,0.45);
}
:root[data-theme="light"] .breadcrumbs ol li a {
  color: rgba(0,0,0,0.45);
}
:root[data-theme="light"] .breadcrumbs ol li a:hover {
  color: var(--gold);
}
:root[data-theme="light"] .breadcrumbs ol li[aria-current="page"] {
  color: rgba(0,0,0,0.75);
}

/* ══ PAGE HERO ══ */
.page-hero {
  padding-top: calc(56px + var(--sp-7));
  padding-bottom: var(--sp-7);
}
.page-desc {
  font-size: 20px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 600px;
  margin-top: var(--sp-3);
}

/* ══ FOOTER ══ */

/* Shine keyframes for logo hover */
@keyframes footerLogoShine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Subtle glow pulse for social icons */
@keyframes footerGoldGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(212,168,83,0.3), 0 0 16px rgba(212,168,83,0.1); }
  50% { box-shadow: 0 0 12px rgba(212,168,83,0.5), 0 0 24px rgba(212,168,83,0.15); }
}

.footer {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(212,168,83,0.12);
  padding: 80px 0 0;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,83,0.4) 30%, rgba(212,168,83,0.6) 50%, rgba(212,168,83,0.4) 70%, transparent);
  pointer-events: none;
}

/* Logo with shimmer */
.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}
.footer-logo-wrap img {
  height: 44px;
  width: auto;
  transition: filter 0.4s ease;
}
.footer-logo-wrap::after {
  content: '';
  position: absolute;
  inset: -4px -8px;
  border-radius: 12px;
  background: linear-gradient(90deg, transparent 0%, rgba(212,168,83,0) 30%, rgba(212,168,83,0.25) 50%, rgba(212,168,83,0) 70%, transparent 100%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.footer-logo-wrap:hover::after {
  opacity: 1;
  animation: footerLogoShine 1.2s ease-in-out;
}
.footer-logo-wrap:hover img {
  filter: brightness(1.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

/* Brand column */
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  margin-top: 16px;
  max-width: 300px;
}

/* Social icons row */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.25,0.1,0.25,1);
}
.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: fill 0.35s ease;
}
.footer-social a:hover {
  border-color: rgba(212,168,83,0.5);
  color: #D4A853;
  background: rgba(212,168,83,0.08);
  animation: footerGoldGlow 1.6s ease-in-out infinite;
  transform: translateY(-2px);
}
.footer-social a:hover svg { fill: #D4A853; }
.footer-social a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Column headings */
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: rgba(212,168,83,0.7);
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 0;
}
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 2.3;
  text-decoration: none;
  transition: color 0.25s cubic-bezier(0.25,0.1,0.25,1), padding-left 0.25s ease;
  display: inline-block;
}
.footer-col a:hover {
  color: #fff;
  padding-left: 4px;
}

/* Contact column extras */
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: rgba(212,168,83,0.6);
  stroke-width: 1.5;
  flex-shrink: 0;
}
.footer-contact-item a,
.footer-contact-item span {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.25s ease;
  line-height: 1.5;
}
.footer-contact-item a:hover {
  color: #fff;
  padding-left: 0;
}

/* Gold gradient separator */
.footer-separator {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, rgba(212,168,83,0.3) 25%, rgba(212,168,83,0.5) 50%, rgba(212,168,83,0.3) 75%, transparent);
  margin: 0;
}

/* Copyright bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.25);
}
.footer-bottom p { margin: 0; }
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  transition: color 0.25s cubic-bezier(0.25,0.1,0.25,1);
}
.footer-bottom-links a:hover { color: var(--gold); }

/* ── Footer responsive ── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(2, 1fr);
    gap: 40px 32px;
  }
}

@media (max-width: 768px) {
  .footer { padding: 60px 0 0; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 24px 0;
  }
}

@media (max-width: 480px) {
  .footer { padding: 48px 0 0; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: auto;
    text-align: center;
  }
  .footer-social { justify-content: center; }
  .footer-brand p { max-width: 100%; }
  .footer-col { text-align: center; }
  .footer-col a:hover { padding-left: 0; }
}

/* ══ WHATSAPP WIDGET ══ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform 0.35s cubic-bezier(0.25,0.1,0.25,1),
              box-shadow 0.35s cubic-bezier(0.25,0.1,0.25,1),
              opacity 0.35s cubic-bezier(0.25,0.1,0.25,1);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
  animation: none;
}
.whatsapp-float:focus-visible {
  outline: 2px solid #25D366;
  outline-offset: 3px;
}
/* Tooltip */
.whatsapp-float::after {
  content: '\00A1Hablemos!';
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  background: rgba(22,22,24,0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.whatsapp-float:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
/* Scroll hide */
.whatsapp-float.wpp-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}
/* Mobile: smaller */
@media (max-width: 600px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
  .whatsapp-float::after {
    display: none;
  }
}

.wpp-form-popup {
  position: fixed;
  bottom: 92px;
  right: 24px;
  left: auto;
  width: 320px;
  background: rgba(22,22,24,0.95);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 999;
  transform: translateY(16px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.25,0.1,0.25,1), opacity 0.35s cubic-bezier(0.25,0.1,0.25,1), visibility 0.35s cubic-bezier(0.25,0.1,0.25,1);
  will-change: transform, opacity;
}
.wpp-form-popup.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}
.wpp-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  font-weight: 600;
}
.wpp-form-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}
.wpp-form-popup form {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wpp-input {
  width: 100%;
  padding: 10px 14px;
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--dur-fast);
  font-family: var(--font-body);
}
.wpp-input:focus {
  border-color: #25D366;
}

/* ══ LEAD POPUP ══ */
.lead-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-normal), visibility var(--dur-normal);
  will-change: opacity;
}
.lead-overlay.visible {
  opacity: 1;
  visibility: visible;
}
.lead-popup {
  background: rgba(22,22,24,0.95);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: var(--sp-6);
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.lead-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  background: none;
  border: none;
}
.lead-popup h3 {
  font-size: var(--text-xl);
  margin: var(--sp-3) 0;
  line-height: 1.3;
}
.lead-popup p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}
.popup-form {
  display: flex;
  gap: 8px;
}
.popup-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  outline: none;
}
.popup-form input:focus {
  border-color: var(--gold);
}
.popup-trust {
  margin-top: var(--sp-3);
  font-size: 11px;
  color: var(--text-muted);
}

/* ══ SECTION NUMBER ══ */
.section-number {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-5);
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 900;
  color: var(--border-subtle);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
@media (max-width: 768px) {
  .section-number { font-size: 80px; }
}

/* ─── EXIT INTENT MODAL ────────────────────────── */
.exit-intent-card { text-align: center; max-width: 420px; }
.exit-intent-icon { font-size: 40px; margin-bottom: var(--sp-3); }
.exit-intent-card h3 { font-size: var(--text-xl); margin-bottom: var(--sp-2); }
.exit-intent-card p { color: var(--text-secondary); margin-bottom: var(--sp-3); }
.exit-intent-form { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.exit-disclaimer { font-size: var(--text-xs); color: var(--text-muted); }

/* ─── SMART POPUP ───────────────────────────────── */
#smart-popup {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 9000;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}
#smart-popup.visible { transform: translateY(0); opacity: 1; }
.smart-popup-card {
  background: rgba(22,22,24,0.95);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: var(--sp-4);
  max-width: 300px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  position: relative;
}
.smart-popup-close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none;
  color: var(--text-muted); cursor: pointer; font-size: 16px;
}
.smart-popup-msg {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--sp-3);
  line-height: 1.5;
}
.smart-popup-actions { display: flex; flex-direction: column; gap: var(--sp-2); }

/* ─── FORMULARIO MULTI-STEP (contacto.html) ─────────── */
.contact-section { padding: var(--sp-6) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}
.contact-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--sp-4);
  line-height: 1.6;
}
.contact-process { margin: var(--sp-4) 0; }
.contact-step-item {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.contact-step-item strong { display: block; font-size: var(--text-sm); }
.contact-step-item p { font-size: var(--text-sm); color: var(--text-secondary); margin: 0; }
.contact-direct { margin: var(--sp-4) 0; }
.contact-link {
  display: block;
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--text-sm);
  margin-bottom: var(--sp-2);
  transition: color 0.2s;
}
.contact-link:hover { color: var(--accent-gold); }
.trust-badges { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.trust-badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.04);
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.06);
}

.contact-form-container {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: var(--sp-5);
}
.cf-progress-container { margin-bottom: var(--sp-4); }
.cf-progress-track {
  height: 4px;
  background: var(--border-default);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--sp-2);
}
.cf-progress-fill {
  height: 100%;
  background: var(--accent-gold);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.cf-step-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.cf-step-label.active { color: var(--accent-gold); font-weight: 600; }
.cf-step-label.done { color: var(--accent-green); }

.cf-step { animation: fadeInUp 0.3s ease; }
.cf-step.hidden { display: none; }
.cf-step-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--sp-4);
  color: var(--text-primary);
}
.cf-nav-btns {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.btn-full { width: 100%; justify-content: center; }

.field-error { color: var(--accent-red, #EF4444); font-size: var(--text-xs); display: block; margin-top: 4px; }
.field-hint { color: var(--text-muted); font-size: var(--text-xs); display: block; margin-top: 4px; }
.input-error { border-color: var(--accent-red, #EF4444) !important; }
.form-disclaimer { font-size: var(--text-xs); color: var(--text-muted); text-align: center; margin-top: var(--sp-3); }
.form-textarea { resize: vertical; min-height: 100px; }

.cf-success-state { text-align: center; padding: var(--sp-5); }
.cf-success-state.hidden { display: none; }
.success-icon {
  width: 64px; height: 64px;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--accent-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: var(--accent-green);
  margin: 0 auto var(--sp-4);
}
.success-email-hint { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--sp-2); }
.success-detail { font-size: var(--text-sm); color: var(--text-secondary); margin-top: var(--sp-2); }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ══ CARD / CARD-GLASS OVERRIDES (Apple/Samsung premium) ══ */
.card,
.card-glass {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.25,0.1,0.25,1);
}
.card:hover,
.card-glass:hover {
  border-color: rgba(212,168,83,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

/* ═══════════════════════════════════════════════════
   LIGHT THEME OVERRIDES
   ═══════════════════════════════════════════════════ */

/* Navbar */
:root[data-theme="light"] .navbar.scrolled {
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 0 rgba(0,0,0,0.02);
}

/* Mega menu */
:root[data-theme="light"] .mega-menu {
  background: rgba(255,255,255,0.95);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
:root[data-theme="light"] .mega-menu-item:hover {
  background: rgba(0,0,0,0.04);
}
:root[data-theme="light"] .mega-menu-icon {
  background: rgba(212,168,83,0.12);
}

/* Cards & glass */
:root[data-theme="light"] .card,
:root[data-theme="light"] .card-glass {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.08);
}
:root[data-theme="light"] .card:hover,
:root[data-theme="light"] .card-glass:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

/* Hero section (dark bg pages) */
:root[data-theme="light"] .hero-bg,
:root[data-theme="light"] .idx-hero {
  background: #F0F0F0;
}
:root[data-theme="light"] .idx-hero h1 { color: #1a1a1a; }
:root[data-theme="light"] .idx-hero-sub { color: rgba(0,0,0,0.55); }
:root[data-theme="light"] .idx-btn-ghost {
  color: rgba(0,0,0,0.7);
  border-color: rgba(0,0,0,0.15);
}
:root[data-theme="light"] .idx-btn-ghost:hover {
  border-color: rgba(0,0,0,0.35);
  color: #1a1a1a;
}
:root[data-theme="light"] .idx-scroll-indicator { color: rgba(0,0,0,0.3); }
:root[data-theme="light"] .idx-scroll-indicator svg { stroke: rgba(0,0,0,0.3); }

/* Index cards */
:root[data-theme="light"] .idx-card {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.08);
}
:root[data-theme="light"] .idx-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border-color: rgba(212,168,83,0.3);
}

/* Index text */
:root[data-theme="light"] .idx-section-title { color: #1a1a1a; }
:root[data-theme="light"] .idx-service-title { color: #1a1a1a; }
:root[data-theme="light"] .idx-service-desc { color: rgba(0,0,0,0.5); }
:root[data-theme="light"] .idx-stat-label { color: rgba(0,0,0,0.4); }

/* Testimonial cards */
:root[data-theme="light"] .idx-tcard {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.08);
}
:root[data-theme="light"] .idx-tcard:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 0 40px rgba(212,168,83,0.06);
}

/* CTA banner */
:root[data-theme="light"] .idx-cta-banner {
  background: #F0F0F0;
}
:root[data-theme="light"] .idx-cta-banner h2 { color: #1a1a1a; }
:root[data-theme="light"] .idx-cta-banner p { color: rgba(0,0,0,0.6); }

/* Footer */
:root[data-theme="light"] .idx-footer {
  background: #EEEEEE;
  border-top-color: rgba(0,0,0,0.06);
}

/* WhatsApp form popup */
:root[data-theme="light"] .wpp-form-popup {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.10);
}

/* Nav toggle bars */
:root[data-theme="light"] .nav-toggle span {
  background: #1a1a1a;
}

/* Mobile nav menu */
:root[data-theme="light"] .navbar-nav.open {
  background: rgba(255,255,255,0.98);
}

/* Form inputs */
:root[data-theme="light"] .input,
:root[data-theme="light"] .wpp-input {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.12);
  color: #1a1a1a;
}
:root[data-theme="light"] .input::placeholder,
:root[data-theme="light"] .wpp-input::placeholder {
  color: rgba(0,0,0,0.4);
}

/* Common footer */
:root[data-theme="light"] .footer {
  background: rgba(0,0,0,0.02);
  border-top-color: rgba(212,168,83,0.15);
}

/* Service page heroes (inline bg overrides) */
:root[data-theme="light"] .svc-hero,
:root[data-theme="light"] [class*="hero"] {
  color: var(--text-primary);
}

/* Breadcrumbs */
:root[data-theme="light"] .breadcrumb a { color: var(--text-secondary); }
:root[data-theme="light"] .breadcrumb span { color: var(--text-muted); }

/* Back to top */
:root[data-theme="light"] .back-to-top {
  background: rgba(255,255,255,0.8);
  border-color: rgba(0,0,0,0.08);
}

/* Lead popup */
:root[data-theme="light"] .lead-popup {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.08);
}

/* WhatsApp float */
:root[data-theme="light"] .whatsapp-float {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
