/*
   EDES Venezuela - Brand Identity
   Primary: Orange (#f6650f)
   Secondary: Dark Green (#004d25)
   Accent: Light Green (#8cc63f)
   Background: Light Grey (#f6f6f6)
   Fonts: Anton (Headings), Poppins (Body)
*/

@import url("https://fonts.googleapis.com/css2?family=Anton&family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --primary-color: #f6650f;
  --primary-hover: #d95300;
  --secondary-color: #004d25;
  --secondary-hover: #00381a;
  --accent-color: #8aba4c;
  --text-color: #333333;
  --text-muted: #6c757d;
  --bg-color: #f6f6f6;
  --white: #ffffff;
  --footer-color: #111; /* color shared with footer */
  --footer-text: #aaa;
  --border-radius: 16px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --font-heading: "Anton", sans-serif;
  --font-body: "Poppins", sans-serif;
}

/* Added smooth scrolling and better base typography */

html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.7;
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

/* Improved heading styles with responsive sizing */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.cotizacion.row.g-4 h5,
.cotizacion.row.g-4 h4 {
  color: var(--bg-color);
}

a:hover {
  color: var(--primary-hover);
}

/* Header */
.header {
  background: transparent; /* start transparent (e.g. over hero) */
  /* padding: 0.5rem 0; */
  box-shadow: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1040;
  transition: background-color 0.35s ease, box-shadow 0.35s ease,
    padding 0.25s ease;
}

.header.scrolled {
  padding: 0.5rem 0;
  background-color: var(--footer-color);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.header-center-title {
  position: absolute;
  left: 45%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  text-transform: uppercase;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  z-index: 1051;
  pointer-events: none;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease, transform 200ms ease;
}

.header.scrolled .header-center-title {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, -50%) translateY(0);
}

.header:not(.scrolled) .header-center-title {
  opacity: 0 !important;
  visibility: hidden !important;
}

@media (max-width: 991px) {
  .header-center-title {
    font-size: 0.95rem;
  }
}

@media (max-width: 767px) {
  /* On small screens, keep navbar title hidden to save space */
  .header-center-title {
    display: none !important;
  }
}

/* Header overlay state: transparent over hero */
.header.overlay {
  background: transparent !important;
  box-shadow: none !important;
}

/* When header is transparent, make links legible on top of hero */
.header:not(.scrolled) .nav-link {
  color: var(--white) !important;
}

/* When header has the footer color, keep links light for contrast */
.header.scrolled .nav-link {
  color: var(--footer-text) !important;
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.logo img {
  height: 70px;
  width: auto;
  transition: height 0.3s ease;
}

.nav-link {
  color: var(--secondary-color) !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
  padding: 0.5rem 1.2rem;
  transition: color 0.3s ease;
  position: relative;
}

.text-primary {
  color: var(--accent-color) !important;
}

.bg-primary {
  background-color: var(--accent-color) !important;
  color: var(--white) !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* Buttons */
.btn {
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.15rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-family: var(--font-body);
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(246, 101, 15, 0.3);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  border-width: 2px;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.badge {
  font-size: 0.85rem;
  padding: 0.22rem; 
}

.btn-group {
  gap: 0.95rem;
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 77, 37, 0.3);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.accordion-button {
  font-size: 1.225rem;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: all 0.4s ease;
  overflow: hidden;
  background: var(--white);
  height: 100%;
}

.card-title {
  font-family: var(
    --font-body
  ) !important; /* Use Poppins for better readability */
  font-weight: 600 !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 4.2rem; /* 3 lines * 1.4 line-height */
  margin-bottom: 0.5rem !important;
}

.card-title a {
  color: var(--secondary-color) !important;
  text-decoration: none !important;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
}

.card-title a:hover {
  color: var(--primary-color) !important;
}

@media (max-width: 768px) {
  .card-title {
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
    -webkit-line-clamp: 2; /* Limit to 2 lines on mobile */
    line-clamp: 2; /* Standard property for compatibility */
    max-height: 2.7rem; /* 2 lines * 1.35 line-height */
  }
}

@media (max-width: 576px) {
  .card-title {
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
  }
}

.hover-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.product-card .card-img-top {
  transition: transform 0.6s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover .card-img-top {
  transform: scale(1.1);
}

.filtro.row {
  margin-left: 0;
}

/* New Product Overlay */
.product-card .overlay-action {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 77, 37, 0.4);
  opacity: 0;
  transition: all 0.3s ease;
}

.product-card:hover .overlay-action {
  opacity: 1;
}

/* Feature Cards */
.feature-card {
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--box-shadow);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  background: var(--card-bg);
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(140, 198, 63, 0.1);
  color: var(--accent-color);
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
  font-size: 2rem;
}

.feature-card:hover .icon-circle {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.transition-all {
  transition: all 0.3s ease;
}

/* Hero Section */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* mobile: 2 columns */
  gap: 0.5rem; /* similar to g-4 */
}

.product-item {
  width: 100%;
}

@media (min-width: 768px) {
  /* md: keep 2 columns */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  /* lg and up: 3 columns */
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ======================= SECCIÓN ANTES Y DESPUÉS ======================= */
.reparaciones-carousel {
  position: relative;
  padding: 0 60px;
}

.reparaciones-carousel .carousel-inner {
  overflow: visible;
}

.reparaciones-carousel .carousel-item {
  padding: 20px 10px;
}

/* Cards de Antes y Después */
.before-after-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all 0.4s ease;
}

.before-after-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.before-after-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.before-after-card:hover img {
  transform: scale(1.05);
}

/* Badge de Antes/Después */
.ba-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.antes-badge {
  background-color: #dc3545;
  color: white;
}

.despues-badge {
  background-color: var(--accent-color);
  color: white;
}

/* Overlay con descripción */
.ba-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(220, 53, 69, 0.9));
  color: white;
  padding: 40px 20px 20px;
  font-weight: 500;
}

.ba-overlay.success {
  background: linear-gradient(transparent, rgba(0, 77, 37, 0.9));
}

/* Flecha de transformación */
.arrow-transform {
  animation: pulse-arrow 2s infinite;
}

@keyframes pulse-arrow {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Controles del carrusel personalizados */
.reparaciones-control {
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color) !important;
  border-radius: 50%;
  opacity: 1;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.reparaciones-control:hover {
  background-color: var(--primary-color) !important;
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev.reparaciones-control {
  left: 0;
}

.carousel-control-next.reparaciones-control {
  right: 0;
}

.carousel-control-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: white;
  font-size: 1.2rem;
}

/* Indicadores personalizados */
.reparaciones-indicators {
  bottom: -50px;
}

.reparaciones-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--text-muted);
  border: none;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.reparaciones-indicators button.active {
  background-color: var(--primary-color);
  transform: scale(1.3);
}

/* Contact CTA background and overlay */
.contact-cta {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Match hero overlay green gradient for visual consistency */
  background: linear-gradient(
    90deg,
    rgba(0, 77, 37, 0.92) 0%,
    rgba(0, 77, 37, 0.7) 50%,
    rgba(0, 77, 37, 0.3) 100%
  );
  z-index: 0;
}

.contact-cta .container {
  position: relative;
  z-index: 1; /* ensure content sits above overlay */
}
.hero-section {
  position: relative;
  background-color: var(--secondary-color);
  color: var(--white);
  overflow: hidden;
}

.hero-carousel-item {
  height: 90vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 77, 37, 0.92) 0%,
    rgba(0, 77, 37, 0.7) 50%,
    rgba(0, 77, 37, 0.3) 100%
  );
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
}

.carousel-control-next,
.carousel-control-prev {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10%;
  padding: 0;
  color: #fff;
  text-align: center;
  background: 0 0;
  border: 0;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: 100% 100%;
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: var(--secondary-color);
  font-size: 2.5rem;
  font-weight: 700;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 5px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 10px;
}

.section-title.text-start::after {
  margin: 15px 0 0;
}

/* Footer */
.footer {
  background-color: #111;
  color: #aaa;
  padding: 5rem 0 2rem;
  margin-top: auto;
  border-top: 5px solid var(--primary-color);
}

.footer h5 {
  color: var(--white);
  letter-spacing: 1.5px;
}

.footer-credits {
  text-align: center;
  font-size: 14px;
}

.footer-credits a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.raudie-logo {
  width: 26px;
}

.hover-white:hover {
  color: white !important;
  padding-left: 5px;
  transition: all 0.3s ease;
}

.hover-primary:hover {
  color: var(--primary-color) !important;
}

/* Utilities */
.opacity-5 {
  opacity: 0.05;
}
.opacity-10 {
  opacity: 0.1;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 35px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1) rotate(10deg);
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-carousel-item {
    height: 100vh;
    min-height: 500px;
  }

  .hero-overlay {
    background: rgba(0, 77, 37, 0.85);
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .btn-group {
    flex-direction: column;
    gap: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-title.text-start {
    text-align: center !important;
  }

  .section-title.text-start::after {
    margin: 15px auto 0;
  }

  .reparaciones-carousel {
    padding: 0 15px;
  }

  .before-after-card img {
    height: 200px;
  }

  .reparaciones-control {
    width: 40px;
    height: 40px;
  }

  .carousel-control-prev.reparaciones-control {
    left: -5px;
  }

  .carousel-control-next.reparaciones-control {
    right: -5px;
  }

  .ba-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  /* Mostrar flecha vertical en móvil */
  .arrow-transform-mobile {
    display: block;
    text-align: center;
    padding: 15px 0;
  }

  .arrow-transform-mobile i {
    transform: rotate(90deg);
  }
}

/* Añadir margen inferior para los indicadores */
#reparaciones {
  padding-bottom: 80px;
}

/* ======================= NUEVA SECCIÓN ANTES Y DESPUÉS - CSS PURO ======================= */
.reparaciones-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
  position: relative;
  overflow: hidden;
}

/* Header de la sección */
.reparaciones-header {
  text-align: center;
  margin-bottom: 60px;
}

.subtitle {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  margin-bottom: 10px;
  position: relative;
  padding: 0 20px;
}

.subtitle::before,
.subtitle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
}

.subtitle::before {
  left: -20px;
}

.subtitle::after {
  right: -20px;
}

.reparaciones-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--secondary-color);
  margin-bottom: 15px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.reparaciones-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.reparaciones-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.ba-carousel-wrapper {
  margin: 0 auto;
  position: relative;
}

.ba-carousel {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.12);
}

.ba-carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ba-slide {
  min-width: 100%;
  background: white;
}

/* Comparación lado a lado */
.ba-comparison {
  display: flex;
  align-items: stretch;
  position: relative;
}

.ba-image-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.ba-image-container img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  will-change: transform;
}

@media (max-width: 768px) {
  .ba-comparison {
    height: 280px;
  }
  .ba-image-container img {
    height: 280px;
  }

  .ba-arrow-divider {
    display: none;
  }
}

/* Labels Antes/Después */
.ba-label {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ba-label-icon {
  font-size: 1rem;
}

.ba-label-before {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
}

.ba-label-after {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--secondary-color)
  );
  color: white;
}

/* Overlay de imagen */
.ba-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 20px 20px;
  color: white;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.ba-overlay-before {
  background: linear-gradient(to top, rgba(231, 76, 60, 0.95), transparent);
}

.ba-overlay-after {
  background: linear-gradient(to top, rgba(0, 77, 37, 0.95), transparent);
}

.ba-image-container:hover .ba-image-overlay {
  opacity: 1;
  transform: translateY(0);
}

.ba-image-overlay p {
  margin: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Flecha divisora */
.ba-arrow-divider {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}

.ba-arrow-circle {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  animation: pulse-glow 2s ease-in-out infinite;
}

.ba-arrow-circle span {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: bold;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 40px rgba(246, 101, 15, 0.4);
    transform: scale(1.05);
  }
}

/* Info del slide */
.ba-slide-info {
  padding: 20px;
  text-align: center;
  background: linear-gradient(135deg, #fafafa, #ffffff);
  border-top: 1px solid #eee;
}

.ba-slide-tag {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.ba-slide-title {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.ba-slide-desc {
  color: var(--text-muted);
}

/* ======================= ESTILOS DE BOTONES Y PUNTOS (CARRUSEL) ======================= */
.ba-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  gap: 25px;
}

.ba-control-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid #eee;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ba-control-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(246, 101, 15, 0.3);
}

.ba-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ba-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ba-dot.active {
  background-color: var(--primary-color);
  width: 35px;
  border-radius: 10px;
}

/* Ajuste para que los botones no se vean amontonados en móvil */
@media (max-width: 576px) {
  .ba-control-btn {
    width: 45px;
    height: 45px;
  }
  .ba-controls {
    gap: 15px;
  }
}

/* ======================= NUEVA SECCIÓN: MARCAS ASOCIADAS ======================= */

/* ==========================================
   BRANDS CAROUSEL SECTION
   ========================================== */

.brands-carousel-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 1px solid #e9ecef;
    overflow: hidden;
}

.brands-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
  cursor: grab;
}

.brands-carousel-wrapper.is-dragging {
  cursor: grabbing;
}

.brands-carousel-container {
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 0.875rem;
    padding: 8rem 0;
}

.brands-carousel-track {
    display: flex;
    gap: 3rem;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.brands-carousel-ltr {
  animation: none;
}

.brands-carousel-ltr:hover {
  animation-play-state: initial;
}


.brand-carousel-item {
    flex: 0 0 auto;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
  transition: transform 0.35s ease, filter 0.35s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    pointer-events: auto;
}

.brand-carousel-item:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.brand-carousel-item.is-centered {
  transform: scale(1.2);
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.2));
  z-index: 2;
}

.brand-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0.5rem;
}

.brand-logo {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
  transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.brand-carousel-item:hover .brand-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-carousel-item.is-centered .brand-logo {
  filter: grayscale(0%) saturate(1.15);
  opacity: 1;
}

@keyframes scrollBrandsLTR {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


.brands-disclaimer {
    margin-top: 2rem;
    padding: 1.5rem 0;
}

.brands-disclaimer p {
    color: #6c757d;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .brand-carousel-item {
        min-width: 150px;
        height: 80px;
    }

    .brands-carousel-track {
        gap: 2rem;
    }

    .brands-carousel-ltr {
      animation: none;
    }


    .brand-logo-wrapper {
        padding: 0.25rem;
    }
}

@media (max-width: 480px) {
    .brand-carousel-item {
        min-width: 120px;
        height: 70px;
    }

    .brands-carousel-track {
        gap: 1rem;
    }

    .brands-carousel-ltr {
      animation: none;
    }

}

.marcas-grid {
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Grid de Marcas */
.marcas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}


/* Contenedor del Logo */
.marca-logo-container {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  padding: 0.6rem 0;
}

.marca-logo {
  max-height: 100%;
  width: 200px;
  object-fit: contain;
  filter: none;
  transition: transform 0.60s ease, filter 0.60s ease, box-shadow 0.60s ease;
}

.marca-card:hover .marca-logo {
  filter: grayscale(0%) drop-shadow(0 4px 12px rgba(246, 101, 15, 0.2));
  transform: scale(1.08);
}

/* CTA: ¿No encuentra su marca? */
.marcas-cta {
  margin-top: 4rem;
  animation: fadeInUp 0.6s ease-out;
}

.marcas-cta .alert {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95)) !important;
  backdrop-filter: blur(10px);
}

/* Disclaimer Legal */
.marcas-disclaimer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

.marcas-disclaimer p {
  color: #868e96;
  font-weight: 400;
  letter-spacing: 0.3px;
  line-height: 1.8;
}

/* Animación de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .marcas-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
  }

  .marca-card {
    padding: 1.5rem 1rem;
    min-height: 240px;
  }

  .marca-logo-container {
    height: 80px;
    margin-bottom: 0.75rem;
  }

  .marca-nombre {
    font-size: 1rem;
  }

  .marca-desc {
    font-size: 0.8rem;
  }

  .marcas-cta .alert {
    padding: 1.5rem;
  }

  .marcas-cta .col-md-3 {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .marcas-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
  }

  .marca-card {
    padding: 1rem;
    min-height: 200px;
  }

  .marca-logo-container {
    height: 70px;
    margin-bottom: 0.5rem;
  }

  .marca-nombre {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .marca-desc {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .marcas-disclaimer p {
    font-size: 0.75rem;
  }
}
