/* Modern CSS Reset and Variables */
:root {
  /* NUEVA PALETA DE COLORES: Azules y Naranjas Modernos */
  --primary-blue: #0056b3; /* Azul principal, vibrante y profesional */
  --primary-blue-dark: #003f80; /* Tono más oscuro del azul */
  --primary-blue-light: #3399ff; /* Tono más claro del azul */
  --secondary-orange: #ff8c00; /* Naranja secundario, enérgico y cálido */
  --secondary-orange-dark: #cc7000; /* Tono más oscuro del naranja */
  --secondary-orange-light: #ffa500; /* Tono más claro del naranja */
  --accent-teal: #00bfa5; /* Un toque de verde azulado para contraste sutil */

  /* Gradientes actualizados */
  --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-orange) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-orange) 0%, var(--secondary-orange-light) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(0, 86, 179, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);

  /* Neutrals */
  --white: #ffffff;
  --black: #111827;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Typography */
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Inter", sans-serif;

  /* Spacing */
  --section-padding: 120px 0;
  --container-padding: 0 20px;
  --header-height: 160px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  color: var(--gray-800);
  overflow-x: hidden;
  background-color: var(--gray-50);
  padding-top: calc(var(--header-height) + 20px); /* Añade 20px de espacio extra */
  scroll-padding-top: var(--header-height); /* AÑADIDO: Para el scroll suave */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.section-padding {
  padding: var(--section-padding);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

.section-subtitle {
  display: inline-block;
  color: var(--secondary-orange); /* Usar naranja para el subtítulo */
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
}

.section-subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: var(--before-width, 0); /* Usar una variable CSS para la animación */
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal); /* Transición para la animación */
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.section-title .highlight {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

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

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

.btn-secondary {
  background: var(--secondary-orange); /* Usar el naranja directo */
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.btn-secondary:hover {
  background: var(--secondary-orange-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-accent {
  background: var(--gradient-secondary); /* Usar el gradiente naranja */
  color: var(--gray-900);
  box-shadow: var(--shadow-lg);
}

.btn-accent:hover {
  background: var(--secondary-orange-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue); /* Usar el azul principal */
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
  color: var(--white);
}

.loader-container {
  position: relative;
  margin-bottom: 2rem;
}

.loader {
  width: 80px;
  height: 80px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 0.25rem;
}

.loader-letter {
  font-size: 1.5rem;
  font-weight: 800;
  animation: bounce 1.5s ease-in-out infinite;
}

.loader-letter:nth-child(1) {
  animation-delay: 0s;
}
.loader-letter:nth-child(2) {
  animation-delay: 0.1s;
}
.loader-letter:nth-child(3) {
  animation-delay: 0.2s;
}
.loader-letter:nth-child(4) {
  animation-delay: 0.3s;
}
.loader-letter:nth-child(5) {
  animation-delay: 0.4s;
}

.preloader-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  opacity: 0.9;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--primary-blue); /* Usar el nuevo azul principal */
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.header.scrolled {
  background: rgba(0, 86, 179, 0.95); /* Azul principal con transparencia */
  backdrop-filter: blur(10px);
}

.header-top {
  background: var(--gray-900);
  padding: 0.75rem 0;
  font-size: 0.875rem;
}

.header-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-info {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-size: 0.875rem;
  white-space: nowrap;
}

.contact-item-header i {
  color: var(--secondary-orange); /* Iconos de contacto en naranja */
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--secondary-gold);
  color: var(--gray-900);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.social-link:hover {
  background: var(--secondary-gold-light);
  transform: scale(1.1);
}

.header-main {
  padding: 1rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo img {
  height: 3.5rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all var(--transition-normal);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-gold);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--secondary-gold-light);
}

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

.nav-link:hover {
  color: var(--secondary-orange-light);
}

/* ==========================================================================
 IMPROVED SUBMENU DESIGN
 ========================================================================== */

.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 280px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  list-style: none;
  padding: 1.5rem 0;
  border: 1px solid var(--gray-100);
  z-index: 1001;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Elegant top border accent */
.submenu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary); /* Usar el nuevo gradiente principal */
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

/* Subtle background pattern */
.submenu::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(0, 86, 179, 0.05) 0%, transparent 70%); /* Azul con transparencia */
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.has-submenu:hover .submenu::before {
  transform: scaleX(1);
}

.submenu li {
  margin: 0;
  position: relative;
}

.submenu a {
  padding: 0.5rem 0.5rem;
  display: flex;
  align-items: center;
  color: var(--gray-700);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  border-left: 3px solid transparent;
}

/* Icon for each service */
.submenu a::before {
  content: "🚛";
  margin-right: 0.75rem;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

/* Different icons for different services */
.submenu li:nth-child(1) a::before {
  content: "🚛";
} /* Servicio de Grúa */
.submenu li:nth-child(2) a::before {
  content: "🚗";
} /* Remolque de Autos */
.submenu li:nth-child(3) a::before {
  content: "🛣️";
} /* Servicio de Carretera */
.submenu li:nth-child(4) a::before {
  content: "🛞";
} /* Cambio de Neumáticos */
.submenu li:nth-child(5) a::before {
  content: "🔋";
} /* Servicios de Baterías */
.submenu li:nth-child(6) a::before {
  content: "🚙";
} /* Autos Chatarras */
.submenu li:nth-child(7) a::before {
  content: "💰";
} /* Dinero por Autos Chatarras */

.submenu a:hover {
  background: linear-gradient(90deg, rgba(0, 86, 179, 0.08) 0%, rgba(255, 140, 0, 0.05) 100%); /* Gradiente suave */
  color: var(--primary-blue); /* Usar el nuevo azul */
  border-left-color: var(--secondary-orange); /* Usar el nuevo naranja */
  transform: translateX(5px);
}

.submenu a:hover::before {
  transform: scale(1.2) rotate(5deg);
}

/* Hover effect with subtle animation */
.submenu a::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background: var(--secondary-orange); /* Usar el nuevo naranja */
  transition: width 0.3s ease;
}

.submenu a:hover::after {
  width: 20px;
}

/* Enhanced dropdown arrow animation */
.has-submenu > .nav-link i {
  transition: transform 0.3s ease;
}

.has-submenu:hover > .nav-link i {
  transform: rotate(180deg);
}

/* Staggered animation for submenu items */
.submenu li:nth-child(1) {
  animation-delay: 0.05s;
}
.submenu li:nth-child(2) {
  animation-delay: 0.1s;
}
.submenu li:nth-child(3) {
  animation-delay: 0.15s;
}
.submenu li:nth-child(4) {
  animation-delay: 0.2s;
}
.submenu li:nth-child(5) {
  animation-delay: 0.25s;
}
.submenu li:nth-child(6) {
  animation-delay: 0.3s;
}
.submenu li:nth-child(7) {
  animation-delay: 0.35s;
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.has-submenu:hover .submenu li {
  animation: slideInFromTop 0.4s ease forwards;
}

/* Enhanced focus states for accessibility */
.submenu a:focus {
  outline: 2px solid var(--secondary-orange); /* Usar el nuevo naranja */
  outline-offset: -2px;
  background: rgba(0, 86, 179, 0.1); /* Azul con transparencia */
}

/* Smooth entrance animation */
.has-submenu:hover .submenu {
  animation: menuFadeIn 0.4s ease forwards;
}

@keyframes menuFadeIn {
  0% {
    opacity: 0;
    transform: translateY(15px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile submenu improvements */
.mobile-nav .submenu {
  position: static;
  background: var(--gray-50);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-lg);
  margin: 0.5rem 0;
  padding: 0;
  border: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  min-width: auto;
}

.mobile-nav .submenu::before,
.mobile-nav .submenu::after {
  display: none;
}

.mobile-nav .submenu a {
  padding: 0.75rem 1.5rem;
  border-left: none;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
}

.mobile-nav .submenu a:last-child {
  border-bottom: none;
}

.mobile-nav .submenu a:hover {
  background: var(--white);
  transform: none;
  border-left: none;
}

/* ==========================================================================
 END IMPROVED SUBMENU DESIGN
 ========================================================================== */

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

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

/* Hero Carousel Section */
.hero-carousel {
  position: relative;
  /* Usar min-height para permitir que el contenido dicte la altura si es necesario */
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
  background-color: var(--gray-900);
}

.carousel-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) contrast(1.1);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* MUCH DARKER OVERLAY FOR BETTER TEXT READABILITY */
.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 86, 179, 0.7) 0%, rgba(17, 24, 39, 0.7) 50%, rgba(255, 140, 0, 0.6) 100%);
  z-index: 2;
}

.hero-content-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  max-width: 700px;
  text-align: center;
  margin: 0 auto;
  padding-bottom: 2rem; /* Añadido para asegurar espacio en la parte inferior */
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 140, 0, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 140, 0, 0.3);
  color: var(--gray-900);
  box-shadow: var(--shadow-lg);
}

/* ENHANCED TEXT READABILITY */
.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 0, 0, 0.3);
  line-height: 1;
}

.title-line {
  display: block;
}

.title-line.highlight {
  background: linear-gradient(45deg, var(--secondary-orange), var(--secondary-orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

.hero-text {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-btn {
  font-size: 1rem;
  padding: 1.25rem 2.5rem;
}

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

.contact-btn {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--secondary-orange);
  color: var(--gray-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

.contact-btn:hover {
  background: var(--secondary-orange-light);
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.contact-btn.pulse {
  animation: pulse 2s infinite;
}

.contact-info-hero {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.contact-label {
  font-size: 0.875rem;
  opacity: 0.9;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.contact-number {
  font-size: 1.125rem;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

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

.stat-item-hero {
  text-align: center;
  background: rgba(255, 140, 0, 0.15);
  backdrop-filter: blur(15px);
  padding: 1.5rem 1rem;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255, 140, 0, 0.3);
  min-width: 120px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.stat-number-hero {
  display: inline-block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--secondary-orange-light);
  margin-bottom: 0.25rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 140, 0, 0.5);
}

.stat-plus,
.stat-percent {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--secondary-orange-light);
  margin-left: 0.25rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.stat-label-hero {
  display: block;
  font-size: 0.875rem;
  opacity: 0.95;
  font-weight: 600;
  margin-top: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  white-space: normal; /* Asegura que el texto se envuelva */
}

/* Carousel Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border: none;
  padding: 1rem;
  cursor: pointer;
  z-index: 4;
  font-size: 1.5rem;
  border-radius: var(--radius-md);
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-control:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
  left: 1rem;
}

.carousel-control.next {
  right: 1rem;
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 4;
}

.indicator {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.indicator.active {
  background: var(--secondary-orange);
  transform: scale(1.2);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 140, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes bounce-vertical {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Optimización para pantallas anchas y bajas (como tu laptop) */
@media (min-width: 1280px) and (max-height: 900px) {
  .hero-carousel {
    min-height: calc(100vh - var(--header-height)); /* Usar min-height */
    height: auto; /* Permitir que la altura se ajuste al contenido */
    padding-top: 1rem; /* Ajustar padding superior */
    padding-bottom: 1rem; /* Ajustar padding inferior */
  }

  .hero-content-wrapper {
    padding-top: 1rem; /* Ajustar padding superior */
    padding-bottom: 1rem; /* Ajustar padding inferior */
  }

  .hero-content {
    padding-top: 0.5rem; /* Ajustar padding superior para centrar mejor */
    padding-bottom: 0.5rem; /* Asegurar espacio inferior */
  }

  .hero-badge {
    margin-bottom: 0.8rem; /* Reducir margen */
    padding: 0.6rem 1.2rem; /* Reducir padding */
    font-size: 0.8rem; /* Reducir tamaño de fuente */
  }

  .hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Ajustar tamaño de fuente más agresivo */
    margin-bottom: 0.8rem; /* Reducir margen */
  }

  .hero-text {
    font-size: 1rem; /* Ajustar tamaño de fuente */
    margin-bottom: 1.5rem; /* Reducir margen */
  }

  .hero-actions {
    gap: 1rem; /* Reducir espacio entre botones */
    margin-bottom: 1.5rem; /* Reducir margen */
  }

  .hero-btn {
    padding: 0.9rem 2rem; /* Ajustar padding del botón */
    font-size: 0.9rem; /* Ajustar tamaño de fuente */
  }

  .hero-contact {
    gap: 0.8rem; /* Reducir espacio */
  }

  .contact-btn {
    width: 3.5rem; /* Reducir tamaño del botón de contacto */
    height: 3.5rem;
    font-size: 1.1rem;
  }

  .contact-label {
    font-size: 0.8rem; /* Reducir tamaño de fuente */
  }

  .contact-number {
    font-size: 1rem; /* Reducir tamaño de fuente */
  }

  .hero-stats {
    gap: 1rem; /* Reducir espacio entre estadísticas */
  }

  .stat-item-hero {
    padding: 0.8rem 0.6rem; /* Reducir padding de las estadísticas */
    min-width: 90px; /* Asegurar un ancho mínimo */
  }

  .stat-number-hero {
    font-size: 1.6rem; /* Reducir tamaño de número */
  }

  .stat-plus,
  .stat-percent {
    font-size: 1.1rem; /* Reducir tamaño de símbolos */
  }

  .stat-label-hero {
    font-size: 0.7rem; /* Reducir tamaño de etiqueta */
  }
}

/* Marquee Section */
.marquee-section {
  background: var(--gradient-primary);
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
}

.marquee-container {
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
  color: var(--white);
  font-weight: 600;
  font-size: 1.125rem;
}

.marquee-text {
  margin: 0 2rem;
}

.marquee-separator {
  color: var(--secondary-orange-light);
  font-size: 1.5rem;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* About Section */
.about {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%230056b3" opacity="0.3"/><circle cx="15" cy="5" r="2" fill="%23ff8c00" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-images {
  position: relative;
}

.about-img-main {
  position: relative;
  z-index: 3;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.about-img-main img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

.img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.about-img-main:hover .img-overlay {
  opacity: 1;
}

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

.play-button {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--secondary-orange);
  color: var(--gray-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.play-button:hover {
  transform: scale(1.1);
  background: var(--secondary-orange-light);
}

.about-img-secondary {
  position: absolute;
  bottom: -3rem;
  right: -3rem;
  z-index: 2;
  width: 60%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-img-secondary img {
  width: 100%;
  height: auto;
}

.experience-badge {
  position: absolute;
  top: 50%;
  left: -2rem;
  background: var(--gradient-primary);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  z-index: 4;
  box-shadow: var(--shadow-xl);
  min-width: 140px;
}

.experience-badge.floating {
  animation: float 3s ease-in-out infinite;
}

.experience-number {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
  display: inline-block;
}

.experience-plus {
  font-size: 2rem;
  font-weight: 900;
  color: var(--secondary-orange-light);
  display: inline-block;
}

.experience-badge p {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
  opacity: 0.9;
}

.decorative-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.dot-pattern {
  position: absolute;
  top: -2rem;
  left: -2rem;
  width: 6rem;
  height: 6rem;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><circle cx="5" cy="5" r="2" fill="%230056b3" opacity="0.3"/><circle cx="15" cy="5" r="2" fill="%23ff8c00" opacity="0.3"/></svg>');
}

.geometric-shape {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 4rem;
  height: 4rem;
  background: var(--secondary-orange);
  opacity: 0.2;
  border-radius: 50%;
}

.morph-svg-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  max-width: 400px;
  max-height: 400px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.morph-svg {
  width: 100%;
  height: 100%;
}

.morph-svg path {
  fill: var(--accent-teal);
  opacity: 0.3;
  transition: fill 0.3s ease;
}

.about-text {
  position: relative;
}

.quote {
  position: relative;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--gray-700);
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--secondary-orange);
}

.quote-icon {
  color: var(--secondary-orange);
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.about-text-content p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-600);
}

.about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  color: var(--gray-700);
  box-shadow: var(--shadow-sm);
}

.feature-item i {
  color: var(--primary-blue);
  font-size: 1.25rem;
}

.about-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Stats Section */
.stats {
  position: relative;
  background: var(--gray-900);
  overflow: hidden;
}

.stats-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("/placeholder.svg?height=600&width=1920") center / cover;
  z-index: 1;
}

.stats-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 86, 179, 0.95) 0%, rgba(0, 63, 128, 0.9) 100%);
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 3;
}

.modern-stat {
  text-align: center;
  color: var(--white);
  padding: 3rem 1.5rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 140, 0, 0.3);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.modern-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.1;
  transition: left 0.5s ease;
}

.modern-stat:hover::before {
  left: 0;
}

.modern-stat:hover {
  transform: translateY(-0.5rem) scale(1.02);
  border-color: var(--secondary-orange);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(255, 140, 0, 0.2);
}

.stat-icon {
  font-size: 3.5rem;
  color: var(--secondary-orange);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.3));
}

.stat-content {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 4.5rem;
  font-weight: 900;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  text-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.stat-symbol {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--secondary-orange-light);
  display: inline-block;
  margin-left: 0.25rem;
  text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.stat-label {
  font-size: 1.25rem;
  font-weight: 700;
  opacity: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
}

/* Services Section */
.services {
  background: var(--white);
}

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

.modern-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-100);
  position: relative;
}

.modern-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.modern-card:hover::before {
  transform: scaleX(1);
}

.modern-card:hover {
  transform: translateY(-0.75rem);
  box-shadow: var(--shadow-2xl);
}

.service-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 86, 179, 0.8) 0%, rgba(255, 140, 0, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modern-card:hover .service-overlay {
  opacity: 1;
}

.modern-card:hover .service-image img {
  transform: scale(1.1);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  background: var(--white);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.service-content {
  padding: 2rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.service-description {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.service-link:hover {
  gap: 1rem;
}

/* CTA Section */
.cta {
  position: relative;
  background: var(--gray-900);
  overflow: hidden;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("/placeholder.svg?height=600&width=1920") center / cover;
  z-index: 1;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.95;
  z-index: 2;
}

.cta-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="50" cy="50" r="3" fill="%23ffffff" opacity="0.1"/><circle cx="150" cy="80" r="2" fill="%23ffa500" opacity="0.2"/></svg>');
  animation: float 15s ease-in-out infinite;
  z-index: 3;
}

.cta-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 4;
  color: var(--white);
}

.cta-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.cta-phone {
  width: 5rem;
  height: 5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  text-decoration: none;
  transition: all var(--transition-normal);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-phone:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.cta-info {
  display: flex;
  flex-direction: column;
}

.cta-label {
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cta-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.cta-number:hover {
  color: var(--secondary-orange-light);
}

.cta-text {
  flex: 1;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cta-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Testimonials Section */
.testimonials {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

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

.modern-testimonial {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  border-left: 4px solid var(--secondary-orange);
  position: relative;
  overflow: hidden;
}

.modern-testimonial::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--gradient-soft);
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.modern-testimonial:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-xl);
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
}

.testimonial-rating i {
  color: var(--secondary-orange);
  font-size: 1.125rem;
}

.quote-mark {
  font-size: 2rem;
  color: var(--primary-blue);
  opacity: 0.3;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.author-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--secondary-orange-light);
  box-shadow: var(--shadow-md);
}

.author-name {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--gray-900);
}

.author-role {
  color: var(--gray-600);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--white);
}

.footer-marquee {
  background: var(--gradient-primary);
  padding: 1rem 0;
  overflow: hidden;
}

.footer-content {
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-logo {
  height: 4rem;
  margin-bottom: 1.5rem;
}

.footer-description {
  line-height: 1.7;
  color: var(--gray-300);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

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

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--secondary-orange-light);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color var(--transition-normal);
  font-weight: 500;
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--gray-300);
  line-height: 1.5;
}

.contact-item i {
  color: var(--secondary-orange);
  width: 1.25rem;
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.contact-item a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.contact-item a:hover {
  color: var(--secondary-orange);
}

.footer-map iframe {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.footer-bottom {
  background: var(--gray-800);
  padding: 1.5rem 0;
  border-top: 1px solid var(--gray-700);
}

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

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

.footer-bottom-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-normal);
}

.footer-bottom-links a:hover {
  color: var(--secondary-orange);
}

/* Floating Action Buttons */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}

.floating-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.25rem;
  color: var(--white);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.floating-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.floating-btn:hover::before {
  left: 100%;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.floating-btn.whatsapp {
  background: #25d366;
}

.floating-btn.phone {
  background: var(--gradient-primary);
}

.floating-btn.facebook {
  background: #1877f2;
}

.floating-btn.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.floating-btn.tiktok {
  background: #000000;
}

.floating-tooltip {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gray-900);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  margin-right: 1rem;
}

.floating-btn:hover .floating-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Scroll to Top */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: 9998;
  transition: right var(--transition-normal);
  box-shadow: var(--shadow-2xl);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.5rem; /* Ajustado padding */
  border-bottom: 1px solid var(--gray-200);
  background: var(--primary-blue);
  height: 48px; /* Reducido a 48px */
}

.mobile-logo {
  height: 1.2rem; /* Reducido el tamaño del logo */
  width: auto;
  object-fit: contain;
  border-radius: 50%;
}

.desktop-logo {
  object-fit: contain;
  height: 100%;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.3rem; /* Ligeramente más pequeño */
  cursor: pointer;
  color: var(--white);
  padding: 0.3rem; /* Ligeramente más pequeño */
}

.mobile-nav ul {
  list-style: none;
  padding: 1rem; /* Reducido padding */
}

.mobile-nav li {
  margin-bottom: 0.6rem; /* Reducido margen */
}

.mobile-nav a {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0; /* Reducido padding */
  font-size: 0.75rem; /* Reducido tamaño de fuente */
  transition: color var(--transition-normal);
  border-bottom: 1px solid var(--gray-100);
}

.mobile-nav a:hover {
  color: var(--primary-blue);
}

.mobile-nav .has-submenu.active .submenu {
  display: block;
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(2rem);
}

.fade-in.animated {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

.reveal-img {
  opacity: 0;
  transform: scale(0.9);
}

.reveal-img.animated {
  opacity: 1;
  transform: scale(1);
  transition: all 0.8s ease;
}

.counter {
  opacity: 1;
}

.counter.animated {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Text Center Utility */
.text-center {
  text-align: center;
}

/* ENHANCED RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
    --header-height: 140px;
  }

  .submenu {
    min-width: 250px;
    padding: 1rem 0;
  }

  .submenu a {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

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

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

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

  .contact-info {
    gap: 1rem;
  }

  .contact-item-header {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    --header-height: 48px; /* Reducido aún más para móvil */
  }

  .header-top {
    display: none !important;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-content {
    justify-content: space-between;
    padding: 0.1rem 0; /* Reducido padding */
  }

  .logo img {
    height: 1.2rem; /* Reducido tamaño del logo */
  }

  .hero-carousel {
    min-height: calc(100vh - var(--header-height)); /* Usar min-height */
    height: auto; /* Permitir que la altura se ajuste al contenido */
    margin-top: 0;
    padding-top: 0.5rem; /* Ajustado padding superior para espacio */
    padding-bottom: 0.5rem; /* Ajustado padding inferior para espacio */
  }

  .hero-content {
    text-align: center;
    padding: 0 1rem;
    padding-top: 10.2rem; /* Ajustado padding superior */
    padding-bottom: 0.2rem; /* Ajustado padding inferior */
  }

  .hero-badge {
    font-size: 0.6rem;
    padding: 0.3rem 0.8rem;
    margin-bottom: 0.5rem; /* Reducido margen */
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.5rem); /* Ajustado para pantallas muy pequeñas */
    margin-bottom: 0.8rem; /* Reducido margen */
  }

  .hero-text {
    font-size: 0.8rem;
    margin-bottom: 0.8rem; /* Reducido margen */
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.6rem; /* Reducido espacio */
    margin-bottom: 0.8rem; /* Reducido margen */
  }

  .hero-btn {
    padding: 0.6rem 1.2rem; /* Ajustado padding del botón */
    font-size: 0.75rem; /* Ajustado tamaño de fuente */
  }

  .hero-contact {
    flex-direction: column;
    gap: 0.4rem; /* Reducido espacio */
    text-align: center;
  }

  .contact-btn {
    width: 2.8rem; /* Reducido tamaño del botón de contacto */
    height: 2.8rem;
    font-size: 0.9rem;
  }

  .contact-label {
    font-size: 0.7rem; /* Reducido tamaño de fuente */
  }

  .contact-number {
    font-size: 0.8rem; /* Reducido tamaño de fuente del número */
  }

  .hero-stats {
    gap: 0.6rem; /* Reducido espacio */
    flex-wrap: wrap;
  }

  .stat-item-hero {
    min-width: 70px; /* Ajustado min-width */
    padding: 0.5rem 0.3rem; /* Reducido padding */
  }

  .stat-number-hero {
    font-size: 1.4rem; /* Reducido tamaño de número */
  }

  .stat-plus,
  .stat-percent {
    font-size: 0.9rem; /* Reducido tamaño de símbolos */
  }

  .stat-label-hero {
    font-size: 0.65rem; /* Reducido tamaño de etiqueta */
    white-space: normal; /* Asegura que el texto se envuelva */
  }

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

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

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .modern-stat {
    padding: 2rem 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .floating-actions {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .floating-btn {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
  }

  .about-img-secondary {
    display: none;
  }

  .experience-badge {
    position: static;
    margin-top: 2rem;
    display: inline-block;
  }

  .cta-contact {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-phone {
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
  }
}

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

  .header-top {
    padding: 0.75rem 0;
  }

  .contact-item-header {
    font-size: 0.8rem;
    padding: 0.4rem;
    max-width: 280px;
  }

  .contact-item-header i {
    font-size: 0.9rem;
  }

  .hero-badge {
    font-size: 0.6rem; /* Más pequeño */
    padding: 0.3rem 0.7rem; /* Más compacto */
  }

  .hero-title {
    font-size: clamp(1.4rem, 10vw, 2rem); /* Ajustado para pantallas muy pequeñas */
  }

  .hero-text {
    font-size: 0.75rem; /* Más pequeño */
    margin-bottom: 0.8rem; /* Más compacto */
  }

  .hero-stats {
    flex-direction: column;
    gap: 0.6rem; /* Más compacto */
  }

  .stat-item-hero {
    min-width: auto;
    width: 100%;
    max-width: 160px; /* Ligeramente más estrecho */
    margin: 0 auto;
    padding: 0.6rem 0.4rem; /* Más compacto */
  }

  .about-features {
    flex-direction: column;
  }

  .feature-item {
    justify-content: center;
    text-align: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

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

  .contact-item {
    align-items: center;
    text-align: center;
    flex-direction: column;
    gap: 0.5rem;
  }

  .contact-item i {
    margin-top: 0;
  }

  .btn {
    padding: 0.6rem 1.2rem; /* Ajustado padding */
    font-size: 0.7rem; /* Ajustado tamaño de fuente */
  }

  .hero-btn {
    padding: 0.8rem 1.6rem; /* Ajustado padding */
  }

  .stat-number {
    font-size: 2.2rem; /* Más pequeño */
  }

  .stat-symbol {
    font-size: 1.6rem; /* Más pequeño */
  }

  .stat-label {
    font-size: 0.8rem; /* Más pequeño */
  }
}

@media (max-width: 360px) {
  .contact-item-header {
    font-size: 0.65rem; /* Aún más pequeño */
    max-width: 200px;
  }

  .hero-title {
    font-size: clamp(1.2rem, 12vw, 1.6rem); /* Aún más pequeño */
  }

  .section-title {
    font-size: clamp(1.2rem, 8vw, 1.8rem); /* Aún más pequeño */
  }

  .btn {
    padding: 0.3rem 0.7rem; /* Aún más pequeño */
    font-size: 0.45rem; /* Aún más pequeño */
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .hero-carousel {
    min-height: calc(100vh - var(--header-height)); /* Usar min-height */
    height: auto; /* Permitir que la altura se ajuste al contenido */
    padding-top: 0.5rem; /* Más compacto en landscape */
    padding-bottom: 0.5rem;
  }

  .hero-content {
    padding: 0.5rem;
    padding-top: 0.2rem; /* Más compacto en landscape */
    padding-bottom: 0.2rem;
  }

  .hero-stats {
    flex-direction: row;
    gap: 0.6rem; /* Más compacto */
  }

  .stat-item-hero {
    min-width: 60px; /* Más pequeño */
    padding: 0.5rem 0.3rem; /* Más pequeño */
  }

  .stat-number-hero {
    font-size: 1.4rem; /* Más pequeño */
  }

  .stat-plus,
  .stat-percent {
    font-size: 0.9rem; /* Más pequeño */
  }

  .stat-label-hero {
    font-size: 0.6rem; /* Más pequeño */
  }
}

/* Additional utility classes */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.no-scroll {
  overflow: hidden;
}

/* Print styles */
@media print {
  .header,
  .floating-actions,
  .scroll-to-top,
  .mobile-menu {
    display: none !important;
  }

  .hero-carousel {
    height: auto;
    margin-top: 0;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-blue: #000080;
    --secondary-orange: #ff8c00;
    --gray-600: #333333;
    --gray-700: #222222;
    --gray-800: #111111;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
