/* ==========================================
   0. RESERVA DE ESPACIO Y CONFIGURACIÓN LOGO
   ========================================== */
img#bouncingLogo.bouncing-logo {
  position: absolute !important;
  width: 100px !important;
  max-width: 100px !important;
  height: 60px !important;
  max-height: 60px !important;
  object-fit: contain !important;
  z-index: 4 !important;
  pointer-events: none !important;
  display: block !important;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.5));
  /* Animación pura en CSS */
  animation: bounceX 9s linear infinite alternate, bounceY 5.3s linear infinite alternate;
}

/* ==========================================
   1. RESET BÁSICO Y ESTILOS GENERALES
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}
body {
  background-color: #f4f4f4;
  overflow-x: hidden;
}

/* ==========================================
   2. BARRA DE CONTACTO SUPERIOR (TOP BAR)
   ========================================== */
.top-bar {
  position: relative;
  width: 100%;
  background-color: #111;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  z-index: 5001; /* Mayor jerarquía para que no la tapen */
}
.top-bar a {
  color: #fff;
  text-decoration: none;
  margin-right: 20px;
  transition: color 0.3s ease;
}
.top-bar a:hover {
  color: #f0a500;
}
.top-bar i {
  margin-right: 5px;
  color: #f0a500;
}
.social-media a {
  margin-left: 15px;
  font-size: 16px;
}
.social-media a i {
  color: #fff;
}
.social-media a:hover i {
  color: #f0a500;
}

/* ==========================================
   3. BARRA DE NAVEGACIÓN (NAVBAR UNIFICADO)
   ========================================== */
.navbar {
  position: -webkit-sticky; /* Soporte para Safari */
  position: sticky;
  top: 0; /* Se fija en el borde superior en cuanto el top-bar desaparece */
  left: 0;
  width: 100%;
  background: #111111;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5000 !important; /* Capa más alta para que el menú siempre esté al frente */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid #f0a500 !important;
}
.navbar .logo a {
  color: #fff;
  font-size: 24px;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px; /* Espaciado entre la imagen y el texto */
}
.navbar .logo i {
  color: #f0a500;
  margin-right: 5px;
}
.navbar .logo span {
  color: #f0a500;
}
.navbar .nav-logo {
  height: 40px; /* Altura estándar perfecta para la barra */
  width: auto; /* Mantiene la proporción original de la imagen */
  aspect-ratio: 4 / 1; /* Ajusta la relación de aspecto aproximada de tu logo */
  object-fit: contain; /* Evita que la imagen se estire o distorsione */
  display: inline-block;
}
/* Fuerza la desaparición de cualquier icono inyectado por CSS en el logo */
.navbar .logo a::before,
.navbar .logo i {
  display: none !important;
  content: "" !important;
}

/* Enlaces de navegación en Computadoras */
.nav-menu-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu-links li a {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  transition: color 0.2s ease-in-out;
}
.nav-menu-links li a:hover {
  color: #f0a500 !important; /* Resaltado amarillo corporativo */
}

/* Legado de clases antiguas del menú */
.navbar .nav-links {
  list-style: none;
  display: flex;
}
.navbar .nav-links li {
  margin-left: 30px;
}
.navbar .nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: color 0.3s ease;
}
.navbar .nav-links a:hover,
.navbar .nav-links a.active {
  color: #f0a500;
}

/* El botón de tres barras permanece oculto en pantallas grandes */
.hamburger-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 5px 10px;
  outline: none;
  transition: color 0.2s;
}
.hamburger-toggle-btn:hover {
  color: #f0a500;
}

/* ==========================================
   4. SLIDER CON EFECTO DESVANECIDO (FADE)
   ========================================== */
.slider-container {
  width: 100%;
  height: 500px;
  overflow: hidden;
  position: relative !important;
  background-color: #222;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}
.slide.active-slide {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}
.slider-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 5;
  width: 90%;
  max-width: 600px;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 10px;
  backdrop-filter: blur(3px);
}
.slider-content h2 {
  font-size: 32px;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}
.slider-content p {
  font-size: 18px;
  margin-bottom: 25px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}
.slider-btn {
  display: inline-block;
  background-color: #f0a500;
  color: #111;
  text-decoration: none;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 25px;
  border: 2px solid #f0a500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.slider-btn:hover {
  background-color: transparent;
  color: #f0a500;
  transform: translateY(-3px);
}
.slider-btn i {
  margin-right: 8px;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 2px solid #f0a500;
  font-size: 24px;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.slider-arrow:hover {
  background-color: #f0a500;
  color: #111;
}
.slider-arrow:active {
  transform: translateY(-50%) scale(0.9);
}
.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

/* ==========================================
   5. SECCIÓN DE MARCAS ALIADAS
   ========================================== */
.brands-section {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}
.brands-title {
  font-size: 28px;
  color: #222;
  margin-bottom: 40px;
  position: relative;
  text-transform: uppercase;
  font-weight: bold;
}
.brands-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #f0a500;
  margin: 10px auto 0 auto;
  border-radius: 2px;
}
.brands-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.brand-card {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 180px;
  height: 100px;
}
.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
.brand-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}
.brand-card:hover img {
  filter: grayscale(0%);
}

/* ==========================================
   6. SECCIÓN DE ENLACES AL CATÁLOGO REAL
   ========================================== */
.products-section {
  padding: 80px 20px;
  background-color: #f4f4f4;
  text-align: center;
}
.section-title {
  font-size: 28px;
  color: #222;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: bold;
}
.section-subtitle {
  font-size: 15px;
  color: #666;
  max-width: 600px;
  margin: 0 auto 40px auto;
  line-height: 1.5;
}
.category-filters {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}
.filter-link-btn {
  background-color: #fff;
  color: #222;
  border: 2px solid #222;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 25px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.filter-link-btn:hover {
  background-color: #f0a500;
  border-color: #f0a500;
  color: #111;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(240, 165, 0, 0.3);
}
.filter-link-btn i {
  font-size: 18px;
}

/* ==========================================
   7. SECCIÓN QUIÉNES SOMOS Y UBICACIÓN (MAPA)
   ========================================== */
.about-section {
  padding: 80px 20px;
  background-color: #fff;
}
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-title {
  font-size: 32px;
  color: #222;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: bold;
  position: relative;
}
.about-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background-color: #f0a500;
  margin-top: 8px;
  border-radius: 2px;
}
.about-info p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 30px;
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #222;
  font-weight: bold;
}
.feature-item i {
  color: #f0a500;
  font-size: 20px;
}
.map-title {
  font-size: 20px;
  color: #222;
  margin-bottom: 15px;
  font-weight: bold;
}
.map-title i {
  color: #f0a500;
}
.map-responsive {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 3px solid #222;
}
.map-responsive iframe {
  display: block;
}
.about-map a[href*="://google.com"] {
  z-index: 9999 !important; /* Capa menor que el navbar para que pase por detrás al hacer scroll */
}

/* ==========================================
   8. SECCIÓN DE COMENTARIOS EN CARRUSEL
   ========================================== */
.comments-section {
  padding: 60px 20px;
  background-color: #a7a0a0d5;
  overflow: hidden;
  text-align: center;
}
.comments-slider-wrapper {
  max-width: 1100px;
  margin: 40px auto 0 auto;
  overflow: hidden;
  position: relative;
  padding: 10px;
}
.comments-track {
  display: flex;
  gap: 20px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}
.comment-card {
  background-color: #f9f9f9;
  border-left: 5px solid #f0a500;
  padding: 25px;
  border-radius: 4px 8px 8px 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  flex: 0 0 calc(50% - 10px);
  min-width: calc(50% - 10px);
  box-sizing: border-box;
  text-align: left;
}
.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.user-info strong {
  font-size: 16px;
  color: #222;
  display: block;
}
.comment-date {
  font-size: 12px;
  color: #888;
}
.rating-stars {
  font-size: 14px;
}
.comment-text {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}
.comment-form {
  text-align: left;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #ccc;
}
.comment-form input,
.comment-form select,
.comment-form textarea {
  width: 100%;
  padding: 12px;
  background-color: #333;
  border: 1px solid #444;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
}
.comment-form input:focus,
.comment-form select:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: #f0a500;
}

/* ==========================================
   9. VENTANAS EMERGENTES (MODALES DE OFERTA Y OPINIÓN)
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.modal-overlay.show-modal {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background-color: #222;
  color: #fff;
  width: 90%;
  max-width: 450px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 2px solid #f0a500;
  transform: scale(0.7);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.show-modal .modal-card {
  transform: scale(1);
}
.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 10;
}
.modal-close-btn:hover {
  color: #f0a500;
}
.modal-badge {
  background-color: #f0a500;
  color: #111;
  font-weight: bold;
  text-align: center;
  padding: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.modal-body {
  padding: 25px;
  text-align: center;
}
.modal-body img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
}
.modal-body h2 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #f0a500;
}
.modal-body p {
  font-size: 14px;
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 15px;
}
.modal-price {
  margin-bottom: 20px;
}
.old-price {
  text-decoration: line-through;
  color: #888;
  margin-right: 10px;
  font-size: 16px;
}
.new-price {
  font-size: 24px;
  color: #fff;
  font-weight: bold;
}
.modal-action-btn {
  display: inline-block;
  background-color: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
  width: 100%;
  border: none;
  cursor: pointer;
}
.modal-action-btn:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
}
.modal-action-btn i {
  margin-right: 8px;
}

/* ==========================================
   10. PIE DE PÁGINA (FOOTER)
   ========================================== */
.main-footer {
  background-color: #1a1a1a;
  color: #ccc;
  padding: 60px 20px 20px 20px;
  border-top: 4px solid #f0a500;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #333;
}
.footer-column h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: bold;
}
.footer-column h3 i {
  color: #f0a500;
}
.footer-column p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer-column ul {
  list-style: none;
}
.footer-column ul li {
  margin-bottom: 12px;
  font-size: 14px;
}
.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-column ul li a:hover {
  color: #f0a500;
  padding-left: 5px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background-color: #2a2a2a;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.footer-social a:hover {
  background-color: #f0a500;
  color: #111;
}
.hours-list li span {
  color: #f0a500;
  display: block;
  font-weight: bold;
  margin-bottom: 2px;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}
.contact-list li i {
  color: #f0a500;
  margin-top: 3px;
}
.contact-list li a {
  color: #ccc;
  text-decoration: none;
}
.contact-list li a:hover {
  color: #f0a500;
}
.footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 15px;
}
.footer-legal a {
  color: #888;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-legal a:hover {
  color: #f0a500;
}

/* ==========================================
   11. INTERFACES FLOTANTES (WHATSAPP Y RETORNO)
   ========================================== */
.whatsapp-float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 35px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
  animation: pulseWhatsapp 2s infinite;
}
.whatsapp-float-btn:hover {
  background-color: #128C7E;
  transform: scale(1.1);
}
.whatsapp-float-btn i {
  color: #fff !important;
}
.whatsapp-tooltip {
  position: absolute;
  left: -150px;
  background-color: #222;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(10px);
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent #222;
}
.whatsapp-float-btn:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}
@keyframes pulseWhatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.back-to-top {
  position: fixed;
  bottom: 105px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #222;
  color: #fff;
  border: 2px solid #f0a500;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  transform: translateY(20px);
}
.back-to-top.show-scroll-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background-color: #f0a500;
  color: #111;
  transform: scale(1.05);
}

/* ==========================================
   12. LOGO REBOTANTE EN EL SLIDER (ANIMACIONES)
   ========================================== */
img#bouncingLogo.bouncing-logo {
  position: absolute !important;
  width: 100px !important;
  max-width: 100px !important;
  height: 60px !important;
  max-height: 60px !important;
  object-fit: contain !important;
  z-index: 4 !important;
  pointer-events: none !important;
  display: block !important;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.5));
  
  /* Animación pura en CSS */
  animation: bounceX 9s linear infinite alternate, bounceY 5.3s linear infinite alternate;
}

/* Animación Horizontal */
@keyframes bounceX {
  0% { left: 0; }
  100% { left: calc(100% - 100px); }
}

/* Animación Vertical */
@keyframes bounceY {
  0% { top: 0; }
  100% { top: calc(100% - 60px); }
}

/* ==========================================
   13. SECCIÓN DE ESTADÍSTICAS (CONTADORES)
   ========================================== */
.counters-section {
  background-color: #1a1a1a; /* Fondo oscuro elegante */
  color: #fff;
  padding: 60px 20px;
  border-top: 3px solid #f0a500;
  border-bottom: 3px solid #f0a500;
  text-align: center;
}
.counters-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.counter-card {
  flex: 1;
  min-width: 250px;
  padding: 20px;
  background-color: #222;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}
.counter-card:hover {
  transform: translateY(-5px);
}
.counter-icon {
  font-size: 40px;
  color: #f0a500; /* Color corporativo de la marca */
  margin-bottom: 15px;
}
.counter-number {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 5px;
  font-family: 'Arial Black', sans-serif;
}
.counter-label {
  font-size: 15px;
  text-transform: uppercase;
  color: #ccc;
  letter-spacing: 1px;
}

/* ==========================================
   14. CONTROL DE TAMAÑO DEL LOGO EN EL NAVBAR
   ========================================== */
.navbar .logo a {
  display: flex;
  align-items: center;
  gap: 10px; /* Espaciado entre la imagen y el texto */
}
.navbar .nav-logo {
  height: 40px; /* Altura estándar perfecta para la barra */
  width: auto; /* Mantiene la proporción original de la imagen */
  object-fit: contain; /* Evita que la imagen se estire o distorsione */
  display: inline-block;
}

/* Fuerza la desaparición de cualquier icono inyectado por CSS en el logo */
.navbar .logo a::before,
.navbar .logo i {
  display: none !important;
  content: "" !important;
}

/* Corrección de superposición de capas visuales */
.navbar {
  position: -webkit-sticky; /* Soporte para Safari */
  position: sticky;
  top: 0; /* Se fija en el borde superior en cuanto el top-bar desaparece */
  left: 0;
  width: 100%;
  background: #111111;
  border-bottom: 3px solid #f0a500 !important;
  z-index: 5000 !important; /* Capa más alta para que el menú siempre esté al frente */
}

/* ==========================================
   15. ESTILOS RESPONSIVOS PARA EL MENÚ HAMBURGUESA
   ========================================== */
/* Estructura base de los enlaces en Computadoras */
.nav-menu-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu-links li a {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  transition: color 0.2s ease-in-out;
}
.nav-menu-links li a:hover {
  color: #f0a500 !important; /* Resaltado amarillo corporativo */
}

/* El botón de tres barras permanece oculto en pantallas grandes */
.hamburger-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 5px 10px;
  outline: none;
  transition: color 0.2s;
}
.hamburger-toggle-btn:hover {
  color: #f0a500;
}

/* ==========================================
   16. ADAPTACIÓN RESPONSIVE COMPLETA (MÓVILES < 768px)
   ========================================== */
@media (max-width: 768px) {
  /* Ocultar el texto "Cotizar" para ahorrar espacio en celulares */
  .cart-text-desktop {
    display: none;
  }
  
  /* Mostrar el botón hamburguesa */
  .hamburger-toggle-btn {
    display: block;
  }
  
  /* Transformar el menú horizontal en un panel vertical desplegable */
  .nav-menu-links {
    position: fixed;
    top: 105px; /* Se posiciona exactamente debajo del navbar */
    right: -100%; /* Escondido por defecto a la derecha */
    width: 75%;
    max-width: 300px;
    height: calc(100vh - 105px);
    background: #111111; /* Color de fondo sólido oscuro */
    flex-direction: column;
    gap: 0;
    padding-top: 15px;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.5);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 2px solid #f0a500;
  }
  
  /* Estilos para cada ítem del menú móvil */
  .nav-menu-links li {
    width: 100%;
    border-bottom: 1px solid #222;
  }
  .nav-menu-links li a {
    display: block;
    padding: 15px 25px;
    font-size: 14px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
  }
  .nav-menu-links li a:hover {
    background: #1a1a1a;
    padding-left: 30px; /* Microanimación de desplazamiento */
  }
  
  /* Clase que activa el JavaScript para mostrar el panel móvil */
  .nav-menu-links.menu-active {
    right: 0 !important;
  }

  /* Ajuste de tamaño del logo optimizado para celulares */
  .navbar .nav-logo {
    height: 32px; /* Un tamaño ligeramente más compacto en móviles */
  }

  /* Ajuste exacto del logo rebotante para celulares */
  img#bouncingLogo.bouncing-logo {
    width: 70px !important;
    max-width: 70px !important;
    height: 45px !important;
    max-height: 45px !important;
    animation: bounceX-mobile 8s linear infinite alternate, bounceY-mobile 4.5s linear infinite alternate;
  }

  /* Adaptación de la sección de estadísticas (Contadores) */
  .counters-section {
    padding: 40px 15px;
  }
  .counter-number {
    font-size: 36px;
  }

  /* Ajustes adicionales de interfaz flotante */
  .whatsapp-tooltip {
    display: none;
  }
  .back-to-top {
    bottom: 85px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
}

/* Animaciones del logo rebotante exclusivas para entornos móviles */
@keyframes bounceX-mobile {
  0% { left: 0; }
  100% { left: calc(100% - 70px); }
}
@keyframes bounceY-mobile {
  0% { top: 0; }
  100% { top: calc(100% - 45px); }
}

@media (max-width: 576px) {
    .modal-card-photoshop {
        grid-template-columns: 1fr !important; /* Transforma las dos columnas en una sola fila vertical */
    }
    .modal-card-photoshop > div:first-child {
        border-radius: 20px 20px 0 0 !important; /* Curva solo las esquinas superiores de la foto */
        height: 200px !important; /* Reduce la altura de la imagen en celulares */
    }
    .modal-card-photoshop > div:last-child {
        border-radius: 0 0 20px 20px !important; /* Curva las esquinas inferiores del panel de datos */
        margin-top: 0 !important; /* Elimina el desfase en celulares */
        height: auto !important; /* Permite que el texto se estire de forma natural */
    }
}
@media (max-width: 576px) {
    .modal-card-photoshop {
        grid-template-columns: 1fr !important;
    }
    .modal-card-photoshop > div:first-child {
        border-radius: 20px 20px 0 0 !important;
        height: 240px !important;
        padding: 15px !important;
    }
    .modal-card-photoshop > div:last-child {
        border-radius: 0 0 20px 20px !important;
        margin-top: 0 !important;
        height: auto !important;
    }
    @keyframes esconderDatosMovil {
        0% { transform: translateY(0); opacity: 1; }
        100% { transform: translateY(-100%); opacity: 0; }
    }
    .animar-ocultar-datos {
        animation: esconderDatosMovil 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    }
}
/* =======================================================================
   ANIMACIONES HIDRÁULICAS DE COLAPSO CON BORDE CENTRO CONGELADO - SOLDYMVER
   ======================================================================= */

/* Fase 1: El panel negro reduce su ancho hacia la izquierda de forma limpia */
@keyframes esconderDatosEjeX {
    0% { width: 100%; opacity: 1; }
    100% { width: 0%; opacity: 0; padding-left: 0 !important; padding-right: 0 !important; border: none !important; }
}

/* Fase 2: La foto reduce su ancho congelando el borde derecho (Aumenta el margen izquierdo) */
@keyframes colapsarFotoHaciaDerecha {
    0% { width: 100%; margin-left: 0%; opacity: 1; }
    90% { width: 1%; margin-left: 99%; opacity: 1; border-radius: 0px 0px 40px 0px; }
    100% { width: 0%; margin-left: 100%; opacity: 0; padding: 0 !important; border: none !important; }
}

/* Fase 3: Desvanecimiento final del fondo oscuro */
@keyframes desvanecerFondo {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Clases de activación controladas por JavaScript */
.animar-ocultar-datos {
    animation: esconderDatosEjeX 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    overflow: hidden !important; /* Evita que los textos internos se desparramen al achicarse */
}

.animar-acordeon-foto {
    animation: colapsarFotoHaciaDerecha 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    overflow: hidden !important; /* Oculta la imagen de forma limpia durante el aplastamiento */
}

.animar-desvanecer-modal {
    animation: desvanecerFondo 0.2s ease forwards !important;
}

/* BOTÓN PDF: Flota fijo al frente sobre la esquina inferior derecha */
.pdf-float-btn {
    position: absolute !important;
    bottom: 15px !important;
    right: 15px !important;
    background-color: #dc3545 !important;
    color: #fff !important;
    padding: 8px 14px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 12px rgba(220,53,69,0.4) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    z-index: 99 !important;
    transition: background 0.3s, transform 0.2s !important;
}
.pdf-float-btn:hover {
    background-color: #bd2130 !important;
    transform: scale(1.03) !important;
}

/* Adaptabilidad Móvil */
@media (max-width: 576px) {
    .modal-card-photoshop {
        grid-template-columns: 1fr !important;
    }
    .modal-card-photoshop > div:first-child {
        border-radius: 20px 20px 0 0 !important;
        height: 280px !important;
        padding: 45px 15px 15px 15px !important;
    }
    .modal-card-photoshop > div:last-child {
        border-radius: 0 0 20px 20px !important;
        margin-top: 0 !important;
        height: auto !important;
    }
}
/* =======================================================================
   CARRUSEL DE MARCAS INFINITO Y CONTINUO (FONDO BLANCO) - SOLDYMVER
   ======================================================================= */
.marcas-ticker-container {
    width: 100%;
    overflow: hidden; /* Esconde los logos que desbordan la pantalla horizontalmente */
    background: #ffffff; /* CORRECCIÓN: Fondo blanco puro integrado a la sección */
    padding: 25px 0;
    box-sizing: border-box;
    position: relative;
    margin-top: 10px;
}

/* Difuminado suave estilo espejo en los bordes izquierdo y derecho sobre fondo blanco */
.marcas-ticker-container::before,
.marcas-ticker-container::after {
    content: "";
    height: 100%;
    width: 150px;
    position: absolute;
    z-index: 2;
    top: 0;
    pointer-events: none;
}
.marcas-ticker-container::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent); /* CORRECCIÓN: Desvanecido blanco */
}
.marcas-ticker-container::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent); /* CORRECCIÓN: Desvanecido blanco */
}

/* Contenedor flexible que aloja las dos vueltas del bucle de PHP */
.marcas-ticker-track {
    display: flex;
    width: max-content;
    /* Movimiento continuo de Izquierda a Derecha */
    animation: marcasCorrerIzquierdaDerecha 30s linear infinite; 
}

/* Detener la animación sutilmente cuando el cliente pasa el mouse por encima */
.marcas-ticker-container:hover .marcas-ticker-track {
    animation-play-state: paused;
}

/* Elemento contenedor de cada logo de tu bucle for */
.marca-logo-item {
    padding: 0 45px; /* Separación horizontal simétrica entre tus marcas */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px; /* Altura fija para una sola línea perfecta */
}

.marca-logo-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.9); /* Estilo elegante uniforme inicial */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.marca-logo-item img:hover {
    filter: grayscale(0%) brightness(1); /* Recupera su color original al pasar el cursor */
    transform: scale(1.05);
}

/* ANIMACIÓN MATEMÁTICA EN EJE X: Arranca desfasado al -50% y viaja de izquierda a derecha hacia el 0% */
@keyframes marcasCorrerIzquierdaDerecha {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}
/* =======================================================================
   MÁSCARA EN OLA DE MAR (WAVE SHAPE DIVIDER) PARA EL SLIDER - SOLDYMVER
   ======================================================================= */
.slider-container {
    position: relative; /* Obligatorio para que la ola flote de forma alineada en la base */
    overflow: visible !important; /* Permite que la curva suavice el paso hacia la siguiente sección */
    padding-bottom: 0;
}

/* Contenedor del vector de la ola */
.wave-divider-base {
    position: absolute;
    bottom: -1px; /* Evita que quede una línea o luz de un píxel por errores de renderizado */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg); /* Voltea el SVG para que la curva mire hacia arriba mofificando la foto */
    z-index: 10; /* Lo posiciona por encima de las fotos del carrusel pero detrás del contenido de texto */
    pointer-events: none; /* Permite hacer clic a través de la ola si hay botones cerca */
}

.wave-divider-base svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px; /* Altura de la ola en computadoras. Ajústala si quieres la curva más pronunciada */
}

/* =======================================================================
   CORRECCIÓN FINAL: Sincronización del Gris Claro de la Ola con el Catálogo
   ======================================================================= */
.wave-divider-base .wave-fill {
    /* Este es el tono exacto de gris claro de tu sección inferior */
    fill: #f5f5f5; 
}


/* Ajuste Responsivo para Smartphones */
@media (max-width: 576px) {
    .wave-divider-base svg {
        height: 35px; /* Reduce el tamaño de la curva en celulares para que no muerda tus textos */
    }
}
