/* =====================================================
   CAEC MAQUINADOS INDUSTRIALES — Componentes CSS
   ===================================================== */

/* ══════════════════════════════════════════
   BASE RESET & GLOBAL
══════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  background-color: #F8FAFC;
  color: var(--color-gray-600);
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-gray-700);
}

p {
  line-height: var(--leading-loose);
  color: var(--color-gray-400);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

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

input,
textarea {
  font-family: inherit;
}

::selection {
  background: var(--color-primary-light);
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

/* ══════════════════════════════════════════
   PRELOADER
══════════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: var(--z-preloader);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  pointer-events: none;
  animation: preloaderFade 0.6s ease forwards;
}

.preloader-logo {
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  color: var(--color-gray-700);
  letter-spacing: var(--tracking-widest);
  margin-bottom: var(--space-8);
}

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

.preloader-bar {
  width: 200px;
  height: 3px;
  background: var(--color-dark-700);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.preloader-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.3s ease;
}

.preloader-text {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  color: var(--color-gray-300);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
  padding: 0 var(--space-8);
}

#navbar.transparent {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(3, 105, 161, 0.12);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  height: 64px;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.nav-logo img {
  height: 48px;
  width: auto;
  filter: brightness(1.1);
  transition: transform var(--transition-base);
}

.nav-logo:hover img {
  transform: scale(1.1) rotate(-5deg);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text .brand-name {
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  color: #fff;
  letter-spacing: var(--tracking-widest);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-logo-text .brand-name {
  color: var(--color-gray-700);
  text-shadow: none;
}

.nav-logo-text .brand-sub {
  font-size: 0.6rem;
  font-weight: var(--weight-medium);
  color: var(--color-primary-2);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

#navbar.scrolled .nav-logo-text .brand-sub {
  color: var(--color-primary-2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-link {
  position: relative;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  transition: color var(--transition-base);
  border-radius: var(--radius-sm);
}

/* En navbar scrolled (fondo blanco) los links se hacen oscuros */
#navbar.scrolled .nav-link {
  color: var(--color-gray-600);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--color-primary-2);
  border-radius: var(--radius-full);
  transition: left var(--transition-base), right var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary-2);
}

#navbar.scrolled .nav-link:hover,
#navbar.scrolled .nav-link.active {
  color: var(--color-primary-2);
}

.nav-link:hover::after,
.nav-link.active::after {
  left: var(--space-4);
  right: var(--space-4);
}

/* Burger Menu */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 10;
}

.nav-burger span {
  display: block;
  height: 2px;
  background: var(--color-white);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  transform-origin: center;
}

#navbar.scrolled .nav-burger span {
  background: var(--color-gray-700);
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-burger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 13, 18, 0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  z-index: var(--z-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.nav-mobile.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.nav-mobile .nav-link {
  font-size: var(--text-2xl);
  color: var(--color-white);
  padding: var(--space-4) var(--space-8);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s var(--transition-spring);
}

.nav-mobile.open .nav-link {
  opacity: 1;
  transform: translateY(0);
}

.nav-mobile .nav-link:nth-child(1) {
  transition-delay: 0.1s;
}

.nav-mobile .nav-link:nth-child(2) {
  transition-delay: 0.2s;
}

.nav-mobile .nav-link:nth-child(3) {
  transition-delay: 0.3s;
}

.nav-mobile .nav-link:nth-child(4) {
  transition-delay: 0.4s;
}

.nav-mobile .nav-link:nth-child(5) {
  transition-delay: 0.5s;
}

.nav-mobile .nav-link:hover {
  color: var(--color-primary-light);
  transform: scale(1.1);
}

/* ══════════════════════════════════════════
   BOTONES
══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 24px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-dark-900);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(3, 105, 161, 0.25);
  color: var(--color-dark-900);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  transform: translateY(-2px);
  color: var(--color-white);
}

.btn-ghost {
  background: rgba(0, 198, 215, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(0, 198, 215, 0.3);
}

.btn-ghost:hover {
  background: rgba(0, 198, 215, 0.2);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ══════════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-4); /* Menos margen */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: rgba(0, 198, 215, 0.1);
  border: 1px solid rgba(0, 198, 215, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.section-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--weight-black);
  color: var(--color-primary-gold);
  margin-bottom: var(--space-5);
  position: relative;
}

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

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-6);
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 0;
  width: 12px;
  height: 3px;
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  opacity: 0.5;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray-400);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--leading-loose);
}

/* ══════════════════════════════════════════
   HERO / CAROUSEL
══════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 4s ease-in-out;
  transform: scale(1.05);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 var(--space-6);
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-primary-2);
  margin-bottom: var(--space-6);
  animation: fadeInDown 0.8s ease both;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--color-primary-2);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: var(--weight-black);
  color: var(--color-white);
  line-height: 1.05;
  margin-bottom: var(--space-4);
  animation: heroTitleIn 1s ease 0.2s both;
}

.hero-subtitle {
  font-size: clamp(var(--text-base), 2.5vw, var(--text-2xl));
  color: white;
  margin-bottom: var(--space-3);
  animation: fadeInUp 0.8s ease 0.5s both;
  letter-spacing: var(--tracking-wide);
}

.hero-description {
  font-size: var(--text-base);
  color: gold;
  margin-bottom: var(--space-10);
  animation: fadeInUp 0.8s ease 0.7s both;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.9s both;
}

/* Carousel Controls */
.carousel-controls {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 4;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: var(--color-primary);
  width: 28px;
  box-shadow: var(--shadow-primary);
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--color-white);
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.carousel-prev {
  left: var(--space-6);
}

.carousel-next {
  right: var(--space-6);
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
}

/* Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  right: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  z-index: 4;
  animation: bounce 2s ease infinite;
}

.hero-scroll span {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
}

/* ══════════════════════════════════════════
   ABOUT / NOSOTROS - Cards
══════════════════════════════════════════ */
.value-card {
  background: var(--color-white);
  padding: var(--space-4); /* Mas pequeño */
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-dark-700);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.value-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.04) 0%, transparent 60%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.value-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 1;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

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

.value-card:hover::after {
  opacity: 1;
}

.value-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  background: rgba(3, 105, 161, 0.08);
  border: 1px solid rgba(3, 105, 161, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  font-size: var(--text-2xl);
  transition: all var(--transition-base);
}

.value-card:hover .value-icon {
  background: rgba(3, 105, 161, 0.15);
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-primary);
}

.value-card h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-gray-700);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-wide);
}

.value-card p {
  font-size: var(--text-base);
  color: var(--color-gray-400);
  line-height: var(--leading-loose);
}

/* ══════════════════════════════════════════
   SERVICIOS - Tabs Modernizados
══════════════════════════════════════════ */
.services-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  border-bottom: 2px solid var(--color-dark-700);
  flex-wrap: wrap;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: none;
  background: transparent;
  color: var(--color-gray-500);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
  border-bottom: 2px solid transparent;
}

.tab-btn svg {
  width: 18px;
  height: 18px;
}

.tab-btn:hover {
  color: var(--color-primary);
}

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-panel {
  display: none;
  animation: fadeInUp 0.4s ease both;
}

.tab-panel.active {
  display: block;
}

.tab-panel p {
  font-size: var(--text-base);
  color: var(--color-gray-500);
  line-height: var(--leading-loose);
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.service-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.service-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  width: 20px;
  height: 20px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: bold;
}

.service-feature-icon svg {
  width: 12px;
  height: 12px;
}

/* Video Wrapper */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.video-wrapper.vertical {
  padding-bottom: 0;
  height: auto;
  aspect-ratio: 9/16;
  max-width: 320px;
  margin: 0 auto;
  max-height: calc(100vh - 200px); /* Ajuste dinámico para que quepa en pantalla */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ══════════════════════════════════════════
   ESTADÍSTICAS / CONTADORES
══════════════════════════════════════════ */
.stat-card {
  text-align: center;
  padding: var(--space-6);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  transition: transform var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-5px);
  background: var(--glass-bg-hover);
}

.stat-number {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  font-weight: var(--weight-black);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-suffix {
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
  color: var(--color-primary);
}

.stat-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gray-300);
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  font-size: 1.4rem;
}

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

/* ══════════════════════════════════════════
   GALERÍA - Grid + Lightbox
══════════════════════════════════════════ */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.filter-btn {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-gray-400);
  background: #FFFFFF;
  border: 1px solid var(--color-dark-700);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-dark-600);
  cursor: pointer;
  aspect-ratio: 4/3;
  transition: transform var(--transition-base);
}

.gallery-item:hover {
  transform: scale(1.02);
  z-index: 2;
}

.gallery-item.video-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), filter var(--transition-base);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
  filter: brightness(0.6);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-icon {
  width: 52px;
  height: 52px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--color-dark-900);
  transform: scale(0.5);
  transition: transform var(--transition-spring);
  box-shadow: var(--shadow-primary);
}

.gallery-item:hover .gallery-overlay-icon {
  transform: scale(1);
}

.gallery-overlay-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-white);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base) 0.1s;
}

.gallery-item:hover .gallery-overlay-label {
  opacity: 1;
  transform: translateY(0);
}

.gallery-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0.5;
}

.gallery-play-btn {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--color-dark-900);
  animation: pulse 2s ease infinite;
}

/* ── Lightbox ── */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

#lightbox.open {
  display: flex;
  animation: fadeIn 0.3s ease both;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox img,
#lightbox video,
#lightbox .lightbox-iframe {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.lightbox-iframe {
  width: 80vw;
  height: 45vw;
  max-height: 80vh;
  border: none;
  border-radius: var(--radius-lg);
}

.lightbox-close {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  background: var(--glass-bg);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid var(--glass-border);
  z-index: 10;
}

.lightbox-close:hover {
  background: var(--color-primary);
  color: var(--color-dark-900);
  transform: scale(1.1) rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 10;
}

.lightbox-prev {
  left: var(--space-6);
}

.lightbox-next {
  right: var(--space-6);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--color-primary);
  color: var(--color-dark-900);
}

.lightbox-counter {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  z-index: 10;
}

/* ══════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════ */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: var(--space-8);
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info-card,
.contact-form {
  flex: 1;
  min-width: 320px;
}

.contact-info-card {
  background: #FFFFFF;
  border: 1px solid var(--color-dark-700);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: border-color var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.contact-info-card:hover {
  border-color: rgba(3, 105, 161, 0.3);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-dark-700);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item:hover .contact-icon {
  background: rgba(3, 105, 161, 0.15);
  transform: scale(1.05);
}

.contact-item-text h4 {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-gray-300);
  margin-bottom: var(--space-1);
}

.contact-item-text a,
.contact-item-text p {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  transition: color var(--transition-base);
  display: block;
}

.contact-item-text a:hover {
  color: var(--color-primary);
}

/* Contact Form */
.contact-form {
  background: #FFFFFF;
  border: 1px solid var(--color-dark-700);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-gray-400);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: #F8FAFC;
  border: 1.5px solid var(--color-dark-700);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-gray-700);
  transition: all var(--transition-base);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-gray-200);
}

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

.form-submit {
  width: 100%;
  padding: var(--space-4);
  background: var(--gradient-primary);
  color: var(--color-dark-900);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.form-submit.loading {
  opacity: 0.7;
  pointer-events: none;
}

.form-message {
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  margin-top: var(--space-4);
  display: none;
}

.form-message.success {
  background: rgba(0, 200, 100, 0.1);
  border: 1px solid rgba(0, 200, 100, 0.3);
  color: #00c864;
  display: block;
}

.form-message.error {
  background: rgba(255, 60, 60, 0.1);
  border: 1px solid rgba(255, 60, 60, 0.3);
  color: #ff3c3c;
  display: block;
}

/* Map */
.map-wrapper {
  height: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(30%) invert(5%) saturate(80%);
}

/* ══════════════════════════════════════════
   CHATBOT AI
══════════════════════════════════════════ */
.chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-modal);
}

.chat-toggle {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--color-dark-900);
  cursor: pointer;
  box-shadow: var(--shadow-primary);
  transition: all var(--transition-spring);
  animation: pulse 3s ease infinite;
  border: none;
  position: relative;
}

.chat-toggle:hover {
  transform: scale(1.1);
  animation-play-state: paused;
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  background: var(--color-secondary);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: var(--weight-bold);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-dark-800);
  animation: bounceIn 0.5s ease;
}

.chat-panel {
  position: absolute;
  bottom: calc(100% + var(--space-4));
  right: 0;
  width: 360px;
  background: #FFFFFF;
  border: 1px solid var(--color-dark-700);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
  max-height: 560px;
  animation: scaleIn 0.3s ease both;
  transform-origin: bottom right;
}

.chat-panel.open {
  display: flex;
}

.chat-header {
  padding: var(--space-4) var(--space-5);
  background: var(--gradient-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: #fff;
  flex-shrink: 0;
}

.chat-header-info h4 {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: #fff;
}

.chat-header-info p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-online-dot {
  width: 6px;
  height: 6px;
  background: #00c864;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.chat-close-btn {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--color-gray-400);
  font-size: 1.2rem;
  border: none;
}

.chat-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 280px;
  max-height: 380px;
  background: #F8FAFC;
  scrollbar-width: thin;
  scrollbar-color: var(--color-dark-600) transparent;
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  animation: fadeInUp 0.3s ease both;
}

.chat-message.user {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-message.bot {
  align-self: flex-start;
}

.chat-bubble-msg {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.chat-message.user .chat-bubble-msg {
  background: var(--gradient-primary);
  color: #fff;
  border-bottom-right-radius: var(--radius-sm);
}

.chat-message.bot .chat-bubble-msg {
  background: #FFFFFF;
  color: var(--color-gray-600);
  border: 1px solid var(--color-dark-700);
  border-bottom-left-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.chat-time {
  font-size: 0.65rem;
  color: var(--color-gray-300);
  margin-top: var(--space-1);
  padding: 0 var(--space-2);
}

.chat-typing {
  display: flex;
  gap: 4px;
  padding: var(--space-3) var(--space-4);
  background: var(--color-dark-600);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-sm);
  width: fit-content;
}

.typing-dot {
  width: 7px;
  height: 7px;
  background: var(--color-gray-500);
  border-radius: 50%;
}

.typing-dot:nth-child(1) {
  animation: typingDot 1.2s ease infinite 0s;
}

.typing-dot:nth-child(2) {
  animation: typingDot 1.2s ease infinite 0.2s;
}

.typing-dot:nth-child(3) {
  animation: typingDot 1.2s ease infinite 0.4s;
}

.chat-suggestions {
  padding: var(--space-3) var(--space-4);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  border-top: 1px solid var(--color-dark-700);
  background: #F8FAFC;
}

.chat-chip {
  padding: var(--space-1) var(--space-3);
  background: rgba(3, 105, 161, 0.08);
  border: 1px solid rgba(3, 105, 161, 0.25);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.chat-chip:hover {
  background: rgba(3, 105, 161, 0.18);
  transform: scale(1.05);
}

.chat-input-area {
  padding: var(--space-4);
  border-top: 1px solid var(--color-dark-700);
  display: flex;
  gap: var(--space-2);
  background: #FFFFFF;
}

.chat-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: #F8FAFC;
  border: 1.5px solid var(--color-dark-700);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  outline: none;
  transition: border-color var(--transition-base);
}

.chat-input::placeholder {
  color: var(--color-gray-200);
}

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

.chat-send {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  color: var(--color-dark-900);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  flex-shrink: 0;
}

.chat-send:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-primary);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: var(--color-gray-700);
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-10);
}

.footer-brand .nav-logo {
  margin-bottom: var(--space-5);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: var(--leading-loose);
  max-width: 280px;
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: var(--space-5);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col ul li a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-col ul li a:hover {
  color: var(--color-primary-light);
}

.footer-col ul li a::before {
  content: '›';
  color: var(--color-primary-light);
  opacity: 0.7;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-base);
  text-decoration: none;
}

.social-link:hover {
  background: rgba(3, 105, 161, 0.3);
  border-color: var(--color-primary-light);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom span {
  color: var(--color-primary-light);
}

/* Scroll to top */
#scrollTop {
  position: fixed;
  bottom: var(--space-8);
  left: var(--space-8);
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--color-dark-700);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-base);
  opacity: 0;
  pointer-events: none;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-sm);
}

#scrollTop.visible {
  opacity: 1;
  pointer-events: all;
}

#scrollTop:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

/* ══════════════════════════════════════════
   PDF DOWNLOAD BTN
══════════════════════════════════════════ */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.section-badge svg {
  width: 14px;
  height: 14px;
}

.pdf-download {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  background: transparent;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  transition: all var(--transition-base);
  margin-top: var(--space-8);
}

.pdf-download:hover {
  background: rgba(3, 105, 161, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(3, 105, 161, 0.2);
  color: var(--color-primary-dark);
}

.pdf-download svg {
  width: 18px;
  height: 18px;
}

/* ══════════════════════════════════════════
   BOTONES FLOTANTES: WhatsApp + Menu Mobile
══════════════════════════════════════════ */

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  bottom: 160px; /* Arriba del TikTok */
  right: var(--space-6);
  background: #25D366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: var(--z-fixed);
  transition: all var(--transition-base);
  animation: bounce 3s ease infinite;
  text-decoration: none;
  border: 3px solid rgba(255, 255, 255, 0.25);
}

/* TikTok Gallery Items */
/* Map */
.map-wrapper {
  height: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.tiktok-item {
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  height: 600px; /* Mas grande para que se observe mejor */
}

.tiktok-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-xl), 0 0 20px rgba(0, 198, 215, 0.15);
  border-color: var(--color-primary-light);
}

.skeleton-loader {
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


.tiktok-iframe {
  width: 100%;
  max-width: 450px;
  height: 600px;
  max-height: 70vh;
  border: none;
  background: black;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

/* Botones Flotantes (Consolidados) */

.tiktok-float {
  position: fixed;
  bottom: 90px; /* Arriba del Chat */
  right: var(--space-6);
  background: #000000;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: var(--z-fixed);
  transition: all var(--transition-base);
  animation: bounce 3s ease infinite 0.5s;
}

.chat-bubble {
  position: fixed;
  bottom: 20px;
  right: var(--space-6);
  z-index: var(--z-fixed);
}

.chat-toggle svg {
  width: 28px !important;
  height: 28px !important;
}

.chat-panel {
  z-index: var(--z-modal) !important;
}

.chat-toggle svg {
  width: 28px !important;
  height: 28px !important;
}

.chat-panel {
  z-index: var(--z-modal) !important;
}

.chat-toggle svg {
  width: 28px !important;
  height: 28px !important;
}

.chat-panel {
  z-index: var(--z-modal) !important;
}

/* Mobile Nav Overlay */
#nav-mobile {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  z-index: calc(var(--z-sticky) - 1);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

#nav-mobile.open {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}

#nav-mobile .nav-link {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-gray-700);
  padding: var(--space-4) var(--space-8);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-base);
}

#nav-mobile .nav-link:hover,
#nav-mobile .nav-link.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Hamburger animation */
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: all var(--transition-base);
  border-radius: 2px;
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  70% {
    transform: scale(1.4);
    opacity: 0;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}