/* ==========================================================================
   ARK Electrónica - Laboratorio Especializado
   Estilo Industrial Dark & Técnico
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens / CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Deep Night Blue & Electric Technical Accents */
  --bg-deep: #030712;
  --bg-surface-1: #070e1b;
  --bg-surface-2: #0b1528;
  --bg-surface-card: #0f1c34;
  --bg-surface-hover: #142442;

  --accent-blue: #0088ff;
  --accent-cyan: #00d4ff;
  --accent-cyan-dim: rgba(0, 212, 255, 0.12);
  --accent-cyan-glow: rgba(0, 212, 255, 0.25);
  
  --wa-color: #25d366;
  --wa-hover: #20ba5a;

  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8493a8;
  
  --border-subtle: rgba(0, 160, 255, 0.14);
  --border-active: rgba(0, 212, 255, 0.4);

  /* Typography */
  --font-heading: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout & Geometry */
  --radius-sm: 2px;
  --radius-md: 4px;
  --max-width: 1200px;
  --header-height: 76px;
  
  /* Transitions */
  --transition-fast: 0.18s ease-in-out;
  --transition-normal: 0.25s ease-in-out;
}

/* --------------------------------------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  background-color: var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

/* Subtle Structural Grid Background */
.tech-grid-bg {
  position: relative;
}

.tech-grid-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(0, 136, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 136, 255, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Subtle Circuit Background Overlays (Corners & Lateral Edges Only)
   -------------------------------------------------------------------------- */
.circuit-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.2; /* Strictly low opacity (6% to 10%) */
  transition: opacity var(--transition-normal);
}

.circuit-decoration--top-right {
  top: 0;
  right: 0;
  width: clamp(280px, 30vw, 440px);
  height: auto;
}

.circuit-decoration--bottom-left {
  bottom: 0;
  left: 0;
  width: clamp(280px, 30vw, 440px);
  height: auto;
}

.circuit-decoration--top-left {
  top: 0;
  left: 0;
  width: clamp(260px, 25vw, 380px);
  height: auto;
}

/* --------------------------------------------------------------------------
   3. Typography & Technical Badges
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.25rem;
}

.section-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyan);
  border-radius: 1px;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title--left {
  text-align: left;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 680px;
}

/* --------------------------------------------------------------------------
   4. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

.btn--sm svg {
  width: 1rem;
  height: 1rem;
}

/* WhatsApp Primary Button */
.btn--wa {
  background-color: var(--wa-color);
  color: #021a0b;
  border: 1px solid var(--wa-color);
}

.btn--wa:hover {
  background-color: var(--wa-hover);
  border-color: var(--wa-hover);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
  transform: translateY(-1px);
}

/* Primary Electric Accent Button */
.btn--primary {
  background-color: var(--accent-blue);
  color: #ffffff;
  border: 1px solid var(--accent-blue);
}

.btn--primary:hover {
  background-color: #0077e6;
  border-color: #0077e6;
  transform: translateY(-1px);
}

/* Outline Secondary Button */
.btn--outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn--outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background-color: var(--accent-cyan-dim);
}

/* --------------------------------------------------------------------------
   5. Header & Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.header__logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* Navigation Menu */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav__link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-cyan);
  transition: width var(--transition-fast);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text-main);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

.nav__cta-desktop {
  display: flex;
  align-items: center;
}

/* Hamburger Toggle Button */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: all var(--transition-fast);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.hero__content {
  max-width: 580px;
  width: 100%;
  min-width: 0;
}

.hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--text-main);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  line-height: 1.6;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
}

/* Technical Vector Illustration Component */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.tech-frame {
  width: 100%;
  max-width: 500px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
}

/* Precision corner markers */
.tech-frame::before,
.tech-frame::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--accent-cyan);
  border-style: solid;
  pointer-events: none;
}

.tech-frame::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.tech-frame::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.tech-frame__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tech-frame__tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.tech-frame__status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
}

.tech-frame__status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.tech-svg-diagram {
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   7. Services Section
   -------------------------------------------------------------------------- */
.services {
  padding: 6rem 0;
  background-color: var(--bg-surface-1);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background-color: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background-color: var(--accent-cyan-dim);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
}

.service-card__title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  color: var(--text-main);
}

.service-card__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   8. About / Presentation Section ("Laboratorio") & Photo Carousel
   -------------------------------------------------------------------------- */
.about {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}
.about__grid {
  display: flex;
  justify-content: center;
}

.about__content {
  max-width: 900px;
  width: 100%;
}

.about__text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.about__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.about__feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.975rem;
  color: var(--text-main);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}

.about__feature-icon {
  color: var(--accent-cyan);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Technical Photo Carousel Component */
.lab-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  min-width: 0;
  margin: 0 auto;
}

.lab-carousel {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.lab-carousel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background-color: var(--bg-surface-2);
  border-bottom: 1px solid var(--border-subtle);
}

.lab-carousel__tag {
  font-family: var(--font-heading);
  font-size: 0.775rem;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-weight: 600;
}

.lab-carousel__counter {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

#carousel-counter-current {
  color: var(--text-main);
  font-weight: 700;
}

.lab-carousel__track-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background-color: #030712;
  overflow: hidden;
}

.lab-carousel__track {
  width: 100%;
  height: 100%;
  position: relative;
}

.lab-carousel__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
  z-index: 1;
}

.lab-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.lab-carousel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lab-carousel__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(3, 7, 18, 0.95) 0%, rgba(3, 7, 18, 0.7) 70%, transparent 100%);
  padding: 1.5rem 1.25rem 1rem 1.25rem;
  color: var(--text-main);
}

.lab-carousel__caption-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.lab-carousel__caption-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Arrow Navigation */
.lab-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background-color: rgba(7, 14, 27, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
}

.lab-carousel__nav:hover {
  background-color: var(--accent-cyan-dim);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.lab-carousel__nav svg {
  width: 20px;
  height: 20px;
}

.lab-carousel__nav--prev {
  left: 12px;
}

.lab-carousel__nav--next {
  right: 12px;
}

/* Pagination Dots */
.lab-carousel__footer {
  padding: 0.75rem 1.25rem;
  background-color: var(--bg-surface-2);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: center;
}

.lab-carousel__dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lab-carousel__dot {
  width: 24px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.lab-carousel__dot:hover {
  background-color: rgba(0, 212, 255, 0.5);
}

.lab-carousel__dot.is-active {
  background-color: var(--accent-cyan);
  width: 36px;
  box-shadow: 0 0 8px var(--accent-cyan-glow);
}

/* --------------------------------------------------------------------------
   8.5 Brands & Instrumental Ticker Section
   -------------------------------------------------------------------------- */
.brands-section {
  padding: 4rem 0;
  background-color: var(--bg-surface-2);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.brands-section__title {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.brands-ticker {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0.75rem 0;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.brands-ticker__track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
}
@media (hover: hover) {
  .brands-ticker:hover .brands-ticker__track {
    animation-play-state: paused;
  }
}

.brand-card {
  flex: 0 0 auto;
  width: 170px;
  height: 75px;
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.brand-card:hover,
.brand-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 212, 255, 0.35);
  outline: none;
}

.brand-card__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: contrast(105%);
  transition: filter var(--transition-fast);
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   9. Contact / Final CTA Section & Location Block
   -------------------------------------------------------------------------- */
.contact {
  padding: 6rem 0;
  background-color: var(--bg-surface-1);
  position: relative;
  overflow: hidden;
}

.contact__banner {
  background: linear-gradient(135deg, var(--bg-surface-card) 0%, var(--bg-surface-1) 100%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  margin-bottom: 3rem;
}

.contact__banner-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.contact__banner-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.25rem auto;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto 3.5rem auto;
}

.contact-card {
  background-color: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-fast);
}

a.contact-card:hover {
  border-color: var(--accent-cyan);
  background-color: var(--bg-surface-hover);
  transform: translateY(-1px);
}

.contact-card--primary {
  border-color: var(--wa-color);
  background-color: rgba(37, 211, 102, 0.06);
}

a.contact-card--primary:hover {
  border-color: var(--wa-hover);
  background-color: rgba(37, 211, 102, 0.12);
}

.contact-card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.contact-card--primary .contact-card__icon {
  color: var(--wa-color);
  background-color: rgba(37, 211, 102, 0.15);
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-card__info {
  display: flex;
  flex-direction: column;
}

.contact-card__label {
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-family: var(--font-heading);
}

.contact-card__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   Google Maps Embedded Block
   -------------------------------------------------------------------------- */
.location-block {
  max-width: 900px;
  margin: 0 auto;
}

.map-container {
  background-color: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-surface-2);
  border-bottom: 1px solid var(--border-subtle);
}

.map-header__title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-main);
  text-transform: uppercase;
}

.map-header__title svg {
  width: 20px;
  height: 20px;
  color: var(--accent-cyan);
}

.map-header__city {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

.map-iframe-wrapper {
  width: 100%;
  position: relative;
  background-color: #030712;
}

.map-iframe-wrapper iframe {
  display: block;
  width: 100%;
  height: 340px;
  filter: grayscale(80%) invert(92%) hue-rotate(180deg) contrast(1.1);
  transition: filter var(--transition-normal);
}

.map-iframe-wrapper:hover iframe {
  filter: grayscale(40%) invert(90%) hue-rotate(180deg) contrast(1.05);
}

.map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-surface-2);
  border-top: 1px solid var(--border-subtle);
}

.map-footer__address {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-main);
}

.map-footer__address svg {
  width: 20px;
  height: 20px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.map-footer__text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   10. Persistent Floating WhatsApp Button
   -------------------------------------------------------------------------- */
.floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: var(--wa-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 12px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-wa svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.floating-wa:hover {
  background-color: var(--wa-hover);
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 18px rgba(37, 211, 102, 0.6);
}

/* Tooltip on hover */
.floating-wa__tooltip {
  position: absolute;
  right: 68px;
  background-color: var(--bg-surface-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.floating-wa:hover .floating-wa__tooltip {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: #02050e;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer__logo-img {
  height: 36px;
  width: auto;
  border-radius: var(--radius-sm);
}

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

.footer__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.05em;
}

.footer__tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.footer__link {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--accent-cyan);
}

.footer__bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   12. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 3rem;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    min-width: 0;
  }

  .hero__content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero__title {
    font-size: clamp(1.65rem, 7.5vw, 2.5rem);
    margin-bottom: 1rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .hero__subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .hero__visual {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .lab-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .lab-carousel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .nav__list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-surface-1);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 1.5rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    border-top: 1px solid var(--border-subtle);
  }

  .nav.is-active .nav__list {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 1.2rem;
    width: 100%;
  }

  .nav__cta-desktop {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .contact__banner {
    padding: 2.5rem 1.25rem;
  }

  .map-iframe-wrapper iframe {
    height: 280px;
  }

  .map-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .map-footer .btn {
    width: 100%;
  }

  .circuit-decoration {
    opacity: 0.035;
    width: 200px;
  }

  .footer__grid,
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .floating-wa__tooltip {
    display: none;
  }
}
