@import url('fonts.css');

:root {
  --color-orange: #EC681C;
  --color-blue: #1F4E9D;
  --color-light-blue: #3fc3ee;
  --color-red: #E52521;
  --color-green: #47A134;
  --color-whatsapp: #32D851;
  --color-white: #ffffff;
  --color-gray: #7F7F7F;
  --color-light-gray: #D1D1D1;
  --color-background-light-gray: #FCFCFC;
  --color-vehicle-red: #FF0000;
  --color-vehicle-blue: #0B29FF;
  --color-card: #F9F9F9;
  --color-button-blue: #0449AD;
  --color-divider-mobile: #efefef;
}

body {
  font-family: 'Barlow';
  font-weight: 600;
  background-color: var(--color-white);
  color: var(--color-gray);
}

.preload {
  display: none;
}

.mb-100 {
  margin-bottom: 100px;
}

.width-100 {
  width: 100%;
}

.button {
  color: var(--color-white);
  font-family: 'Barlow';
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 12px 24px;
  width: 100%;
  max-width: fit-content;
  border-radius: 12px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
}

.button-blue {
  background-color: var(--color-blue);
}

.button-orange {
  background-color: var(--color-orange);
}

.header-buttons {
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
}

.div-orange-buttons {
  margin-left: 20px;
  display: inline-flex;
  align-items: center;
  background-color: var(--color-orange);
  color: var(--color-white);
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  width: 100%;
  max-width: fit-content;
  height: 100%;
}

.user-button,
.cart-button {
  background-color: transparent;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  height: 100%;
  display: inline-flex;
  text-decoration: none;
  padding-left: 24px;
  padding-right: 24px;
}

.user-button {
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

.divider {
  width: 1px;
  height: 24px;
  background-color: var(--color-white);
}

.cart-button {
  font-size: 22px;
  padding: 10px 12px;
  align-items: center;
  position: relative;
  display: inline-block;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 25px;
  height: 25px;
  background-color: var(--color-vehicle-red);
  color: white;
  font-size: 14px;
  font-weight: bold;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-count:empty,
.cart-count[data-count="0"] {
  display: none;
}

.menu-dropdown {
  position: relative;
}

.menu-dropdown-items {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-white);
  border: 1px solid var(--color-light-gray);
  opacity: 0;
  pointer-events: none;
  min-width: 150px;
  z-index: 10;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-dropdown-items .empty-cart {
  color: var(--color-gray);
  text-align: center;
}

.menu-dropdown-items.dropdown-right {
  left: auto;
  right: 0;
  padding: 14px 14px;
}

.menu-dropdown-items a {
  display: block;
  padding: 10px 14px;
  color: var(--color-gray);
  text-decoration: none;
  white-space: nowrap;
}

.menu-dropdown-items a i {
  margin-right: 10px;
}

.menu-dropdown-items.dropdown-right a i {
  margin-right: 0;
}

.menu-dropdown-items a:hover {
  background-color: var(--color-light-gray);
}

.menu-dropdown-items .dropdown-link {
  transition: all 0.3s ease;
  padding: 0;
}

.menu-dropdown-items .dropdown-link:hover {
  background: none;
  color: var(--color-orange);
}

.menu-dropdown:hover .menu-dropdown-items {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  align-items: center;
  font-family: 'Barlow';
  font-size: 15px;
  font-weight: 500;
}

.dropdown-header a {
  font-weight: 700;
  transition: all 0.3s ease;
}

.dropdown-header a:hover {
  background-color: transparent;
  color: var(--color-orange);
}

.dropdown-header span {
  color: var(--color-gray);
}

.dropdown-item {
  display: flex;
  align-items: center;
  border-top: 1px solid #ddd;
  padding: 10px 0;
}

.dropdown-item .delete-product {
  color: var(--color-vehicle-red);
  transition: all 0.3s ease;
}

.dropdown-item .delete-product:hover {
  background-color: transparent;
  transform: scale(1.1);
}

.product-img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.product-details {
  flex-grow: 1;
}

.menu-dropdown-items .product-name {
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--color-gray);
}

.product-price {
  font-size: 0.85rem;
  color: var(--color-gray);
}

.delete-product {
  background: none;
  border: none;
  color: var(--color-vehicle-red);
  font-size: 1.2rem;
  cursor: pointer;
}

.menu-dropdown-items .checkout-button {
  width: 100%;
  background: var(--color-orange);
  color: var(--color-white);
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  text-align: center;
}

.menu-dropdown-items .checkout-button:hover {
  background: var(--color-orange);
  color: var(--color-white);
}

.menu-divider {
  width: 1px;
  height: 30px;
  background-color: var(--color-white);
  margin: 0 12px;
}

.menu-cart-btn {
  color: var(--color-white);
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.header-bar-social {
  background-color: var(--color-orange);
  padding-top: 13px;
  padding-bottom: 13px;
}

.header-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  color: var(--color-white);
  font-weight: 500;
}

.header-bar-text p {
  margin-bottom: 0;
  font-size: 18px;
}

.header-bar-social-icons {
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.header-bar-social-icons a {
  color: var(--color-white);
  font-size: 20px;
  transition: transform 0.3s ease;
}

.header-bar-social-icons a:hover {
  transform: scale(1.2);
}

.section-logo {
  padding-top: 35px;
}

.logo {
  width: 100%;
  max-width: 190px;
}

.header-form {
  width: 100%;
  display: flex;
  width: 100%;
  gap: 5px;
}

.header-form .form-select {
  flex: 0 0 auto;
  width: auto;
}

.search-box-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.search-box-container .search-button {
  width: 40px;
  height: 40px;
  background-color: var(--color-gray);
  color: white;
  border: none;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-gray);
  border-radius: 6px;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.search-icon {
  background-color: var(--color-gray);
  color: white;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--color-gray);
  border-bottom: 1px solid var(--color-gray);
}

.search-input {
  flex: 1;
  border: none;
  padding: 10px;
  outline: none;
  font-size: 16px;
  height: 38px;
}

.search-input::placeholder {
  color: var(--color-gray);
}

.section-menu {
  padding-top: 40px;
  padding-bottom: 36px;
}

.nav-link {
  border-bottom: 4px solid var(--color-white);
}

.nav-link.active {
  border-bottom: 4px solid var(--color-orange);
}

.nav-link:hover {
  border-bottom: 4px solid var(--color-orange);
}

.dropdown-fullscreen {
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
  top: 92px;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-white);
  border: 1px solid var(--color-light-gray);
}

.dropdown-fullscreen.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.dropdown-fullscreen.hide {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  /* visibilidad se quita después de la transición */
}

.category-item {
  padding: 0px 8px;
  display: inline-block;
  text-decoration: none;
  color: var(--color-gray);
  font-weight: 500;
  transition: all 0.3s, color 0.3s;
  transform: skew(-10deg);
}

.category-item span {
  display: inline-block;
  transform: skew(10deg);
  text-transform: uppercase;
}

.category-item:hover,
.category-item.active {
  background-color: var(--color-orange);
  color: var(--color-white);
}

.megamenu-image {
  display: inline-block;
  transition: transform 0.3s ease;
}

.megamenu-image:hover {
  transform: scale(1.1);
}

.submenu-container {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.submenu-container .view-more{
  font-size: 22px;
}

.menu-divider {
  width: 4px;
  height: 18px;
  background-color: var(--color-orange);
  margin-right: 6px;
}

/* Ajustes visuales opcionales */
.text-orange {
  color: orange;
}

.dropdown-menu-custom img {
  max-height: 80px;
  object-fit: contain;
}

/**********************************************************************/

.banner-main {
  width: 100%;
  position: relative;
}

.responsive-banner {
  aspect-ratio: 1540 / 630; /* Mantiene proporción sin altura fija */
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 1s ease-in-out;
}

.banner-images-preload {
  display: none;
}

/* Controles de navegación */
.banner-controls {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}

.banner-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.banner-dot.active {
  background-color: var(--color-orange);
}

.banner-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.banner-dot-mobile {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.banner-dot-mobile.active {
  background-color: var(--color-orange);
}

.car-slider-section {
  padding: 20px 0;
  position: relative;
}

.car-slider-container {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.car-slider {
  display: flex;
  gap: 12px;
  transition: transform 0.4s ease;
  will-change: transform;
  padding-left: 60px;
  padding-right: 60px;
}

.car-thumb {
  flex: 0 0 20%;
  max-width: 20%;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s;
}

.car-thumb:hover {
  transform: scale(1.05);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(255,255,255,0.8);
  border: none;
  font-size: 24px;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slider-arrow.left {
  left: 20px;
}

.slider-arrow.right {
  right: 20px;
}

.large-photo-container .large-photo {
  width: 100%;
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

.large-photo.fade-in {
  opacity: 0;
}

.pre-sale {
  margin-top: 80px;
}

.pre-sale img {
  width: 100%;
}

/***************************************************************/
footer {
  background-color: var(--color-blue);
  color: var(--color-white);
  padding-top: 45px;
  padding-bottom: 45px;
}

footer h6 i {
  font-size: 14px;
  font-weight: 600;
}

footer a {
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-white);
}

footer li {
  margin-bottom: 8px;
}

.footer-social-icons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.footer-social-icons a {
  font-size: 22px;
}

.footer-social-links {
  gap: 16px;
  display: flex;
  flex-direction: row;
}

footer .inversiones {
  font-size: 20px;
}

.whatsapp-float {
  position: fixed;
  bottom: 60px;
  right: 60px;
  z-index: 9999;
}

.whatsapp-float img {
    width: 80px;
    height: 80px;
  }

.whatsapp-float img {
  transition: transform 0.3s ease;
}

.whatsapp-float:hover img {
  transform: scale(1.1);
}

/*****************************************************************/

.section-about-text {
  padding-top: 110px;
  padding-bottom: 70px;
}

.about-banner img {
  width: 100%;
}

.about-text {
  line-height: 1.5;
  text-align: justify;
  font-family: 'Poppins';
  font-weight: 400;
  color: var(--color-gray);
}

.about-text h2 {
  font-family: 'Poppins';
  font-size: 40px;
  font-style: italic;
  font-weight: 700;
}

.about-text p {
  font-size: 18px;
}

.image-float {
  float: right;
  height: auto;
  width: 100%;
  max-width: 650px;
  margin-left: 20px;
  margin-bottom: 10px;
}

.section-video {
  cursor: pointer;
}

.video-container {
  position: relative;
  width: 100%;
  cursor: pointer;
  display: none;
}

.video-container img,
.video-container video {
  width: 100%;
  height: auto;
  display: block;
}

.video-thumbnail,
#video-container {
  position: relative;
  width: 100%;
}

.video-thumbnail img,
.video-responsive {
  width: 100%;
  height: auto;
  display: block;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 120px;
  color: white;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
  pointer-events: none;
}

/*****************************************************************/

.section-clients {
  padding-top: 40px;
  padding-bottom: 100px;
}

.section-clients h2 {
  font-family: 'Barlow';
  font-weight: 700;
  font-size: 32px;
}

.section-clients img {
  width: 100%;
}

.news {
  background-color: var(--color-light-gray);
  color: var(--color-gray);
}

.news-text {
  padding: 30px 20px;
}

.news h3 {
  font-family: 'Barlow';
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}

.news p {
  font-family: 'Barlow';
  font-weight: 500;
  font-size: 13px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: justify;
}

.news a {
  color: var(--color-gray);
  font-family: 'Barlow';
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease;
}

.news a:hover {
  transform: scale(1.2);
}

/*****************************************************************/

.section-products {
  padding-bottom: 80px;
}

.motors-banner,
.vehicles-banner,
.distributors-banner {
  margin-bottom: 60px;
}

.motors-banner img,
.vehicles-banner img,
.distributors-banner img {
  width: 100%;
}

.distributors-banner {
  position: relative;
}

.filters {
  margin-top: 90px;
}

.filters-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.filters h3 {
  font-family: 'Poppins';
  font-weight: 500;
  font-size: 28px;
}

.filters h4 {
  font-family: 'Poppins';
  font-weight: 400;
  font-size: 18px;
  margin-top: 30px;
  margin-left: -20px;
}

.filters a {
  font-family: 'Poppins';
  font-weight: 400;
  font-size: 13px;
  color: var(--color-gray);
  text-decoration: none;
}

.filters-checkboxes {
  padding-left: 20px;
}

.filters-checkboxes input,
.filters-checkboxes label {
  cursor: pointer;
}

.product-title {
  margin-bottom: 50px;
}

.product-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 4 columnas por defecto */
}

.product-container .product.hide {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.product-container .product {
  border-top: 1px solid var(--color-light-gray);
  border-left: 1px solid var(--color-light-gray);
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

/* Estado final - remueve completamente del layout */
.product.hide-complete {
  display: none !important;
}

#no-products-message {
  grid-column: 1 / -1; /* Ocupa todas las columnas del grid */
  margin: 2rem 0;
  padding: 2rem;
  background-color: var(--color-card);
  border: 1px solid var(--color-gray);
  border-radius: 0.5rem;
}

#no-products-message.hide {
  display: none;
}

/* Bordes derechos para la última columna */
.product-container .product-vehicule:nth-child(4n) {
  border-right: 1px solid var(--color-light-gray);
}

/* Bordes inferiores para la última fila */
.product-container .product-vehicule:nth-last-child(-n+4) {
  border-bottom: 1px solid var(--color-light-gray);
}

.product-container .product-others:nth-child(3n+1) {
  border-right: 1px solid var(--color-light-gray);
}

/* Bordes inferiores para la última fila */
.product-container .product-others:nth-last-child(-n+3) {
  border-bottom: 1px solid var(--color-light-gray);
}

.product-container .product-others .text-start {
  min-height: 80px;
}

.product-container .product.last {
  border-right: 1px solid var(--color-light-gray);
}

.vehicles-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas por defecto */
}

.vehicles-container .product {
  border-top: 1px solid var(--color-light-gray);
  border-left: 1px solid var(--color-light-gray);
}

/* Bordes derechos para la última columna */
.vehicles-container .product:nth-child(4n) {
  border-right: 1px solid var(--color-light-gray);
}

/* Bordes inferiores para la última fila */
.vehicles-container .product:nth-last-child(-n+4) {
  border-bottom: 1px solid var(--color-light-gray);
}

.vehicles-container .product.last {
  border-right: 1px solid var(--color-light-gray);
}

.product-container .product {
  border-top: 1px solid var(--color-light-gray);
  border-left: 1px solid var(--color-light-gray);
  box-sizing: border-box;
  text-align: center;
  background: var(--color-white)
}

.product img {
  width: 100%;
}

.product hr {
  border: none;
  height: 1px;
  width: 100%;
  background-color: var(--color-gray);
}

.button-more-info {
  display: inline-block;
  background-color: var(--color-gray);
  color: var(--color-white);
  padding: 8px 20px;
  font-size: 0.875rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  transform: skew(-10deg);
}

.button-more-info span {
  display: inline-block;
  transform: skew(10deg);
}

.button-more-info:hover {
  background-color: var(--color-orange);
}

.name-price {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  margin-top: 10px;
  padding: 0 10px;
  width: 100%;
}

.product-container .name-price h4 {
  line-height: 1;
}

.name-price h4 {
  font-family: 'Barlow';
  font-weight: 900;
  font-size: 20px;
  line-height: 0.9;
  margin-bottom: 0;
}

.name-price h4 span {
  font-family: 'Barlow';
  font-weight: 500;
  font-size: 9px;
}

.price {
  background-color: var(--color-red);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 700;
  padding: 0px 14px;
  display: inline-block;
  transform: skew(-15deg);
}

.price span {
  display: inline-block;
  transform: skew(15deg);
}

.brand {
  text-align: left;
  padding: 0 10px;
  width: 100%;
}

.brand p {
  font-family: 'Poppins';
  font-weight: 400;
  font-size: 20px;
}

/*****************************************************************/

.section-product {
  margin-bottom: 60px;
}

.product-image {
  border: 1px solid var(--color-gray);
}

.product-image.zoom {
  position: relative;
  width: 500px;            /* ajusta al tamaño que necesites */
  overflow: hidden;
  cursor: zoom-in;
  background-position: 50% 50%;
  background-size: 200%;   /* aquí controlas cuánto se “acerca” el zoom */
}

.product-image.zoom:not(:hover) {
  background-image: none !important;
}

.product-image.zoom img {
  display: block;
  width: 100%;
  transition: opacity 0s;
}

.product-image.zoom:hover img {
  opacity: 0; /* al pasar el mouse, se oculta la img y se ve el background */
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-left: 40px;
}

.quantity-control {
  display: flex;
  align-items: center;
  width: fit-content;
  border: none;
  margin-bottom: 30px;
}

.qty-btn {
  background-color: var(--color-orange);
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  font-size: 1.2rem;
  cursor: pointer;
  user-select: none;
}

.qty-input {
  width: 50px;
  text-align: center;
  border: none;
  outline: none;
  background-color: var(--color-white);
  font-family: 'Barlow';
  font-weight: 600;
  font-size: 17px;
}

/* Chrome, Safari, Edge, Opera */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.qty-input {
  -moz-appearance: textfield;
}

.button-add-cart {
  background-color: var(--color-orange);
  color: var(--color-white);
  text-decoration: none;
  padding: 10px 26px;
  border-radius: 6px;
  border-color: transparent;
}

.text-orange {
  background-color: var(--color-orange);
  color: var(--color-white);
  padding: 10px 26px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 20px;
}

.text-price {
  margin-bottom: 10px;
}

.text-green {
  color: var(--color-green);
}

.text-green {
  color: var(--color-green);
}

.text-green .icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-green);
  color: var(--color-white);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  font-size: 12px;
}

.product-info h2 {
  margin-bottom: 80px;
}

.features-text {
  margin-left: 30px;
}

.other-product {
  padding: 20px;
}

.other-product img {
  width: 100%;
}

.other-product-image {
  border: 1px solid var(--color-gray);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.other-product-image:hover {
  border: 1px solid var(--color-orange);
}

.other-product-text h3 {
  font-family: 'Barlow';
  font-weight: 600;
  font-size: 18px;
}

.other-product-text a {
  font-family: 'Barlow';
  font-weight: 600;
  font-size: 18px;
  color: var(--color-gray);
  text-decoration: none;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.other-product-text a:hover {
  color: var(--color-orange);
}

.other-product-description h4 {
  font-family: 'Barlow';
  font-weight: 400;
  font-size: 22px;
}

.other-product-description h4 span {
  font-weight: 600;
}

.other-product-description p {
  font-family: 'Barlow';
  font-weight: 400;
  font-size: 12px;
}

.other-product-description p span {
  font-weight: 600;
}

.other-product-description .text-green {
  font-family: 'Barlow';
  font-weight: 400;
  font-size: 10px;
}

/*****************************************************************/

.container-vehicle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 4px solid transparent;
  transition: all 0.3s ease;
}

.container-vehicle a {
  text-align: center;
  color: var(--color-gray);
  text-decoration: none;
}

.container-vehicle img {
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.container-vehicle h3 {
  font-size: 22px;
}

.container-vehicle.active {
  border: 4px solid var(--color-light-gray);
}

.container-vehicle:hover {
  border: 4px solid var(--color-light-gray);
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  height: fit-content;
  padding: 20px 20px;
}

.section-vehicles .product {
  padding: 60px 20px;
  height: 100%;
}

.product-logo {
  width: 60px;
  position: absolute;
  top: 20px;
  left: 20px;
}

.product-logo img {
  width: 100%;
}

.product-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 14px;
  color: var(--color-white);
  padding: 0 10px;
}

.product-badge.badge-orange {
  background-color: var(--color-orange);
}

.product-badge.badge-red {
  background-color: var(--color-red);
}

.paginator {
  font-family: 'Poppins';
  font-weight: 500;
  font-size: 20px;
  display: flex;
  justify-content: center;
  padding: 16px 0;
  margin-top: 40px;
}

.paginator .active span {
  color: var(--color-orange);
}

.paginator .disabled span {
  color: var(--color-light-gray);
}

.paginator a {
  color: var(--color-gray);
  display: block;
  text-decoration: none;
}

.paginator a:hover {
  color: var(--color-orange);
}

.paginator ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 36px;
}

/*****************************************************************/

.vehicle-banner {
  position: relative;
  margin-bottom: 140px;
}

.vehicle-banner img {
  width: 100%;
}

.vehicle-banner .vehicles {
  position: absolute;
  top: 0;
  left: 3%;
  z-index: 99;
  width: 55%;
}

.vehicle-banner .vehicles .vehicle-image {
  width: 100%;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
}

.vehicle-banner .vehicles .vehicle-image.show {
  opacity: 1;
  visibility: visible;
  animation: slideIn 0.8s ease forwards;
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(-200px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.vehicle-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  position: absolute;
  right: 10%;
  top: 4%;
  color: var(--color-white);
  text-align: right;
}

.vehicle-buttons h1 {
  margin: 0;
  font-size: 50px;
}

.vehicle-buttons h2 {
  font-size: 20px;
}

.vehicle-buttons p {
  font-size: 18px;
}

.vehicle-buttons h3 {
  font-size: 24px;
  background-color: var(--color-red);
  padding-left: 5px;
  padding-right: 5px;
  margin-bottom: 20px;
}

.vehicle-buttons a {
  color: var(--color-white);
  font-family: 'Barlow';
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-align: center;
}

.vehicle-buttons a:hover {
  transform: scale(1.1);
}

.vehicle-buttons .add-cart {
  background-color: var(--color-orange);
  margin-bottom: 20px;
  width: 216px;
}

.vehicle-buttons .whatsapp {
  background-color: var(--color-whatsapp);
  margin-bottom: 40px;
  width: 216px;
}

.vehicle-buttons .colors {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.vehicle-buttons .colors span {
  color: var(--color-white);
  font-family: 'Barlow';
  font-weight: 600;
  font-size: 22px;
}

.vehicle-buttons .colors .color-buttons {
  display: flex;
  flex-direction: row;
  z-index: 99;
  gap: 10px;
}

.vehicle-buttons .colors a {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 0;
  padding: 0;
}

.vehicle-buttons .colors a:hover {
  transform: scale(1);
}

.vehicle-buttons .colors .red {
  background-color: var(--color-vehicle-red);
}

.vehicle-buttons .colors .blue {
  background-color: var(--color-vehicle-blue);
}

.technical-data-sheet {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.technical-data-sheet img {
  width: 100%;
}

.technical-data-sheet a {
  display: block;
  background-color: var(--color-vehicle-red);
  color: var(--color-white);
  text-decoration: none;
  padding: 16px 20px;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.technical-data-sheet a:hover {
  transform: scale(1.1);
}

.section-vehicle-motor img {
  width: 100%;
}

.vehicle-motor-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.vehicle-motor-text h2 {
  font-family: 'Barlow';
  font-weight: 700;
  font-size: 20px;
}

.vehicle-motor-text p {
  font-family: 'Barlow';
  font-weight: 400;
  font-size: 24px;
}

.section-caracteristicas {
  margin-bottom: 80px;
}

.section-vehicle-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 32px 0;
}

.background-text {
  position: absolute;
  top: 40px;
  left: 20px;
  font-size: 180px;
  font-weight: 700;
  font-family: 'Ethnocentric';
  color: var(--color-light-gray);
  opacity: 0.2;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.slider-viewport {
  overflow: hidden;
  width: 90%;
  margin: 0 auto;
}

.slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.4s ease-in-out;
}

.slide {
  flex: 0 0 auto;
  padding: 0 16px;
  width: 25%;
  cursor: pointer;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Arrows */
.track-slider {
  color: var(--color-orange);
  font-size: 40px;
  cursor: pointer;
  z-index: 10;
}

.track-slider.left {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.track-slider.right {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
}

/* Modal base */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

/* Imagen centrada y grande */
.modal-content {
  position: relative;
  width: fit-content;
  animation: fadeIn 0.2s ease;
  height: 96%;
}

.modal-content img {
  height: 100%;
  width: auto;
  max-height: 90vh;
  max-width: 100vw;
  object-fit: contain;
  border-radius: 8px;
}

/* Botón cerrar */
.modal-close {
  position: absolute;
  top: -1rem;
  right: -1rem;
  background: #fff;
  color: #000;
  font-size: 2rem;
  width: 2rem;
  height: 2rem;
  line-height: 1.9rem;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Suave animación */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.warranty {
  text-align: center;
  border: 1px solid var(--color-gray);
  border-radius: 10px;
}

.warranty h2 {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 36px;
  font-style: normal;
  margin-bottom: 0;
}

.warranty h2 span {
  font-size: 22px;
}

.warranty p {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 22px;
  font-style: normal;
  margin-bottom: 0;
}

.warranty .text {
  padding: 60px 10px;
}

.warranty .note {
  border-top: 1px solid var(--color-gray);
  padding: 18px 10px;
}

.section-control {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 33px;
  margin-bottom: 100px;
}

.section-control .control-card {
  background-color: var(--color-card);
  border-radius: 10px;
  height: 100%;
}

.control-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  text-align: center;
  margin-bottom: 30px;
}

.progress-circle {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 0 auto 20px;
}

.progress-circle svg {
  
  width: 100%;
  height: 100%;
}

.progress-circle path.bg {
  fill: none;
  stroke: #ccc;
  stroke-width: 3.8;
}

.progress-circle path.progress {
  fill: none;
  stroke: var(--color-orange);
  stroke-width: 3.8;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 3s ease-in-out;
  transform-origin: center;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.progress-text span {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 34px;
}

.progress-text small {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 20px;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  font-size: 14px;
  margin-top: 30px;
}

.service-list li {
  border-top: 1px solid var(--color-light-gray);
  padding: 8px 0;
  font-family: 'Poppins';
  font-weight: 500;
  font-size: 16px;
}

.service-list li:first-child {
  border-top: 0;
}

/*****************************************************************/

.section-distributors h2 {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 40px;
}

.whatsapp-button {
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  position: absolute;
  z-index: 10;
  bottom: 18%;
  right: 11%;
  padding: 10px 34px;
  text-decoration: none;
  font-family: 'Poppins';
  font-weight: 500;
  font-size: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.whatsapp-button i {
  font-size: 28px;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

.distributor {
  margin-bottom: 40px;
}

.distributor h4 {
  font-size: 22px;
  margin-bottom: 10px;
}

.distributor img {
  width: 100%;
}

.distributor-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.distributor-text h3 {
  color: var(--color-orange);
}

/* Modal: fondo oscuro */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Contenedor principal del modal */
.modal-content {
  background-color: var(--color-white);
  width: 100%;
  max-width: 1500px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease-out;
  border-radius: 0;
}

/* Cabecera naranja */
.modal-header {
  background-color: var(--color-orange);
  color: var(--color-white);
  padding: 8px;
  position: relative;
  border-radius: 0;
  height: 54px;
}

.modal-header .close-modal {
  color: var(--color-white);
  background-color: red;
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 68px;
  height: 53px;
  font-size: 30px;
  padding-left: 14px;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
}

.modal-header h2 {
  width: 100%;
  text-align: center;
  font-family: 'Barlow';
  font-weight: 600;
  font-size: 32px;
  margin-bottom: 0;
}

/* Cuerpo del modal */
.modal-body {
  padding: 100px 60px;
  display: flex;
  flex-direction: row;
  gap: 75px;
  color: var(--color-gray);
  overflow-y: auto;
}

.modal-body img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.modal-image {
  width: 55%;
}

.modal-text {
  width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-text h3 {
  font-family: 'Barlow';
  font-weight: 600;
  font-size: 40px;
}

.modal-text p {
  font-family: 'Poppins';
  font-weight: 400;
  font-size: 18px;
}

.modal-text p span {
  font-weight: 600;
}

.modal-image img {
  width: 100%;
}

.modal-text-distribuidores h4 {
  font-weight: 700;
  margin-bottom: 0;
}

/* Animación suave */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/*****************************************************************/

.section-payment-plans h2 {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 50px;
  margin-bottom: 60px;
}

.section-payment-plans h3 {
  font-family: 'Poppins';
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 30px;
}

.section-payment-plans form {
  font-family: 'Poppins';
  font-weight: 400;
  font-size: 14px;
}

.section-payment-plans form h4 {
  font-family: 'Poppins';
  font-weight: 500;
  font-size: 26px;
}

.section-payment-plans form input,
.section-payment-plans form select {
  margin-bottom: 40px;
}

.modal-body.terms-conditions {
  flex-direction: column;
  gap: 0;
  padding: 40px 40px;
}

.orange-button {
  background-color: var(--color-orange);
  color: var(--color-white);
  font-family: 'Poppins';
  font-weight: 500;
  font-size: 18px;
  border: none;
  border-radius: 10px;
  padding: 14px 22px;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease;
}

.orange-button:hover {
  transform: scale(1.1);
}

.orange-button.blue-button {
  background-color: var(--color-button-blue);
}

/*****************************************************************/
.section-form {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-form input,
.section-form select {
  font-family: 'Barlow';
  font-weight: 500;
  font-size: 20px;
}

.section-form label {
  font-family: 'Barlow';
  font-weight: 500;
  font-size: 18px;
}

.div-form {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  background: var(--color-white);
  padding: 40px 60px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  max-width: 550px;
  width: 100%;
  text-align: center;
}

.recovery-box {
  text-align: left;
}

.recovery-box a {
  color: var(--color-orange);
  text-decoration: none;
}

.recovery-box h3 {
  margin-top: 20px;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}

.recovery-box h4 {
  margin-bottom: 40px;
  font-size: 18px;
  text-align: center;
}

.recovery-box button {
  margin-top: 20px;
}

.login-box.register-box {
  max-width: 650px;
}

.login-box.profile-box {
  max-width: 100%;
  text-align: left;
  font-family: 'Barlow';
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 30px;
}

.login-box.profile-box h2 {
  font-family: 'Barlow';
  font-weight: 600;
  font-size: 40px;
}

.login-box.profile-box h3 {
  font-family: 'Barlow';
  font-weight: 600;
  font-size: 20px;
}

.login-box.profile-box h4 {
  font-family: 'Barlow';
  font-weight: 400;
  font-size: 16px;
}

.div-form-button {
  display: flex;
  justify-content: flex-end;
}

.login-box.profile-box span {
  font-weight: 600;
  color: var(--color-orange);
}

.login-box.profile-box #nombre-usuario {
  font-weight: 500;
  color: var(--color-gray);
}

.login-box .logo {
  width: 160px;
  margin-bottom: 40px;
}

.login-box .div-logo {
  width: 100%;
}

.login-box form {
  text-align: left;
}

.login-box label {
  display: block;
  margin: 10px 0 5px;
  color: var(--color-gray);
  font-weight: bold;
  cursor: pointer;
}

.login-box input[type="text"],
.login-box input[type="email"],
.login-box input[type="password"],
.login-box.profile-box input[type="date"],
.login-box.profile-box textarea,
.login-box.profile-box select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-orange);
  border-radius: 12px;
  outline: none;
}

.login-box.profile-box input[type="text"], 
.login-box.profile-box input[type="email"], 
.login-box.profile-box input[type="password"],
.login-box.profile-box input[type="date"],
.login-box.profile-box textarea,
.login-box.profile-box select {
  border: 1px solid var(--color-light-gray);
}

.login-box .forgot-password {
  font-family: 'Barlow';
  font-weight: 500;
  font-size: 14px;
  color: var(--color-orange);
  text-decoration: none;
  display: block;
  margin-bottom: 20px;
}

.login-box .login-btn {
  background: var(--color-orange);
  color: var(--color-white);
  border: none;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-family: 'Barlow';
  font-weight: 500;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.login-box .login-btn:hover {
  transform: scale(1.05);
}

.tab-container {
  display: inline-flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--color-gray);
  background-color: var(--color-white);
  border-radius: 10px;
  margin-bottom: 36px;
}

.tab {
  padding: 2px 32px;
  text-decoration: none;
  font-family: 'Barlow';
  font-weight: 500;
  font-size: 16px;
  position: relative;
  color: var(--color-orange);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background: none;

}

.tab.acceder {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.tab.registrarme {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.tab.active {
  color: white;
  position: relative;
}

/* Efecto de triángulo para el botón activo */
.tab.acceder.active::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 0;
  width: 0;
  height: 0;
  border-top: 0px solid transparent;
  border-bottom: 46px solid transparent;
  border-left: 14px solid var(--color-orange);
  z-index: 2;
}

.tab.registrarme.active::after {
  content: "";
  position: absolute;
  left: -14px;
  top: 0;
  width: 0;
  height: 0;
  border-bottom: 0px solid transparent;
  border-top: 46px solid transparent;
  border-right: 14px solid var(--color-orange);
  z-index: 2;
}

/* Fondo naranja para el botón activo */
.tab.acceder.active {
  background-color: var(--color-orange);
}

.tab.registrarme.active {
  background-color: var(--color-orange);
}

/* Asegurar que el botón derecho active cubra el triángulo del izquierdo */
.tab.registrarme.active {
  margin-left: -10px;
  padding-left: 35px;
}

/*****************************************************************/

.profile-sidebar {
  width: 100%;
  background-color: var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  font-family: 'Barlow';
  font-weight: 500;
  font-size: 20px;
}

.profile-sidebar .profile-item:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.profile-sidebar .profile-item:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.profile-item {
  padding: 12px 16px;
  color: var(--color-gray);
  position: relative;
  border-top: 1px solid var(--color-light-gray);
}

.profile-item:first-child {
  border-top: none;
}

.profile-item.active {
  background-color: var(--color-orange);
  color: var(--color-white);
  font-weight: 600;
  z-index: 1;
}

.profile-item.active::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -20px; /* fuera del contenedor */
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid var(--color-orange);
}

.profile-item a {
  display: block;
  color: var(--color-gray);
  text-decoration: none;
  width: 100%;
  height: 100%;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.order-price {
  color: var(--color-gray);
}

.divider {
  border: none;
  border-top: 1px solid var(--color-light-gray);
  margin: 8px 0;
}

.order-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.order-details {
  display: flex;
  flex-direction: column;
}

.order-id {
  font-size: 14px;
}

.order-status {
  font-weight: bold;
  font-size: 14px;
  margin-top: 4px;
}

.order-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
}

.div-order .product-image {
  display: flex;
  flex-direction: row;
  align-items: center;
  border: none;
  gap: 20px;
}

.div-order .product-image img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 4px;
  border: 1px solid var(--color-gray);
  transition: all 0.3s ease;
}

.div-order .product-image a:hover img {
  border: 1px solid var(--color-orange);
}

.delivery-status a {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-gray);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

.delivery-status p {
  font-size: 14px;
  color: var(--color-gray);
}

.delivery-status a:hover {
  color: var(--color-orange);
}

.product-seller {
  text-align: right;
  font-size: 14px;
}

.product-seller a {
  color: var(--color-gray);
  text-decoration: none;
}

.div-order {
  border: 1px solid var(--color-light-gray);
  border-radius: 10px;
  padding: 20px 30px;
  margin-top: 30px;
}

.order-divider {
  border-bottom: 1px solid var(--color-light-gray);
  margin-top: 20px;
  margin-bottom: 20px;
}

.cart-table img {
  width: 100%;
  max-width: 100px;
}

.cart-table td {
  vertical-align: middle;
}

.div-quantity {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
  color: var(--color-orange);
}

.div-quantity .qty-number {
  font-family: 'Barlow';
  font-weight: 600;
  font-size: 20px;
}

.qty-btn {
  background: none;
  border: 2px solid var(--color-orange);
  color: var(--color-orange);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.qty-btn:hover {
  background: var(--color-orange);
  color: white;
}

.table .no-border td {
  border-bottom: none;
}

.table tr th {
  font-family: 'Barlow';
  font-weight: 600;
  font-size: 16px;
}

.table tr td {
  font-family: 'Barlow';
  font-weight: 400;
  font-size: 16px;
}

.table tr td.cart-total {
  font-family: 'Barlow';
  font-weight: 600;
  font-size: 20px;
}

.div-cart-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 80px;
  margin-top: 80px;
}

.inner-divider {
  border: none;
  border-top: 1px solid var(--color-light-gray);
  margin: 10px 0;
}

.inner-box {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0 20px;
}

.inner-box p {
  margin-bottom: 0;
}

.inner-box p.total {
  color: var(--color-orange);
  font-weight: 600;
}

.confirm-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

/*****************************************************************/

.div-orange-buttons-mobile {
  display: inline-flex;
}

.div-buttons-mobile .cart-count {
  top: -8px;
  right: -5px;
}

.div-mobile-button-bars {
  display: flex;
  align-items: center;
  height: 100%;
}

.mobile-button-bars {
  border: 1px solid var(--color-gray);
  border-radius: 8px;
  color: var(--color-gray);
  font-size: 22px;
  padding: 4px 12px;
}

.menu-mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* fondo negro translúcido */
  display: flex;
  justify-content: flex-start; /* Alinea el menú a la izquierda */
  z-index: 1000;
  pointer-events: none;  /* se activa con .active */
  opacity: 0;
  transition: opacity 0.3s ease;
  inset: 0;
}

/* Mostrar overlay */
.menu-mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.div-menu-mobile {
  display: block;
  z-index: 9999;
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 380px;  
  background-color: var(--color-white);
  overflow: auto;
  padding-top: 56px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

/* Entrada del menú */
.menu-mobile-overlay.active .div-menu-mobile {
  transform: translateX(0);
}

/* Salida del menú */
.menu-mobile-overlay.closing .div-menu-mobile {
  transform: translateX(-100%);
}

.close-menu-mobile {
  position: absolute;
  top: 4px;
  right: 10px;
  font-size: 36px;
  color: var(--color-orange);
}

.div-menu-mobile ul {
  list-style: none;
  padding-left: 0;
}

.div-menu-mobile .link-mobile {
  text-decoration: none;
  color: var(--color-gray);
  display: inline-block;
  width: 100%;
  border-bottom: 1px solid var(--color-divider-mobile);
  padding: 18px 30px;
  font-family: 'Barlow';
  font-weight: 400;
  font-size: 18px;
}

.div-menu-mobile .link-inner-mobile {
  padding-left: 16px;
  padding-right: 16px;
  color: var(--color-gray);
  font-family: 'Barlow';
  font-weight: 400;
  font-size: 16px;
  width: 100%;
  text-decoration: none;
  display: inline-block;
  padding: 10px 30px;
  border-bottom: 1px solid var(--color-divider-mobile);
}

.div-menu-mobile ul li:last-child .link-mobile {
  border-bottom: none;
}

.div-menu-mobile ul li:last-child .link-inner-mobile {
  border-bottom: none;
}

.accordion {
  --bs-accordion-border-width: 0;
  border-bottom: 1px solid var(--color-divider-mobile) !important;
  --bs-accordion-active-bg: transparent;
}

.accordion-button {
  font-family: 'Barlow';
  font-weight: 400;
  font-size: 18px;
  color: var(--color-gray);
  border-radius: 0;
  box-shadow: none;
  padding: 14px 30px;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  box-shadow: none !important;
  color: var(--color-orange) !important;
}

.menu-profile-mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* fondo negro translúcido */
  display: flex;
  justify-content: flex-start; /* Alinea el menú a la izquierda */
  z-index: 1000;
  pointer-events: none;  /* se activa con .active */
  opacity: 0;
  transition: opacity 0.3s ease;
  inset: 0;
}

/* Mostrar overlay */
.menu-profile-mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.div-menu-profile-mobile {
  display: block;
  z-index: 9999;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 250px;  
  background-color: var(--color-white);
  overflow: auto;
  padding-top: 56px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.5s ease;
}

/* Entrada del menú */
.menu-profile-mobile-overlay.active .div-menu-profile-mobile {
  transform: translateX(0);
}

/* Salida del menú */
.menu-profile-mobile-overlay.closing .div-menu-profile-mobile {
  transform: translateX(100%);
}

.close-menu-profile-mobile {
  position: absolute;
  top: 4px;
  left: 10px;
  font-size: 36px;
  color: var(--color-orange);
}

/* ------------ */

.menu-cart-mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* fondo negro translúcido */
  display: flex;
  justify-content: flex-start; /* Alinea el menú a la izquierda */
  z-index: 1000;
  pointer-events: none;  /* se activa con .active */
  opacity: 0;
  transition: opacity 0.3s ease;
  inset: 0;
}

/* Mostrar overlay */
.menu-cart-mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.div-menu-cart-mobile {
  display: block;
  z-index: 9999;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 250px;  
  background-color: var(--color-white);
  overflow: auto;
  padding-top: 56px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.5s ease;
}

/* Entrada del menú */
.menu-cart-mobile-overlay.active .div-menu-cart-mobile {
  transform: translateX(0);
}

/* Salida del menú */
.menu-cart-mobile-overlay.closing .div-menu-cart-mobile {
  transform: translateX(100%);
}

.close-menu-cart-mobile {
  position: absolute;
  top: 4px;
  left: 10px;
  font-size: 36px;
  color: var(--color-orange);
}

.menu-dropdown-items.dropdown-mobile-items {
  opacity: 1;
  position: relative;
  pointer-events: auto;
  top: auto;
  left: auto;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 10px;
}

.menu-dropdown-items.dropdown-mobile-items .dropdown-header {
  padding-left: 10px;
  padding-right: 10px;
}

.menu-dropdown-items.dropdown-mobile-items .dropdown-item {
  white-space: normal;
}

.menu-dropdown-items.dropdown-mobile-items a {
  white-space: normal;
}

.menu-dropdown-items.dropdown-mobile-items .dropdown-item-button {
  padding-left: 10px;
  padding-right: 10px;
}

.model-row {
  justify-content: center;
}

/* Estado inicial (oculto) */
.vehicle-menu {
  display: none;
}

.vehicle-menu.show {
  display: block;
}

.dropdown-hover .nav-link {
  cursor: pointer;
}

/* Overlay */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1050;
}

.popup-overlay.active {
  display: flex;
}

/* Popup (estilo SweetAlert2) */
.popup {
  background: #fff;
  padding: 20px 30px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  max-width: 400px;
  width: 90%;
  position: relative;
  text-align: center;
  animation: popupIn 0.25s ease forwards;
}

/* Al cerrar */
.popup.closing {
  animation: popupOut 0.25s ease forwards;
}

/* Animación entrada */
@keyframes popupIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Animación salida */
@keyframes popupOut {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.8);
    opacity: 0;
  }
}

/* Botón cerrar */
.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s;
}

.popup-close:hover {
  color: #000;
}

/* Formulario dentro */
.popup form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.popup input {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.popup button {
  background: var(--color-orange);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.popup button:hover {
  transform: scale(1.1);
}

.icon-wrapper {
  display: flex;
  justify-content: center; /* centra horizontalmente */
  margin-bottom: 15px; /* espacio debajo del icono */
}

.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-light-blue);
  font-size: 20px;
  border: 2px solid var(--color-light-blue);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* espacio entre label y select */
  margin-bottom: 15px;
}

.form-row label {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  min-width: 70px; /* ancho fijo para alinear en formularios */
  text-align: right;
}

.real-select {
  display: none;
}

.custom-select-wrapper {
  position: relative;
  width: 120px;
  font-family: sans-serif;
}

.custom-select {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-select-trigger {
  font-size: 14px;
}

.track-slider {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  transition: transform 0.2s;
}

.custom-select.open .track-slider {
  transform: rotate(180deg);
}

.custom-options {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  z-index: 1000;
  pointer-events: none;

  /* Animación */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.25s ease;
}

.custom-options li {
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
}

.custom-options li:hover {
  background: #f2f2f2;
}

/* Cuando está abierto */
.custom-select.open .custom-options {
  max-height: 240px; /* espacio máximo para ~7 ítems */
  opacity: 1;
  overflow-y: auto;  /* agrega scroll si hay más */
  pointer-events: auto;
}

/*****************************************************************/

.datos-factura {
  display: none;
  overflow: hidden;
  transition: all 0.3s ease-out;
}

.datos-factura.slide-down {
  display: block;
  animation: slideDown 0.3s ease-out forwards;
}

.datos-factura.slide-up {
  animation: slideUp 0.3s ease-out forwards;
}

.no-results {
  grid-column: 1 / -1; /* ocupa todas las columnas */
  text-align: center;
  font-size: 26px;
  padding: 2rem;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    max-height: 200px; /* Ajusta según el contenido */
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
}

fieldset, legend {
  all: revert !important;
}

fieldset {
  border: 1px solid var(--color-light-gray) !important;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px dashed #dee2e6;
  margin: 40px 0;
}

.empty-state i {
  font-size: 64px;
  color: #6c757d;
  margin-bottom: 20px;
  display: block;
}

.empty-state p {
  font-size: 18px;
  color: #495057;
  margin-bottom: 25px;
  font-weight: 500;
}

.empty-state .btn {
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
}

.empty-state .btn-primary {
  background: var(--color-orange);
  border: none;
  color: white;
  transition: all 0.3s ease;
}

.empty-state .btn-primary:hover {
  transform: scale(1.1);
}

/* Animación suave */
.empty-state {
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-image-list {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.thumbs-list {
  width: 80px;
  flex-shrink: 0; 
  display: flex;
  flex-direction: column;
}
.thumb-item {
  cursor: pointer;
  border: 1px solid var(--color-gray);
}
.thumb-item.active {
  border: 1px solid var(--color-orange); /* marca la miniatura activa */
}
.thumb-img {
  width: 100%;
  object-fit: cover;
}

.product-image {
  flex: 1;
}

.libro-reclamaciones span {
  color: var(--color-red);
}

.password-container {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 10px;
}

.password-container input {
  width: 100%;
  padding-right: 40px; /* espacio para el icono */
  box-sizing: border-box;
}

/* Centrado vertical del icono */
.password-container button {
  position: absolute;
  right: 10px;
  top: 50%;                /* lo coloca a la mitad del contenedor */
  transform: translateY(-50%); /* lo centra verticalmente */
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.password-container button:hover {
  color: #000;
}

.header-phone a {
  color: var(--color-white);
  text-decoration: none;
}

#banner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.7); /* negro medio transparente */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999; /* debajo del banner */
}

.banner-flotante {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: 80%;
  max-height: 700px;
  z-index: 1000;
}

.banner-flotante img {
  width: auto;
  height: 100%;
}

#closeBtnBanner {
  border: none;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-weight: bold;
  background-color: var(--color-orange);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.pre-sale-web {
  display: block;
}

.pre-sale-mobile {
  display: none;
}

.caracteristicas-img-mobile {
  display: none;
}

.img-web {
  display: block;
}

.img-mobile {
  display: none;
}

.filters-button {
  display: none;
}

.filters-button .filter-button {
  width: 100%;
  display: block;
  border: 1px solid var(--color-orange);
  background-color: var(--color-orange);
  text-align: center;
  text-decoration: none;
  color: var(--color-white);
  text-transform: uppercase;
  font-size: 18px;
  padding: 12px 15px;
}

.filters-button .filter-button .oculta {
  display: none;
}

.filters-button.active .filter-button .oculta {
  display: block;
}

.filters-button.active .filter-button .filtros {
  display: none;
}

.product-item {
  padding: 20px 10px;
  border: solid 1px rgba(191, 191, 191, 0.5);
  border-radius: 10px;
  -webkit-transition: border-color 0.4s ease;
  transition: border-color 0.4s ease;
  background-color: var(--color-white);
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.div-product-item.hide {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  display: none;
}

.product-item a {
  text-decoration: none;
}

.product-item .text-start {
  color: var(--bs-body-color);
}

.product-item .button-more-info {
  text-transform: uppercase;
  transition: transform 0.4s ease, background-color 0.4s ease;
}

.product-item:hover {
  border-color: var(--color-orange);
}

.product-item:hover .button-more-info {
  transform: scale(1.1) skew(-10deg, 0deg);
  background-color: var(--color-orange);
}

.product-item img {
  width: 100%;
}

.container-menu-mobile {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.container-menu-mobile > div {
  flex: 1;
}

.section-logo-mobile {
  padding-top: 10px !important;
  border-bottom: solid 1px #e0e4f6;
  margin-bottom: 20px;
}

.div-logo-mobile {
  justify-content: center;
}

.logo-mobile {
  height: 38px;
  width: auto;
}

.div-buttons-mobile a {
  background-color: transparent;
  color: var(--color-gray);
  font-size: 22px;
}

.search-box-container-mobile {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
}

.search-box-container-mobile.active {
  max-height: 200px; /* suficiente para tu contenido */
  opacity: 1;
}

/*****************************************************************/

@media (max-width: 991px) {
  .image-float {
    max-width: 350px;
  }

  .product-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-container > .product {
    border-right: 1px solid var(--color-light-gray);
    border-bottom: 1px solid var(--color-light-gray);
  }

  .product-container > .product-vehicule:nth-child(2n) {
    border-right: none;
  }

  .product-container > .product-vehicule:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .product-container > .product-others:nth-child(2n) {
    border-right: none;
  }

  .product-container > .product-others:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .vehicles-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-bar-text {
    display: flex;
    align-items: center;
  }

  .header-bar-text p {
    margin-bottom: 0;
    font-size: 14px;
  }

  .header-bar-social {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .button {
    font-size: 14px;
    padding: 0 12px;
    gap: 5px;
  }

  .div-logo-mobile {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
  }

  .section-logo {
    padding-top: 20px;
  }

  .section-menu {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .whatsapp-float img {
    width: 50px;
    height: 50px;
  }

  .whatsapp-float {
    bottom: 60px;
    right: 20px;
  }

  .imagen-float {
    float: none;
    display: block;
    margin: 20px auto;
  }

  .filters {
    margin-bottom: 40px;
    margin-top: 0;
    background-color: var(--color-white);
    padding: 20px;
    border: 1px solid #e0e4f6;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
  }

  /* Cuando está activo */
  .filters-button.active + .filters,
  .filters-button.active ~ .filters {
    max-height: 1000px; /* lo suficientemente grande */
    opacity: 1;
  }

  .slide {
    width: 50%;
  }

  .modal {
    align-items: flex-start;
  }

  .car-thumb {
    flex: 0 0 33.33%; /* 3 por fila (33.33%) o 25% para 4 */
    max-width: 33.33%; /* Ajusta según prefieras (25% = 4) */
  }

  .car-slider {
    gap: 8px; /* Reducir espacio entre imágenes */
    padding-left: 30px;
    padding-right: 30px;
  }

  .login-box {
    padding: 20px 20px;
    margin-top: 20px;
  }

  .profile-item.active::after {
    content: none;
  }

  .banner-flotante {
    width: 90%;
    max-width: 90%;
    height: auto;
    max-height: auto;
  }

  .banner-flotante img {
    width: 100%;
    height: auto;
  }

  .pre-sale-web {
    display: none;
  }

  .pre-sale-mobile {
    display: block;
  }

  footer a {
    font-size: 16px;
  }

  .img-libro-reclamaciones {
    max-width: 50px;
  }

  .caracteristicas-img-web {
    display: none;
  }

  .caracteristicas-img-mobile {
    display: block;
  }

  .img-web {
    display: none;
  }

  .img-mobile {
    display: block;
  }

  .section-clients h2 {
    font-size: 24px;
    text-align: center;
  }

  .product-image-list {
    flex-direction: column-reverse;
  }
  
  .product-image.zoom {
    width: 100%;
  }

  .thumbs-list {
    flex-direction: row;
    width: 100%;
    gap: 10px;
  }

  .thumb-item {
    max-width: 80px;
  }

  .product-info {
    padding-left: 0;
  }

  .product-info h2 {
    text-align: center;
    margin-bottom: 40px;
  }

  .features-text {
    margin-left: 0;
  }

  .product-price form {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .features {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .more-products h2 {
    text-align: center;
  }

  .filters-button {
    display: block;
  }

  .div-filters-checkboxes {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .about-text p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .section-about-text {
    padding-left: 10px;
    padding-right: 10px;
  }

  .responsive-banner {
    aspect-ratio: 1080 / 1350; /* Mantiene proporción sin altura fija */
  }
}

@media (max-width: 576px) {
  .product-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-container > .product {
    border-right: none;
    border-bottom: 1px solid var(--color-light-gray);
  }
  .product-container > .product:last-child {
    border-bottom: none;
  }

  .vehicles-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .slide {
    width: 100%;
  }

  .name-price {
    flex-direction: column;
  }

  .link-libro-reclamaciones {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
  }

  .vehicle-buttons h1 {
    font-size: 30px;
  }
}