:root {
  /* ======================================
     PALETA PRINCIPAL
     ====================================== */

  /* Colores Principales */
  --primary-color: #2199d5;
  /* Azul principal */
  --primary-dark: #1a7cad;
  /* Azul más oscuro */
  --primary-light: #4bb3e3;
  /* Azul más claro */

  /* Colores Secundarios y Acentos */
  --accent-cyan: #21d5b5;
  /* Verde-agua brillante */
  --accent-light-cyan: #5ee8d1;
  --accent-blue: #1c75bc;
  /* Azul profundo para detalles */
  --accent-soft-blue: #7ac7f1;

  /* Escala de Grises (neutros fríos) */
  --black: #0a0a0a;
  --dark-gray: #141418;
  --medium-gray: #1f1f24;
  --gray: #303038;
  --light-gray: #50505a;
  --lighter-gray: #8a8a94;
  --very-light-gray: #d7d7db;
  --white: #ffffff;

  /* Fondos (tema oscuro frío) */
  --bg-dark: #0d0f12;
  --bg-section: #15181d;
  --bg-card: #1c1f26;

  /* Tipografía */
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Montserrat", sans-serif;

  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 20px rgba(33, 153, 213, 0.35);

  /* Scroll Animations */
  --scroll-speed: 20s;
  --scroll-hover-speed: 35s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

body.loading {
  overflow: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ======================================
   PAGE LOADER
   ====================================== */

.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.loader-logo {
  animation: pulse 2s ease-in-out infinite;
}

.loader-logo img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(33, 153, 213, 0.5));
  border-radius: 12px;
}

@keyframes pulse {

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

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--medium-gray);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader-content p {
  color: var(--lighter-gray);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 1px;
}

/* ======================================
   NAVIGATION
   ====================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
  border-radius: 8px;
}

.logo-img:hover {
  transform: scale(1.05);
}

.logo h1 {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg,
      var(--primary-color),
      var(--primary-light));
  transition: width var(--transition-normal);
}

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

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-normal);
}

/* ======================================
   HERO SECTION
   ====================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  overflow: hidden;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) contrast(1.1) saturate(1.2);
  transition: opacity 0.7s ease-in-out;
  opacity: 1;
}

.hero-video.fade-out {
  opacity: 0;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(10, 10, 10, 0.8) 0%,
      rgba(33, 153, 213, 0.15) 50%,
      rgba(10, 10, 10, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Asegura que el contenido quede visible sobre todo */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-title {
  margin-bottom: 0.8rem;
  font-family: var(--font-secondary);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: 8px;
  text-transform: uppercase;
  background: linear-gradient(135deg,
      var(--white) 0%,
      var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow-text 2.5s ease-in-out infinite alternate;
}

@keyframes glow-text {
  from {
    filter: drop-shadow(0 0 4px rgba(33, 153, 213, 0.3));
  }

  to {
    filter: drop-shadow(0 0 12px rgba(33, 153, 213, 0.6));
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
  font-family: var(--font-secondary);
}

.hero-title {
  margin-bottom: 1rem;
}

.hero-description {
  margin-bottom: 2.5rem;
  font-size: 1.15rem;
  color: var(--lighter-gray);
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: 0.3px;
}

.hero-location {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--very-light-gray);
  margin-bottom: 2rem;
  font-family: var(--font-secondary);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 3rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  font-family: var(--font-secondary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--lighter-gray);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 0.5rem;
  font-weight: 500;
  font-family: var(--font-secondary);
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all var(--transition-normal);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  display: inline-block;
  font-family: var(--font-secondary);
}

.btn-primary {
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(33, 153, 213, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(33, 153, 213, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(33, 153, 213, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
  animation: float 3s ease-in-out infinite;
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  position: relative;
}

.mouse::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 2px;
  animation: scroll 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lighter-gray);
}

/* ======================================
   ANIMATIONS
   ====================================== */

@keyframes float {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

.delay-4 {
  animation-delay: 0.8s;
}

.delay-5 {
  animation-delay: 1s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }

  from {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* ======================================
   ABOUT SECTION
   ====================================== */

.about-section {
  padding: var(--spacing-xl) 0;
  background: var(--bg-section);
  position: relative;
}

.section-header {
  margin-bottom: var(--spacing-lg);
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-description {
  text-align: center;
}

.section-tag {
  display: inline-block;
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1.2rem;
  font-family: var(--font-secondary);
  position: relative;
  padding-bottom: 0.5rem;
}

.section-tag::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

.section-title {
  font-family: var(--font-secondary);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.section-description {
  font-size: 1.15rem;
  color: var(--lighter-gray);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.9;
  font-weight: 300;
  letter-spacing: 0.3px;
  text-align: justify;
  text-wrap: pretty;
}

.section-description .highlight {
  color: var(--primary-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.section-description .highlight:hover {
  color: var(--primary-light);
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
}

.about-text .lead {
  font-size: 1.35rem;
  color: var(--very-light-gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--lighter-gray);
  margin-bottom: 2rem;
  line-height: 1.85;
  font-weight: 300;
  letter-spacing: 0.2px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 12px;
  transition: all var(--transition-normal);
  border: 1px solid var(--medium-gray);
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.feature-item:hover {
  transform: translateY(-6px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-glow);
  background: var(--medium-gray);
}

.feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--primary-dark));
  border-radius: 10px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--white);
}

.feature-text h4 {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  font-family: var(--font-secondary);
}

.feature-text p {
  font-size: 1rem;
  color: var(--lighter-gray);
  margin: 0;
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: 0.2px;
}

.highlight {
  color: var(--primary-color);
  font-weight: 600;
}

/* ======================================
   MOSAICO DE SECTORES CPS
   ====================================== */

.sectors-mosaic {
  width: 100%;
  padding: var(--spacing-xl) 0;
  background: var(--bg-dark);
}

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  width: 100%;
  margin-top: var(--spacing-lg);
}

.mosaic-item {
  position: relative;
  height: 350px;
  overflow: hidden;
  cursor: pointer;
  grid-column: span 2;
}

.mosaic-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: 0;
  filter: blur(3px);
  will-change: opacity;
}

/* Los últimos 2 bloques ocupan 3 columnas cada uno (mitad del ancho) */
.mosaic-item:nth-child(4) {
  grid-column: span 3;
}

.mosaic-item:nth-child(5) {
  grid-column: span 3;
}

/* Overlay oscuro */
.mosaic-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
  transition: background 0.3s ease;
}

.mosaic-item:hover .mosaic-overlay {
  background: rgba(0, 0, 0, 0.35);
}

/* Contenido del mosaico */
.mosaic-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.mosaic-tag {
  color: var(--white);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-family: var(--font-secondary);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.mosaic-item h3 {
  margin: 6px 0 0 0;
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.3px;
  font-family: var(--font-secondary);
}

.obras-preview-cta {
  text-align: center;
  margin-top: var(--spacing-lg);
}

/* Responsive */
@media (max-width: 768px) {
  .mosaic-grid {
    grid-template-columns: 1fr;
  }

  .mosaic-item:nth-child(4),
  .mosaic-item:nth-child(5) {
    grid-column: span 1;
  }

  .mosaic-item {
    height: 300px;
  }
}

/* ======================================
   CLIENTS SECTION - CAROUSEL
   ====================================== */

.clients-section {
  padding: var(--spacing-xl) 0;
  background: var(--bg-dark);
  overflow: hidden;
  position: relative;
}

.clients-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 900px 500px at center,
      rgba(33, 153, 213, 0.12) 0%,
      rgba(33, 153, 213, 0.06) 40%,
      transparent 70%);
  pointer-events: none;
}

.clients-carousel-wrapper {
  position: relative;
  padding: 3rem 0;
  overflow: hidden;
  mask-image: linear-gradient(to right,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%);
  -webkit-mask-image: linear-gradient(to right,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%);
}

.clients-carousel {
  display: flex;
  gap: 4rem;
  width: max-content;
  will-change: transform;
}

.client-logo-item {
  flex-shrink: 0;
  width: 220px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.12) 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* Gradiente sutil blanco en hover */
.client-logo-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0.15) 50%,
      rgba(255, 255, 255, 0.2) 100%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: 14px;
}

/* Borde interior */
.client-logo-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 2;
}

.client-logo-item:hover::before {
  opacity: 1;
}

.client-logo-item:hover {
  transform: scale(1.08) translateY(-8px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.3) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
    0 4px 20px rgba(255, 255, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

/* LOGOS */
.client-logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: brightness(1.3) contrast(1.15) saturate(0) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transition: all var(--transition-normal);
  position: relative;
  z-index: 1;
  max-width: 85%;
  max-height: 95px;
  padding: 0.5rem;
}

.client-logo-item.wide img {
  max-height: 100px;
  max-width: 90%;
  transform: scale(1.2);
}

.client-logo-item.compact img {
  max-height: 100px;
  transform: scale(1.25);
}

.client-logo-item:hover img {
  filter: brightness(1.1) contrast(1.1) saturate(1);
  transform: scale(1.05);
}


/* Loader */
.clients-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 0;
  width: 100%;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(33, 153, 213, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ======================================
   CONTACT SECTION
   ====================================== */

.contact-section {
  padding: var(--spacing-xl) 0;
  background: var(--bg-section);
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid var(--medium-gray);
}

.contact-info h3 {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 1.1rem;
  color: var(--lighter-gray);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  color: var(--very-light-gray);
  font-size: 1.05rem;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary-color);
  flex-shrink: 0;
}

.contact-link {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.contact-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-map-row {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-map {
  width: 100%;
  height: 100%;
}

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

  .contact-map-row {
    height: 300px;
  }
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  height: 100%;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  color: var(--primary-light);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-family: inherit;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.form-group input.valid,
.form-group textarea.valid {
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.1);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
}

.form-response {
  text-align: center;
  margin-top: 1rem;
  font-weight: 500;
}

/* ======================================
   FOOTER
   ====================================== */

.footer {
  background: var(--black);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--medium-gray);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-social a {
  color: var(--light-gray);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}


.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand h3 {
  font-family: var(--font-secondary);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--lighter-gray);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.3px;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--lighter-gray);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font-secondary);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--medium-gray);
}

.footer-bottom p {
  color: var(--light-gray);
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.3px;
}

/* ======================================
   RESPONSIVE DESIGN
   ====================================== */

@media (max-width: 1100px) {

  /* NAV */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: right var(--transition-normal);
    backdrop-filter: blur(10px);
  }

  .nav-links.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.2rem;
  }

  .logo-img {
    height: 40px;
  }

  .logo h1 {
    font-size: 1.4rem;
  }

  .scroll-indicator {
    display: none;
  }

  /* HERO */

  /* HERO */
  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    letter-spacing: 3px;
  }

  .hero-subtitle {
    margin-top: 3.5rem;
    /* 🔹 más cerca del borde superior */
    font-size: 1rem;
  }

  .hero-content {
    padding-top: 4.5rem;
    /* 🔹 se redujo */
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.75rem;
    margin-top: 0.25rem;
  }

  /* BOTONES HERO */
  .hero-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .hero-cta .btn {
    font-size: 0.9rem;
    padding: 0.85rem 0.4rem;
    border-radius: 40px;
    text-align: center;
    white-space: nowrap;
    /* 🔹 evita salto de línea */
  }

  /* SECCIONES */
  .about-features {
    grid-template-columns: 1fr;
  }

  .clients-carousel {
    gap: 2.5rem;
    animation: scroll-infinite 30s linear infinite;
  }

  .client-logo-item {
    width: 140px;
    height: 70px;
    padding: 0.4rem;
  }

  .contact-info {
    padding: 2rem;
  }

  /* FOOTER */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 35px;
  }

  .logo h1 {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  .hero-subtitle {
    margin-top: 4.5rem;
    font-size: 0.9rem;
  }

  .hero-content {
    padding-top: 4rem;
  }

  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .hero-cta {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    max-width: 290px;
  }

  .hero-cta .btn {
    font-size: 0.85rem;
    padding: 0.75rem 0.4rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .hero-stats {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-description {
    font-size: 1rem;
    line-height: 1.8;
    text-align: left;
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .clients-carousel {
    gap: 2rem;
    animation: scroll-infinite 25s linear infinite;
  }

  .client-logo-item {
    width: 120px;
    height: 60px;
    padding: 0.3rem;
  }
}

/* Selector de idioma */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-card);
  padding: 0.3rem;
  border-radius: 25px;
  border: 2px solid var(--medium-gray);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--lighter-gray);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  letter-spacing: 0.5px;
  font-family: var(--font-secondary);
  position: relative;
}

.lang-btn::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transform: translateX(-50%);
  transition: width var(--transition-normal);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(33, 153, 213, 0.3);
  transform: scale(1.05);
}

.lang-btn.active::before {
  width: 0%;
}

.lang-btn:hover:not(.active) {
  background: var(--medium-gray);
  color: var(--primary-color);
  transform: translateY(-1px);
}

/* MODO MÓVIL */
@media (max-width: 768px) {
  .lang-selector {
    flex-direction: row;
    gap: 1rem;
  }

  .lang-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }
}

/* ======================================
   SCROLL ANIMATIONS
   ====================================== */

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}