:root {
  /* Paleta principal: Confianza, Estabilidad y Autoridad (Azules) */
  --color-primary: #1d2d4a;     
  --color-secondary: #4a90b8;   
  --color-primary-light: #283e66;
  --color-heading: var(--color-primary);
  
  /* Color de Acción: Psicología visual para atraer la atención (Naranja Industrial/Cálido) */
  --color-action: #f59e0b;      
  --color-action-hover: #d97706;
  --color-accent: #f59e0b;
  
  /* Fondos: Romper el blanco puro con tonos muy suaves y elegantes */
  --color-bg-base: #f0f4f8;     /* Gris/Azul muy claro para el fondo general */
  --color-bg-alt: #ffffff;      /* Blanco puro solo para tarjetas, para que resalten */
  --color-bg-dark: #0f172a;     /* Azul noche profundo para contrastes dramáticos */
  
  /* Textos */
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Sombras con un toque de azul para elegancia en lugar de gris sucio */
  --shadow-sm: 0 4px 6px -1px rgba(29, 45, 74, 0.08);
  --shadow-md: 0 10px 15px -3px rgba(29, 45, 74, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(29, 45, 74, 0.15);
  --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.4);
  
  --navbar-bg: rgba(255, 255, 255, 0.85);
  --navbar-scrolled: rgba(255, 255, 255, 0.98);
}

[data-theme="dark"] {
  --color-primary: #1e3356;     
  --color-secondary: #38bdf8;   
  --color-primary-light: #2c4a7c;
  --color-heading: #f8fafc;
  --color-bg-base: #0f172a;     
  --color-bg-alt: #1e293b;      
  --color-bg-dark: #020617;     
  --color-text-main: #e2e8f0;
  --color-text-muted: #94a3b8;
  --navbar-bg: rgba(15, 23, 42, 0.90);
  --navbar-scrolled: rgba(15, 23, 42, 0.98);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .logo img, [data-theme="dark"] .footer-logo, [data-theme="dark"] .brand-item img {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 5px 15px;
  border-radius: 12px;
  filter: none !important;
}

[data-theme="dark"] .brands-label {
  color: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-heading);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.highlight {
  color: var(--color-secondary);
  position: relative;
  display: inline-block;
}

/* Subrayado dinámico para la palabra resaltada */
.highlight::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 8px;
  bottom: 2px;
  left: 0;
  background-color: rgba(74, 144, 184, 0.2);
  z-index: -1;
  border-radius: 4px;
}

/* ====== NAVBAR ====== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-top: 4px solid var(--color-action); /* Acento visual para darle "sabor" */
}

.navbar.scrolled {
  background: var(--navbar-scrolled);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  height: 60px; /* Altura controlada para el navbar */
  overflow: hidden; /* Corta todo lo que se salga (el eslogan de abajo) */
}

.logo img {
  height: 90px; /* Más grande que el contenedor para que el eslogan quede por fuera */
  width: auto;
  object-fit: contain;
  object-position: top center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

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

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

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-heading);
  transition: var(--transition);
  position: relative;
}

.nav-links a:not(.btn-nav)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-action);
  transition: var(--transition);
}

.nav-links a:not(.btn-nav):hover {
  color: var(--color-action);
}

.nav-links a:not(.btn-nav):hover::after {
  width: 100%;
}

.btn-nav {
  background-color: var(--color-action);
  color: white !important;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-nav:hover {
  background-color: var(--color-action-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}
.theme-toggle:hover {
  transform: scale(1.1);
  background: rgba(128, 128, 128, 0.1);
}

/* ====== HERO SECTION ====== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Superposición degradada más sofisticada */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(29, 45, 74, 0.85) 50%, rgba(74, 144, 184, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 24px;
  color: white;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-title span {
  color: var(--color-secondary);
  display: block;
  font-size: 3rem;
  margin-top: 10px;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn-primary, .btn-secondary {
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background-color: var(--color-action);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
  background-color: var(--color-action-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 1);
  color: var(--color-primary);
  transform: translateY(-3px);
}

/* ====== BARRA DE CONFIANZA (Psicología visual) ====== */
.trust-bar {
  background: var(--color-bg-alt); /* Se fusiona perfectamente con la sección de abajo */
  padding: 40px 5%;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: none;
  margin: 0;
  border-bottom: 1px solid var(--color-border, #e2e8f0);
}

.trust-item {
  text-align: center;
  padding: 10px;
  border-right: 1px solid rgba(0,0,0,0.05);
}

.trust-item:last-child {
  border-right: none;
}

.trust-item h3 {
  font-size: 2.5rem;
  color: var(--color-action);
  margin-bottom: 5px;
}

.trust-item p {
  font-weight: 600;
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

/* ====== SECTIONS ====== */
.section {
  padding: 100px 0;
  position: relative;
}

/* Elementos decorativos de fondo para quitar lo "plano" */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--color-secondary) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.03;
  z-index: -1;
}

.bg-alt {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg-base) 100%);
}

.bg-dark {
  background-color: var(--color-bg-dark);
  color: white;
}

.bg-dark h2 {
  color: white;
}

.bg-dark .section-header p {
  color: rgba(255,255,255,0.7);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.15rem;
}

/* ====== LO QUE HACEMOS / FEATURES ====== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  background: var(--color-bg-alt);
  padding: 50px 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--color-secondary);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Brillo sutil de fondo al hacer hover */
.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(74, 144, 184, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 0;
}

.feature-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--color-action);
}

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

.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-card .icon {
  font-size: 3.5rem;
  margin-bottom: 25px;
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* ====== CATALOGO ====== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.catalog-item {
  background: var(--color-bg-alt);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.catalog-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.image-wrapper {
  position: relative;
  overflow: hidden;
}

.catalog-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.catalog-item:hover img {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(29, 45, 74, 0.8) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.catalog-item:hover .image-overlay {
  opacity: 1;
}

.item-content {
  padding: 18px 18px;
  background: var(--color-bg-alt);
  position: relative;
  border-top: 3px solid var(--color-bg-base);
}

.item-content h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Flecha sutil en el catálogo */
.item-content h3::after {
  content: '→';
  color: var(--color-action);
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition);
}

.catalog-item:hover .item-content h3::after {
  opacity: 1;
  transform: translateX(0);
}

/* ====== CATÁLOGO SIN LÍMITES (tarjeta CTA) ====== */
.catalog-unlimited {
  grid-column: span 3;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0f2a50 50%, var(--color-primary-light) 100%);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 220px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

/* Efecto de brillo animado de fondo */
.catalog-unlimited::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 60%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(245,158,11,0.12) 50%, transparent 60%);
  animation: shimmer-slide 4s ease-in-out infinite;
}

/* Patrón de puntos decorativo */
.catalog-unlimited::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

@keyframes shimmer-slide {
  0%   { left: -60%; }
  100% { left: 120%;  }
}

.catalog-unlimited:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 40px rgba(15, 23, 42, 0.3);
}

.catalog-unlimited-inner {
  position: relative;
  z-index: 1;
  padding: 40px 48px;
}

.catalog-unlimited-badge {
  display: inline-block;
  background: var(--color-action);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(245,158,11,0.4);
}

.catalog-unlimited-inner h3 {
  color: white;
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.2;
}

.catalog-unlimited-inner h3 span {
  color: var(--color-action);
}

.catalog-unlimited-inner p {
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 24px;
}

.catalog-unlimited-inner p strong {
  color: white;
  font-weight: 700;
}

.catalog-unlimited-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-action);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(245,158,11,0.35);
  text-decoration: none;
}

.catalog-unlimited-btn:hover {
  background: var(--color-action-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-glow);
}

/* Responsive */
@media (max-width: 992px) {
  .catalog-unlimited { grid-column: span 2; }
}

@media (max-width: 768px) {
  .catalog-unlimited { grid-column: span 2; min-height: auto; }
  .catalog-unlimited-inner { padding: 30px 24px; }
  .catalog-unlimited-inner h3 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .catalog-unlimited { grid-column: span 1; }
}

/* ====== PROCESO ====== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  position: relative;
}

.step {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.step:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-10px);
  border-color: var(--color-secondary);
}

.step-number {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-action), var(--color-action-hover));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 auto 25px;
  font-family: var(--font-heading);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.step h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.step p {
  color: rgba(255,255,255,0.7);
}

/* ====== FAQ & TESTIMONIOS ====== */
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start; /* Evita que la caja de FAQ deje espacio vacío para igualar a los testimonios */
}

.faq-container, .testimonials-container {
  background: var(--color-bg-alt);
  padding: 50px;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.faq-container h2, .testimonials-container h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
}

.faq-item {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.faq-item h4::before {
  content: 'Q.';
  color: var(--color-secondary);
  font-weight: 800;
}

.testimonial {
  background: var(--color-bg-base);
  padding: 35px;
  border-radius: 16px;
  margin-bottom: 25px;
  position: relative;
  border-left: 4px solid var(--color-action);
}

/* Comillas decorativas */
.testimonial::before {
  content: '"';
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 5rem;
  color: rgba(74, 144, 184, 0.1);
  font-family: serif;
  line-height: 1;
}

.testimonial .quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text-main);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial .author {
  color: var(--color-heading);
  font-weight: 700;
  font-size: 1rem;
}

/* ====== CONTACTO ====== */
.contact-section {
  padding: 120px 0;
}

.contact-card {
  background: var(--color-bg-alt);
  border-radius: 30px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  box-shadow: var(--shadow-lg);
}

.contact-info {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}

/* Elementos decorativos en contacto */
.contact-info::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.contact-info h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact-info > p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 50px;
  font-size: 1.1rem;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}

.info-item .icon {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.info-item p {
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-form-container {
  padding: 60px 50px;
  background: var(--color-bg-alt);
}

.form-group {
  margin-bottom: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-heading);
  font-size: 0.95rem;
}

input, textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--color-bg-base);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--color-bg-base);
  color: var(--color-text-main);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  background: white;
  box-shadow: 0 5px 15px rgba(74, 144, 184, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 18px;
  background: var(--color-action);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.btn-submit:hover {
  background: var(--color-action-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* ====== FOOTER ====== */
.footer {
  background: var(--color-bg-dark);
  color: white;
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 60px;
}

.footer-logo {
  height: 140px;
  margin-bottom: 25px;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.15)); /* Brillo sutil para destacar en fondo oscuro */
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  max-width: 400px;
  font-size: 1.05rem;
}

.footer-links h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.footer-links h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 3px;
  background: var(--color-action);
  border-radius: 2px;
}

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

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '›';
  color: var(--color-action);
  font-size: 1.2rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.95rem;
}

/* ====== WHATSAPP BUTTON ====== */
.whatsapp-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: #25d366;
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition);
  animation: pulse-ws 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.15) translateY(-5px);
  background: #20b858;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-ws {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
  .contact-card {
    grid-template-columns: 1fr;
  }
  .contact-info {
    padding: 40px;
  }
  .contact-form-container {
    padding: 40px;
  }
  .two-columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-title span {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
    padding: 0 10px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }
  /* Mobile Nav (Hamburger Menu) */
  .hamburger {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden by default */
    height: 100vh;
    width: 260px;
    background-color: rgba(15, 23, 42, 0.95); /* var(--color-bg-dark) con transparencia */
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease-in-out;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    z-index: 999;
  }
  .nav-links.open {
    right: 0;
  }
  .nav-links li {
    margin: 20px 0;
  }
  .nav-links a {
    color: white;
    font-size: 1.2rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 60px 0;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .trust-bar {
    grid-template-columns: 1fr 1fr;
    margin-top: -30px;
  }
  .trust-item {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 20px 10px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-title span {
    font-size: 1.6rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .two-columns {
    gap: 30px;
  }
  .contact-info {
    padding: 30px 20px;
  }
  .contact-form-container {
    padding: 30px 20px;
  }
  .trust-bar {
    grid-template-columns: 1fr;
  }
  .trust-item {
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
}

/* ====================================================
   CARRUSEL INFINITO DE MARCAS
   ==================================================== */

/* Keyframe: mueve la cinta exactamente el 50% de su ancho
   (la mitad = Set 1 completo) para que el bucle sea invisible */
@keyframes scroll-brands {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sección contenedora general */
.brands-section {
  background-color: var(--color-bg-alt);
  padding: 80px 0 70px;
  border-top: 1px solid var(--color-border, #e2e8f0);
  border-bottom: 1px solid var(--color-border, #e2e8f0);
  overflow: hidden;      /* oculta lo que sale por los lados */
  box-shadow: inset 0 10px 30px -10px rgba(0,0,0,0.02), inset 0 -10px 30px -10px rgba(0,0,0,0.02);
}

.brands-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 0 24px;
}

/* Título */
.brands-label {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 10px;
}

.brands-sublabel {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* Contenedor con máscara de desvanecimiento en los bordes */
.brands-track-wrapper {
  position: relative;
  overflow: hidden;
  /* Degradado izquierdo y derecho para que los logos entren/salgan suavemente */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

/* La pista que se anima: contiene Set1 + Set2 */
.brands-track {
  display: flex;
  align-items: center;
  width: max-content;           /* se expande al ancho de todos sus hijos */
  animation: scroll-brands 32s linear infinite;
  will-change: transform;       /* hint al navegador para GPU → menos recursos */
}

/* Pausa al pasar el mouse sobre toda la sección */
.brands-section:hover .brands-track {
  animation-play-state: paused;
}

/* Cada ítem del logo */
.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 45px;
  flex-shrink: 0;
}

/* Imagen del logo: color completo, tamaño más grande */
.brand-item img {
  height: 90px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: opacity(0.85);
  transition: filter 0.4s ease, transform 0.3s ease;
  pointer-events: none;
}

/* Al pasar el cursor → opacidad total y zoom */
.brand-item:hover img {
  filter: opacity(1);
  transform: scale(1.15);
  pointer-events: auto;
}

/* Responsive: en móvil logos más pequeños y animación más lenta */
@media (max-width: 768px) {
  .brands-label { font-size: 1.8rem; }
  .brand-item {
    padding: 0 25px;
  }
  .brand-item img {
    height: 60px;
    max-width: 140px;
  }
  .brands-track {
    animation-duration: 22s;
  }
}

/* ====================================================
   HAMBURGER BUTTON (Base)
   ==================================================== */
.hamburger {
  display: none; /* Solo visible en móvil */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-heading); /* Azul oscuro o claro */
  margin: 5px 0;
  transition: 0.3s ease-in-out;
  border-radius: 2px;
}

.scrolled .hamburger span {
  background-color: var(--color-primary);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: white; /* Contraste con el menú oscuro */
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: white;
}

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

.feature-card, .catalog-item, .step, .faq-container, .testimonials-container, .about-text, .about-stats, .stat-card, .value {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

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

/* Añadir un ligero retraso escalonado a elementos agrupados */
.catalog-item:nth-child(1)  { transition-delay: 0.05s; }
.catalog-item:nth-child(2)  { transition-delay: 0.10s; }
.catalog-item:nth-child(3)  { transition-delay: 0.15s; }
.catalog-item:nth-child(4)  { transition-delay: 0.20s; }
.catalog-item:nth-child(5)  { transition-delay: 0.25s; }
.catalog-item:nth-child(6)  { transition-delay: 0.30s; }
.catalog-item:nth-child(7)  { transition-delay: 0.35s; }
.catalog-item:nth-child(8)  { transition-delay: 0.40s; }
.catalog-item:nth-child(9)  { transition-delay: 0.45s; }
.catalog-item:nth-child(10) { transition-delay: 0.50s; }
.catalog-item:nth-child(11) { transition-delay: 0.55s; }
.catalog-item:nth-child(12) { transition-delay: 0.60s; }
.catalog-item:nth-child(13) { transition-delay: 0.65s; }

.step:nth-child(1) { transition-delay: 0.1s; }
.step:nth-child(2) { transition-delay: 0.2s; }
.step:nth-child(3) { transition-delay: 0.3s; }
.step:nth-child(4) { transition-delay: 0.4s; }

/* ====================================================
   SOBRE NOSOTROS
   ==================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  color: var(--color-heading);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.about-values {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.value-icon {
  font-size: 2rem;
  line-height: 1;
}

.value h4 {
  margin-bottom: 5px;
  color: var(--color-heading);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card {
  background: var(--color-bg-alt);
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
  border-left: 5px solid var(--color-accent); /* Borde naranja */
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card h3 {
  font-size: 3.5rem;
  color: var(--color-heading);
  margin-bottom: 10px;
  font-weight: 800;
}

/* ====================================================
   FOOTER SOCIAL ICONS
   ==================================================== */
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  color: #a0aec0; /* Gris claro */
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.social-link:hover {
  background: var(--color-accent);
  color: white;
  transform: translateY(-3px);
  border-color: var(--color-accent);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
}