#custom-slider {
  position: relative;
  width: 100%;
  height: clamp(520px, 85vh, 860px);
  overflow: hidden;
  font-family: "Poppins", sans-serif;
}

#custom-slider .cs-slide {
  position: relative;
  overflow: hidden;
}

#custom-slider .cs-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

#custom-slider .cs-image-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

#custom-slider .cs-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.15));
  z-index: 2;
  pointer-events: none;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in h2,
.animate-in p,
.animate-in a {
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
}

.animate-in h2 {
  animation-delay: 0.2s;
}

.animate-in p {
  animation-delay: 0.4s;
}

.animate-in a {
  animation-delay: 0.6s;
}

#custom-slider .cs-slide-content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 8%;
  max-width: 480px;
  color: #fff;
  z-index: 3;
}

#custom-slider .cs-slide-content h2 {
  font-size: clamp(1.8rem, 3vw + 1rem, 3.2rem);
  margin-bottom: 15px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

#custom-slider .cs-slide-content p {
  font-size: clamp(1rem, .6vw + .9rem, 1.2rem);
  margin-bottom: 25px;
  color: #e9e9e9;
  line-height: 1.5;
}

#custom-slider .cs-btn-slide {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 40px;
  background: rgba(255, 45, 45, 0.9);
  backdrop-filter: blur(6px);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: all .35s ease;
  box-shadow: 0 4px 16px rgba(255, 45, 45, 0.45);
}

#custom-slider .cs-btn-slide:hover {
  background: rgba(255, 45, 45, 1);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 22px rgba(255, 45, 45, 0.65);
}

#custom-slider .cs-swiper-button-next,
#custom-slider .cs-swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  cursor: pointer;
  transition: all .35s ease;
}

#custom-slider .cs-swiper-button-prev {
  left: 22px;
}

#custom-slider .cs-swiper-button-next {
  right: 22px;
}

#custom-slider .cs-swiper-button-next:after,
#custom-slider .cs-swiper-button-prev:after {
  font-size: 22px;
  color: #fff;
  font-weight: bold;
}

#custom-slider .cs-swiper-button-next:hover,
#custom-slider .cs-swiper-button-prev:hover {
  transform: translateY(-50%) scale(1.2);
  background: rgba(255, 45, 45, 0.9);
  box-shadow: 0 0 24px rgba(255, 45, 45, 0.75);
}

#custom-slider .cs-progress-bars {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  width: 80%;
  z-index: 70;
}

#custom-slider .cs-progress-bar {
  width: 100%;
  height: 7.6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

#custom-slider .cs-progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff2d2d, #b30000);
  transition: none;
  box-shadow: 0 0 16px rgba(255, 45, 45, 0.45);
  border-radius: 4px;
}

#custom-slider .cs-progress-bar span.no-transition {
  transition: none !important;
}

/* ==========================
  VEHICULOS GRID (additional rules for page)
  Moved from inline styles in vehiculos.php to central stylesheet
  ========================== */
/* Centrado visual y responsivo para la grilla de modelos */
.vehiculos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 28px;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media(max-width:1100px) {
  .vehiculos-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:700px) {
  .vehiculos-grid {
    grid-template-columns: 1fr
  }
}

/* Make each card a column-flex so content heights match and footer/buttons stick to bottom */
.vehiculos-grid .toyota-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px
}

.vehiculos-grid .toyota-imgbox {
  display: block;
  flex: 0 0 auto;
  margin: 0 !important;
  line-height: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.vehiculos-grid .toyota-imgbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px
}

/* Info area stretches to fill remaining space so cards align */
.vehiculos-grid .toyota-info {
  background: #8f8f86;
  color: #ffffff;
  padding: 20px;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1
}

.vehiculos-grid .toyota-info .toyota-info-text h3 {
  color: #fff;
  margin: .2rem 0;
  font-size: 1.05rem
}

.vehiculos-grid .toyota-year {
  color: #ffffff;
  opacity: .95;
  display: block;
  margin-bottom: 6px;
  font-weight: 600
}

.vehiculos-grid .toyota-info .toyota-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px
}

/* Button: unify with home style (pill, gradient, shadow, hover lift) */
.vehiculos-grid .toyota-contact a {
  color: #fff;
  text-decoration: none;
  opacity: .95;
  margin-left: 8px
}

/* Keep AJAX-added animation behavior */
.vehiculos-grid .toyota-card.is-new {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
  will-change: opacity, transform
}

.vehiculos-grid .toyota-card.is-new.in {
  opacity: 1;
  transform: none
}

/* ==== Unificar con home (#vehiculos) — botones, textos y colores de categoría ==== */
.vehiculos-grid .toyota-info-text h3 {
  color: #fff;
  font-weight: 800;
}

.vehiculos-grid .toyota-info-text p {
  margin: 0;
  font-size: .95rem;
  color: #e9f0ef;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.vehiculos-grid .toyota-btn {
  background: #EB0A1E !important;
  color: #fff !important;
  padding: .6rem 1.2rem !important;
  border-radius: 24px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: .4rem !important;
  box-shadow: none !important;
  transition: background .18s ease !important;
}

.vehiculos-grid .toyota-btn:hover {
  background: #c60c18 !important;
}

.vehiculos-grid .toyota-buttons {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap
}

.vehiculos-grid .toyota-contact a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  opacity: 1;
}

.vehiculos-grid .toyota-contact a:hover {
  text-decoration: underline;
}

.vehiculos-grid .toyota-card[data-cat*="cars"] .toyota-info {
  background: #969688;
}

.vehiculos-grid .toyota-card[data-cat*="trucks"] .toyota-info {
  background: #263862;
}

.vehiculos-grid .toyota-card[data-cat*="crossovers"] .toyota-info {
  background: #1C202B;
}

.vehiculos-grid .toyota-card[data-cat*="electrified"] .toyota-info {
  background: #829595;
}

/* Filter buttons for /vehiculos page */
.toyota-filter-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px
}

/* Unificar con tabs del home: texto negro, hover rojo, sin pill background */
.toyota-filter {
  background: transparent;
  color: #111827;
  padding: 10px 12px;
  border-radius: 0;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  position: relative
}

.toyota-filter.is-active {
  background: transparent;
  color: #111827
}

/* Quitar el cuadro al hacer click (mouse) y mantener accesibilidad con teclado */
.toyota-filter:focus {
  outline: none
}

.toyota-filter:focus-visible {
  outline: 3px solid rgba(235, 10, 30, .18);
  outline-offset: 3px
}

/* Animación para tarjetas recién añadidas por AJAX */
.vehiculos-grid .toyota-card.is-new {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
  will-change: opacity, transform
}

.vehiculos-grid .toyota-card.is-new.in {
  opacity: 1;
  transform: none
}

/* Estado activo (por si se quiere estilizar diferente) */
#custom-slider .cs-progress-bar span.active {
  box-shadow: 0 0 14px rgba(255, 45, 45, 0.55);
}

@media (max-width:1024px) {

  #custom-slider .cs-swiper-button-next,
  #custom-slider .cs-swiper-button-prev {
    display: none;
  }
}

@media (max-width:768px) {
  #custom-slider {
    height: 500px;
  }

  #custom-slider .cs-slide-content {
    left: 6%;
    max-width: 90%;
  }

  #custom-slider .cs-slide-content h2 {
    font-size: 2.2rem;
  }

  #custom-slider .cs-slide-content p {
    font-size: 1rem;
  }
}

@media (max-width:480px) {
  #custom-slider {
    height: 400px;
  }

  #custom-slider .cs-slide-content h2 {
    font-size: 1.6rem;
  }

  #custom-slider .cs-slide-content p {
    font-size: 0.9rem;
  }
}

/* ==========================
   SLIDER DE VEH�CULOS
========================== */
#vehiculos .toyota-nav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 0 16px .25rem;
}

#vehiculos .toyota-nav {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#vehiculos .toyota-nav::-webkit-scrollbar {
  display: none;
}

#vehiculos .toyota-tabs {
  position: relative;
  display: inline-flex;
  justify-content: flex-start;
  gap: 1.25rem;
  border-bottom: none;
  flex-wrap: nowrap;
  width: max-content;
}

/* Centrar tabs en escritorio, mantener scroll en m�vil/tablet */
@media (min-width: 1025px) {
  #vehiculos .toyota-nav {
    display: flex;
    justify-content: center;
    overflow: visible;
    padding: 0;
  }

  #vehiculos .toyota-tabs {
    justify-content: center;
    gap: 2rem;
  }
}

#vehiculos .toyota-tab {
  text-transform: capitalize;
  font-weight: 600;
  font-size: .95rem;
  padding: 6px 0;
  color: #111827 !important;
  background: none;
  border: 0;
  cursor: pointer;
  flex: 0 0 auto;
  scroll-snap-align: center;
  transition: color .25s ease, transform .2s ease;
}

#vehiculos .toyota-tab:active {
  transform: scale(0.98);
}

#vehiculos .toyota-tab.is-active {
  color: #111827;
}

#vehiculos .toyota-tab:hover,
#vehiculos .toyota-tab:focus {
  color: var(--toyota-red) !important;
}

#vehiculos .toyota-tab:focus-visible {
  outline: 3px solid rgba(235, 10, 30, .18);
  outline-offset: 3px;
}

/* eliminar colores por categoría: mantener texto negro + hover rojo */
#vehiculos .toyota-tabs {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#vehiculos .toyota-tabs::-webkit-scrollbar {
  display: none;
}

#vehiculos .toyota-tab {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  font-weight: 700;
  color: #111827 !important;
  cursor: pointer;
  font-size: .95rem;
}

#vehiculos .toyota-tab.is-active {
  color: #111827;
}

/* hover se maneja arriba a rojo; no sobreescribir a negro */
#vehiculos .toyota-tab-indicator {
  display: none !important;
}

/* Encabezado de Veh�culos con t�tulos en negro */
#vehiculos .section-header h2 {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  color: #000 !important;
}

#vehiculos .section-header p {
  color: #000 !important;
}

#vehiculos .toyota-slider {
  padding: 1rem 0;
}

#vehiculos .toyota-slider .swiper-slide {
  height: auto;
  display: flex;
  width: calc((100% - 40px) / 3);
  min-width: 280px;
  max-width: 380px;
}

@media (max-width: 1024px) {
  #vehiculos .toyota-slider .swiper-slide {
    width: calc((100% - 20px) / 2);
    min-width: 240px;
    max-width: none;
  }
}

@media (max-width: 640px) {
  #vehiculos .toyota-slider .swiper-slide {
    width: 100%;
    min-width: 0;
  }
}

#vehiculos .toyota-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f0f0f0;
  height: 100%;
}

#vehiculos .toyota-imgbox {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

#vehiculos .toyota-imgbox {
  margin: 0 !important;
  display: block;
}

#vehiculos .toyota-imgbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#vehiculos .toyota-info {
  background: #1f3f3b;
  color: #fff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: background .35s ease;
  flex: 1 1 auto;
  min-height: 190px;
}

#vehiculos .toyota-info-text h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

#vehiculos .toyota-info-text p {
  margin: 0;
  font-size: .95rem;
  color: #e9f0ef;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#vehiculos .toyota-btn {
  /* Restored: vehiculos uses the previous, more compact solid button
     (keep this scoped to #vehiculos so site-wide unified buttons are unaffected) */
  background: #EB0A1E !important;
  color: #fff !important;
  padding: .6rem 1.2rem !important;
  border-radius: 24px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: .4rem !important;
  box-shadow: none !important;
  transition: background .18s ease !important;
}

#vehiculos .toyota-btn:hover {
  background: #c60c18 !important;
  transform: none !important;
  box-shadow: none !important;
}

#vehiculos .toyota-buttons {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

#vehiculos .toyota-contact a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

#vehiculos .toyota-contact a:hover {
  text-decoration: underline;
}

#vehiculos .toyota-info-text h3 {
  color: #fff;
}

/* Colores por categor�a en tarjetas */
#vehiculos .toyota-card[data-cat*="cars"] .toyota-info {
  background: #969688;
}

#vehiculos .toyota-card[data-cat*="trucks"] .toyota-info {
  background: #263862;
}

#vehiculos .toyota-card[data-cat*="crossovers"] .toyota-info {
  background: #1C202B;
}

#vehiculos .toyota-card[data-cat*="electrified"] .toyota-info {
  background: #829595;
}

#vehiculos .toyota-arrow {
  background: #000;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#vehiculos .toyota-arrow::after {
  font-size: 18px;
}

@media (max-width:1023px) {
  #vehiculos .toyota-arrow {
    display: none !important;
  }
}

/* vehicles section container */
/* Centrado y contención de la sección de modelos */
#vehiculos {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: var(--edge-padding);
  padding-right: var(--edge-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  overflow-x: hidden;
}

/* center and contain tabs and slider for visual alignment */
#vehiculos .toyota-nav,
#vehiculos .toyota-slider {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

/* ==========================
   ACCESORIOS
========================== */
#accesorios-mm {
  position: relative;
  background-image: url('https://tmna.aemassets.toyota.com/is/image/toyota/toyota/vehicles/2026/corolla/galleries/COH_MY26_0011_V001.png:tcom_gallery_16x9?ts=1757531815331&fmt=jpg&fit=crop&dpr=on,2');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-radius: 24px;
  overflow: hidden;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--edge-padding);
  margin-left: var(--edge-margin);
  margin-right: var(--edge-margin);
}

#accesorios-mm .accesorios-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

#accesorios-mm .accesorios-content {
  max-width: 720px;
  text-align: center;
  color: #fff;
  animation: fadeInUp 1s ease forwards;
}

#accesorios-mm .accesorios-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff !important;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
}

#accesorios-mm .accesorios-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #d1d5db;
  line-height: 1.6;
}

#accesorios-mm .accesorio-btn {
  background: #EB0A1E;
  color: #fff;
  padding: .9rem 1.8rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: background .3s ease, transform .3s ease;
}

#accesorios-mm .accesorio-btn:hover {
  background: #c30916;
  transform: translateY(-3px);
}

/* Replicar dimensiones y estilo del bot�n de Accesorios en Sobre Nosotros */
#sobre-nosotros .sobre-nosotros-btn {
  background: #EB0A1E;
  color: #fff;
  padding: .9rem 1.8rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: background .3s ease, transform .3s ease;
  justify-self: start;
  width: fit-content;
}

#sobre-nosotros .sobre-nosotros-btn:hover {
  background: #c30916;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  #accesorios-mm {
    height: 400px;
  }

  #accesorios-mm .accesorios-content h2 {
    font-size: 1.6rem;
  }

  #accesorios-mm .accesorios-content p {
    font-size: 1rem;
  }
}

/* ==========================
   SERVICIOS (info-mm)
========================== */
#info-mm {
  background: linear-gradient(135deg, var(--toyota-black), var(--toyota-black-2));
  padding: 4rem var(--edge-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 24px;
  margin-left: var(--edge-margin);
  margin-right: var(--edge-margin);
}

#info-mm .section-header {
  text-align: center;
  margin: 0 auto 40px;
}

#info-mm .services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  padding-inline: 10px;
  margin: 40px auto 0;
}

#info-mm .service-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  padding: 1.5rem 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 360px;
  transition: all .35s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

#info-mm .service-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

#info-mm .service-icon {
  font-size: 2.8rem;
  color: #ff2d2d;
  margin-bottom: 1.2rem;
  transition: transform .4s ease;
}

#info-mm .service-card:hover .service-icon {
  transform: rotate(8deg) scale(1.2);
}

#info-mm .service-card h3 {
  margin-bottom: .5rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  transition: text-shadow .3s ease;
}

#info-mm .service-card:hover h3 {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

#info-mm .service-card p {
  font-size: .95rem;
  color: #d1d5db;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

#info-mm .service-btn {
  background: #ff2d2d;
  color: #fff;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: background .3s ease, transform .3s ease;
}

#info-mm .service-btn:hover {
  background: #e11b1b;
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  #info-mm {
    padding: 3rem 1.5rem;
  }

  #info-mm .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  #info-mm .service-card {
    min-height: 340px;
  }
}

@media (max-width: 768px) {
  #info-mm .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #info-mm .service-card {
    width: 100%;
    margin: 0 auto;
  }

  /* Buttons are centralized in main `style.css` to keep a single source of truth. */
}

@media (max-width: 640px) {
  #info-mm {
    padding: 2rem 1rem;
  }

  #info-mm .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #info-mm .service-card {
    min-height: auto;
    padding: 1.5rem 1rem;
  }

  #info-mm .service-card h3 {
    font-size: 1.2rem;
  }

  #info-mm .service-card p {
    font-size: 0.9rem;
  }
}

/* ==========================
   SOBRE NOSOTROS
========================== */
#sobre-nosotros.sobre-nosotros {
  background: linear-gradient(135deg, var(--toyota-black), var(--toyota-black-2));
  padding: 5rem var(--edge-padding);
  display: flex;
  justify-content: center;
  border-radius: 24px;
  font-family: 'Poppins', sans-serif;
  margin-left: var(--edge-margin);
  margin-right: var(--edge-margin);
}

.sobre-nosotros-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: var(--content-max);
  width: 100%;
  margin: 40px auto 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 3rem 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: transform .3s ease, box-shadow .3s ease;
}

.sobre-nosotros-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.sobre-nosotros-container:hover {
  transform: scale(1.01);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.sobre-nosotros-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.sobre-nosotros-text h2::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ff2d2d, #ff6b6b);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}

.sobre-nosotros-text h2:hover::after {
  transform: scaleX(1);
}

.sobre-nosotros-text p {
  font-size: 1rem;
  color: #d1d5db;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Bot�n Sobre Nosotros heredar� el estilo unificado de botones */
.sobre-nosotros-images {
  display: grid;
  grid-template-areas: "img1 img2" "img1 img3";
  gap: 20px;
}

.sobre-nosotros-images .img {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform .4s ease, box-shadow .4s ease;
  background: #222;
  position: relative;
  cursor: pointer;
}

.sobre-nosotros-images .img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.sobre-nosotros-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.sobre-nosotros .img1 {
  grid-area: img1;
}

.sobre-nosotros .img2 {
  grid-area: img2;
}

.sobre-nosotros .img3 {
  grid-area: img3;
}

/* Gallery overlay icon */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
  pointer-events: none;
}

.gallery-item {
  cursor: pointer !important;
  user-select: none;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: #fff;
  font-size: 2.5rem;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover .gallery-overlay i {
  transform: scale(1);
}

.gallery-item:active {
  transform: scale(0.98);
}

/* Gallery Lightbox - Professional Full Screen */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(20px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s 0.3s;
  overflow: hidden;
}

.gallery-lightbox.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s 0s;
  animation: lightboxAppear 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes lightboxAppear {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-close {
  position: fixed;
  top: 25px;
  right: 25px;
  background: linear-gradient(135deg, var(--toyota-red), #ff0a1e);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10002;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 1.8rem;
  box-shadow: 0 8px 25px rgba(235, 10, 30, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.lightbox-close:hover {
  transform: scale(1.12) rotate(90deg);
  box-shadow: 0 12px 35px rgba(235, 10, 30, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #ff0a1e, var(--toyota-red));
}

.lightbox-close:active {
  transform: scale(1.05) rotate(90deg);
}

/* Image counter */
.lightbox-counter {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 10001;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-content {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
}

/* Main Gallery Swiper - Professional Full Screen */
.gallery-swiper {
  width: 100%;
  height: calc(100vh - 120px);
  flex: 1;
  display: block;
  /* keep default swiper block layout */
  overflow: hidden;
  /* ensure slides are clipped */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

/* Ensure proper horizontal layout & centering for slides */
.gallery-swiper .swiper-wrapper {
  width: 100%;
  height: 100%;
}

.gallery-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  /* one image per view */
}

.gallery-swiper .swiper-slide img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.gallery-swiper .swiper-slide-active img {
  animation: imageZoomIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes imageZoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Navigation Arrows - Professional */
.gallery-arrow-prev,
.gallery-arrow-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  z-index: 10002;
}

.gallery-arrow-prev:hover,
.gallery-arrow-next:hover {
  background: linear-gradient(135deg, var(--toyota-red), #b80014);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 10px 30px rgba(235, 10, 30, .55);
}

.gallery-arrow-prev:active,
.gallery-arrow-next:active {
  transform: translateY(-50%) scale(1.04);
}

.gallery-arrow-prev::after,
.gallery-arrow-next::after {
  font-size: 1.15rem;
  font-weight: 700;
}

.gallery-arrow-prev {
  left: 32px;
}

.gallery-arrow-next {
  right: 32px;
}

/* Thumbnail Gallery - Professional Bottom Fixed */
.gallery-thumbs {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 85%;
  height: 100px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10001;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.gallery-thumbs .swiper-wrapper {
  align-items: center;
}

.gallery-thumbs .swiper-slide {
  width: 120px !important;
  height: 75px;
  opacity: 0.4;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: rgba(0, 0, 0, 0.5);
  position: relative;
}

.gallery-thumbs .swiper-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(235, 10, 30, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-thumbs .swiper-slide:hover {
  opacity: 0.8;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.gallery-thumbs .swiper-slide:hover::before {
  opacity: 1;
}

.gallery-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--toyota-red);
  border-width: 3px;
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 8px 30px rgba(235, 10, 30, 0.6);
}

.gallery-thumbs .swiper-slide-thumb-active::before {
  opacity: 1;
  background: linear-gradient(135deg, transparent, rgba(235, 10, 30, 0.3));
}

.gallery-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-thumbs .swiper-slide:hover img {
  transform: scale(1.1);
}

/* Aspect ratios to keep image composition tidy across breakpoints */
#sobre-nosotros .img1 {
  aspect-ratio: 3 / 4;
}

#sobre-nosotros .img2,
#sobre-nosotros .img3 {
  aspect-ratio: 16 / 9;
}

@media (max-width: 1024px) {
  .sobre-nosotros-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
    padding: 2rem;
  }

  .sobre-nosotros-images {
    grid-template-areas: "img1" "img2" "img3";
    grid-template-columns: 1fr;
  }

  .sobre-nosotros-images .img {
    aspect-ratio: auto;
  }

  .sobre-nosotros-btn {
    justify-content: center;
    justify-self: center;
    width: fit-content;
  }
}

@media (max-width: 1024px) {
  .gallery-swiper {
    height: calc(100vh - 100px);
    padding: 50px 15px 0;
  }

  .gallery-thumbs {
    bottom: 10px;
    max-width: 95%;
    height: 75px;
  }

  .gallery-thumbs .swiper-slide {
    width: 90px !important;
    height: 55px;
  }

  .lightbox-close {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    top: 15px;
    right: 15px;
  }

  .gallery-arrow-prev,
  .gallery-arrow-next {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 768px) {
  .sobre-nosotros-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sobre-nosotros-images {
    grid-template-areas: "img1" "img2" "img3";
    gap: 15px;
  }

  .sobre-nosotros-text {
    text-align: center;
  }

  .sobre-nosotros-btn {
    align-self: center;
    justify-self: center;
    width: fit-content;
  }

  /* Lightbox responsive */
  .gallery-swiper {
    height: calc(100vh - 90px);
    padding: 45px 10px 0;
  }

  .gallery-swiper .swiper-slide img {
    max-width: 98%;
    max-height: 98%;
  }

  .gallery-thumbs {
    bottom: 8px;
    max-width: 98%;
    height: 65px;
  }

  .gallery-thumbs .swiper-slide {
    width: 75px !important;
    height: 48px;
  }

  .lightbox-close {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
    top: 10px;
    right: 10px;
  }

  .gallery-arrow-prev,
  .gallery-arrow-next {
    width: 42px;
    height: 42px;
  }

  .gallery-arrow-prev::after,
  .gallery-arrow-next::after {
    font-size: 1.1rem;
  }
}

@media (max-width: 640px) {
  .scroll-section {
    padding: 2rem 1rem;
  }

  #sobre-nosotros.sobre-nosotros {
    padding: 3rem 1rem;
  }

  .sobre-nosotros-container {
    padding: 1.5rem;
  }

  .sobre-nosotros-text h2 {
    font-size: 1.9rem;
  }

  main#site-main>section {
    margin: 1.5rem auto;
    padding-inline: 1rem;
  }

  /* Lightbox mobile optimized */
  .gallery-swiper {
    height: calc(100vh - 75px);
    padding: 55px 5px 5px;
  }

  .gallery-swiper .swiper-slide img {
    max-width: 98%;
    max-height: 98%;
    border-radius: 3px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .gallery-thumbs {
    bottom: 8px;
    height: 60px;
    padding: 5px;
    max-width: 98%;
  }

  .gallery-thumbs .swiper-slide {
    width: 72px !important;
    height: 45px;
    border-width: 2px;
  }

  .lightbox-close {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
    top: 10px;
    right: 10px;
  }

  .lightbox-counter {
    top: 12px;
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  .gallery-arrow-prev,
  .gallery-arrow-next {
    width: 42px;
    height: 42px;
  }

  .gallery-arrow-prev::after,
  .gallery-arrow-next::after {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .scroll-section {
    padding: 1.5rem 0.8rem;
  }

  main#site-main>section {
    margin: 1rem auto;
  }

  .gallery-swiper {
    height: calc(100vh - 70px);
    padding: 50px 3px 3px;
  }

  .gallery-thumbs {
    height: 55px;
    padding: 4px;
  }

  .gallery-thumbs .swiper-slide {
    width: 65px !important;
    height: 40px;
  }

  .lightbox-close {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
    top: 8px;
    right: 8px;
  }

  .gallery-arrow-prev,
  .gallery-arrow-next {
    width: 38px;
    height: 38px;
  }

  .gallery-arrow-prev::after,
  .gallery-arrow-next::after {
    font-size: 0.95rem;
  }
}

@media (max-width: 380px) {
  .gallery-thumbs .swiper-slide {
    width: 58px !important;
    height: 36px;
  }

  .lightbox-close {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .gallery-arrow-prev,
  .gallery-arrow-next {
    width: 36px;
    height: 36px;
  }
}

/* ==========================
   PRODUCTOS / REPUESTOS
========================== */
#productos-mm {
  background: linear-gradient(135deg, var(--toyota-black), var(--toyota-black-2));
  padding: 4rem var(--edge-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  margin-left: var(--edge-margin);
  margin-right: var(--edge-margin);
}

#productos-mm .section-header {
  text-align: center;
  margin: 0 auto 40px;
}

#productos-mm .productos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

#productos-mm .producto-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 360px;
  transition: all .35s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

#productos-mm .producto-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

#productos-mm .producto-icon {
  font-size: 2.8rem;
  color: #EB0A1E;
  margin-bottom: 1.2rem;
  transition: transform .4s ease;
}

#productos-mm .producto-card:hover .producto-icon {
  transform: rotate(8deg) scale(1.2);
}

#productos-mm .producto-card h3 {
  margin-bottom: .5rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  transition: text-shadow .3s ease;
}

#productos-mm .producto-card:hover h3 {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

#productos-mm .producto-card p {
  font-size: .95rem;
  color: #d1d5db;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

#productos-mm .producto-precio {
  font-size: 1.2rem;
  font-weight: bold;
  color: #EB0A1E;
  margin-bottom: 1.5rem;
}

#productos-mm .producto-btn {
  background: #EB0A1E;
  color: #fff;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: background .3s ease, transform .3s ease;
}

#productos-mm .producto-btn:hover {
  background: #e11b1b;
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  #productos-mm {
    padding: 3rem 1.5rem;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  #productos-mm .productos-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  #productos-mm .producto-card {
    min-height: 340px;
  }
}

@media (max-width: 768px) {
  #productos-mm .productos-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

@media (max-width: 640px) {
  #productos-mm {
    padding: 2rem 1rem;
  }

  #productos-mm .productos-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #productos-mm .producto-card {
    min-height: auto;
    padding: 1.5rem 1rem;
  }

  #productos-mm .producto-card h3 {
    font-size: 1.2rem;
  }

  #productos-mm .producto-card p {
    font-size: 0.9rem;
  }
}

/* ==========================
   BLOG
 ========================== */
#whatsapp-mm {
  background: #ffffff;
  padding: 4rem var(--edge-padding);
  border-radius: 28px;
  max-width: none;
  margin: 4rem var(--edge-margin);
  color: #111827;
  font-family: 'Segoe UI', sans-serif;
}

#whatsapp-mm .section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

#whatsapp-mm .section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: .6rem;
  color: #111827;
}

#whatsapp-mm .section-header p {
  font-size: 1.05rem;
  color: #4b5563;
}

#whatsapp-mm .whatsapp-wrap {
  display: flex;
  justify-content: center;
}

.mmorichal-form {
  width: 100%;
  max-width: 720px;
  background: #0a0a0a;
  color: #fff;
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
  border: 1px solid #1f2937;
}

.mmorichal-form .mf-row {
  margin-bottom: 1rem;
}

.mmorichal-form label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 600;
  color: #f9fafb;
}

.mmorichal-form input,
.mmorichal-form select,
.mmorichal-form textarea {
  width: 100%;
  padding: .9rem 1rem;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid #374151;
  background: #111827;
  color: #f3f4f6;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.mmorichal-form textarea {
  resize: vertical;
  min-height: 120px;
}

.mmorichal-form input::placeholder,
.mmorichal-form textarea::placeholder {
  color: #9ca3af;
}

.mmorichal-form input:focus,
.mmorichal-form select:focus,
.mmorichal-form textarea:focus {
  outline: none;
  border-color: var(--toyota-red);
  box-shadow: 0 0 0 3px rgba(235, 10, 30, .22);
}

.mmorichal-form .mf-submit {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: .5rem auto 0;
  background: #25D366;
  color: #fff;
  padding: .9rem 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  width: max-content;
}

.mmorichal-form .mf-submit:hover {
  filter: brightness(0.95);
}

.mmorichal-form .mf-submit .mf-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  line-height: 0;
}

.mmorichal-form .mf-submit .mf-icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

#blog-mm {
  background: #ffffff;
  padding: 6rem var(--edge-padding);
  border-radius: 28px;
  max-width: none;
  margin: 4rem var(--edge-margin);
  color: #111827;
  font-family: 'Segoe UI', sans-serif;
}

#blog-mm {
  background: #ffffff;
  padding: 6rem var(--edge-padding);
  border-radius: 28px;
  max-width: none;
  margin: 4rem var(--edge-margin);
  color: #111827;
  font-family: 'Segoe UI', sans-serif;
}

/* enforce unified side padding on featured sections (overrides base main>section padding) */
#vehiculos,
#accesorios-mm,
#info-mm,
#sobre-nosotros,
#productos-mm,
#blog-mm {
  padding-left: var(--edge-padding) !important;
  padding-right: var(--edge-padding) !important;
}

.blog-mm .section-header h2 {
  font-size: 2.6rem;
  color: #000000;
}

/* Subt�tulo del encabezado del blog en negro */
#blog-mm .section-header p {
  color: #000000;
}

#blog-mm .blog-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

#blog-mm .blog-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: #111827;
}

#blog-mm .blog-header p {
  font-size: 1.2rem;
  color: #4b5563;
}

#blog-mm .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

#blog-mm .blog-card {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .4s ease, box-shadow .4s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#blog-mm .blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

#blog-mm .blog-img {
  overflow: hidden;
}

#blog-mm .blog-img img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform .5s ease;
}

#blog-mm .blog-card:hover .blog-img img {
  transform: scale(1.07);
}

#blog-mm .blog-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

#blog-mm .blog-content {
  align-items: center;
  text-align: center;
}

#blog-mm .blog-meta {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: .7rem;
  display: none;
}

#blog-mm h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #111827;
}

#blog-mm h3 a {
  color: inherit;
  text-decoration: none;
}

#blog-mm h3 a:hover {
  text-decoration: underline;
}

#blog-mm p {
  flex-grow: 1;
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

/* Card-link wrapper for full-card click */
#blog-mm .blog-card .blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* ==========================
   BLOG ARCHIVE PAGE
========================== */
.blog-archive .container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-archive .section-header {
  text-align: center;
  margin: 0 auto 2rem;
}

.blog-archive .breadcrumbs {
  margin: 12px 0 10px;
  font-size: .95rem;
  color: #6b7280;
}

.blog-archive .breadcrumbs ol {
  display: flex;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.blog-archive .breadcrumbs li {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.blog-archive .breadcrumbs li+li:before {
  content: '/';
  opacity: .5;
}

.blog-archive .breadcrumbs a {
  color: #374151;
  text-decoration: none;
}

.blog-archive .breadcrumbs a:hover {
  text-decoration: underline;
}

.blog-featured {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
  margin-bottom: 36px;
  padding: 18px;
}

.blog-featured .bf-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.blog-featured .bf-media {
  margin: 0;
  line-height: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.blog-featured .bf-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-featured .bf-body {
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-featured .bf-title {
  font-size: clamp(1.8rem, 2.2vw + 1rem, 2.4rem);
  color: #111827;
  margin: 0;
  line-height: 1.12;
}

.blog-featured .bf-title a {
  color: inherit;
  text-decoration: none;
}

.blog-featured .bf-title a:hover {
  text-decoration: underline;
}

.blog-featured .bf-cta {
  width: fit-content;
  margin-top: 8px;
}

.blog-featured .bf-excerpt {
  color: #4b5563;
  line-height: 1.7;
  font-size: 1.02rem;
  max-width: 68ch;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .blog-featured .bf-link {
    grid-template-columns: 1fr;
  }

  .blog-featured {
    padding: 12px;
    gap: 16px;
  }

  .blog-featured .bf-media {
    aspect-ratio: 16/10;
  }
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

@media (min-width: 1280px) {
  .blog-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .blog-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-list {
    grid-template-columns: 1fr;
  }
}

.blog-mini {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}

.blog-mini:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.blog-mini-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.blog-mini-img {
  margin: 0;
  line-height: 0;
}

.blog-mini-img img {
  width: 100%;
  height: clamp(180px, 16vw, 260px);
  object-fit: cover;
  display: block;
}

.blog-mini-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-mini-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-mini-excerpt {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
  font-size: .95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* small entrance animation */
.blog-mini.is-new {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
}

.blog-mini.is-new.in {
  opacity: 1;
  transform: none;
}

/* Blog search */
.blog-search {
  position: relative;
  width: min(640px, 96%);
  margin: 14px auto 0;
}

.blog-search input[type="search"] {
  width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: .9rem 1.1rem;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

.blog-search input[type="search"]:focus {
  border-color: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(203, 213, 225, .35);
}

.blog-search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
  padding: 8px;
  max-height: 340px;
  overflow: auto;
  z-index: 100;
}

.blog-search-suggest .sug-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: #111827;
}

.blog-search-suggest .sug-item:hover {
  background: #f3f4f6;
}

.blog-search-suggest .sug-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
}

.blog-search-suggest .sug-more {
  display: block;
  text-align: center;
  padding: 10px;
  margin-top: 6px;
  border-top: 1px dashed #e5e7eb;
  color: #111827;
  text-decoration: none;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Global button styles are centralized in `style.css` to keep a single source of truth.
   If you need to override button visuals for the front page, add scoped rules here. */

/* Animaciones de t�tulos */
.section-header .kicker {
  opacity: 0;
  transform: translateY(8px);
  transition: .5s ease;
}

.section-header h2 {
  background: linear-gradient(90deg, #fff, #d6d6d6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(8px);
  transition: .6s ease .05s;
}

.section-header p {
  opacity: 0;
  transform: translateY(8px);
  transition: .6s ease .1s;
}

.section-header.in-view .kicker,
.section-header.in-view h2,
.section-header.in-view p {
  opacity: 1;
  transform: translateY(0);
}

/* Aparici�n en scroll gen�rica */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal-on-scroll.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }

  .scroll-section {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive animations */
@media (max-width: 1024px) {
  .gallery-swiper {
    height: calc(100vh - 100px);
    padding: 70px 20px 15px;
  }

  .gallery-swiper .swiper-slide img {
    max-width: 95%;
    max-height: 95%;
  }

  .gallery-thumbs {
    bottom: 15px;
    max-width: 90%;
    height: 85px;
    padding: 8px;
  }

  .gallery-thumbs .swiper-slide {
    width: 100px !important;
    height: 62px;
  }

  .lightbox-close {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
    top: 20px;
    right: 20px;
  }

  .gallery-arrow-prev,
  .gallery-arrow-next {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 768px) {
  main#site-main>section {
    margin: 2rem auto;
    padding-inline: min(3vw, 30px);
  }

  .container {
    padding: 0 20px;
  }

  .sobre-nosotros-container {
    padding: 2rem 20px;
  }

  /* Gallery responsive */
  .gallery-swiper {
    height: calc(100vh - 85px);
    padding: 60px 10px 10px;
  }

  .gallery-swiper .swiper-slide img {
    max-width: 98%;
    max-height: 98%;
    border-radius: 4px;
  }

  .gallery-thumbs {
    bottom: 10px;
    max-width: 95%;
    height: 70px;
    padding: 6px;
  }

  .gallery-thumbs .swiper-slide {
    width: 85px !important;
    height: 52px;
  }

  .lightbox-close {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    top: 15px;
    right: 15px;
  }

  .gallery-arrow-prev,
  .gallery-arrow-next {
    width: 48px;
    height: 48px;
  }

  .gallery-arrow-prev::after,
  .gallery-arrow-next::after {
    font-size: 1.15rem;
  }
}

@media (max-width: 1280px) {
  #blog-mm .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {

  /* Tablet: una sola columna para navegaci�n m�s c�moda */
  #blog-mm .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Let images scale by ratio instead of fixed height on medium screens */
  #blog-mm .blog-img {
    aspect-ratio: 16 / 10;
  }

  #blog-mm .blog-img img {
    height: 100%;
  }
}

/* Animaciones de ttulos */
.section-header .kicker {
  opacity: 0;
  transform: translateY(8px);
  transition: .5s ease;
}

.section-header h2 {
  background: linear-gradient(90deg, #fff, #d6d6d6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(8px);
  transition: .6s ease .05s;
}

.section-header p {
  opacity: 0;
  transform: translateY(8px);
  transition: .6s ease .1s;
}

.section-header.in-view .kicker,
.section-header.in-view h2,
.section-header.in-view p {
  opacity: 1;
  transform: translateY(0);
}

/* Aparicin en scroll genrica */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal-on-scroll.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }

  .scroll-section {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive animations */
@media (max-width: 1024px) {
  .gallery-swiper {
    height: calc(100vh - 100px);
    padding: 70px 20px 15px;
  }

  .gallery-swiper .swiper-slide img {
    max-width: 95%;
    max-height: 95%;
  }

  .gallery-thumbs {
    bottom: 15px;
    max-width: 90%;
    height: 85px;
    padding: 8px;
  }

  .gallery-thumbs .swiper-slide {
    width: 100px !important;
    height: 62px;
  }

  .lightbox-close {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
    top: 20px;
    right: 20px;
  }

  .gallery-arrow-prev,
  .gallery-arrow-next {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 768px) {
  main#site-main>section {
    margin: 2rem auto;
    padding-inline: min(3vw, 30px);
  }

  .container {
    padding: 0 20px;
  }

  .sobre-nosotros-container {
    padding: 2rem 20px;
  }

  /* Gallery responsive */
  .gallery-swiper {
    height: calc(100vh - 85px);
    padding: 60px 10px 10px;
  }

  .gallery-swiper .swiper-slide img {
    max-width: 98%;
    max-height: 98%;
    border-radius: 4px;
  }

  .gallery-thumbs {
    bottom: 10px;
    max-width: 95%;
    height: 70px;
    padding: 6px;
  }

  .gallery-thumbs .swiper-slide {
    width: 85px !important;
    height: 52px;
  }

  .lightbox-close {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    top: 15px;
    right: 15px;
  }

  .gallery-arrow-prev,
  .gallery-arrow-next {
    width: 48px;
    height: 48px;
  }

  .gallery-arrow-prev::after,
  .gallery-arrow-next::after {
    font-size: 1.15rem;
  }
}

@media (max-width: 1280px) {
  #blog-mm .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {

  /* Tablet: una sola columna para navegacin ms cmoda */
  #blog-mm .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Let images scale by ratio instead of fixed height on medium screens */
  #blog-mm .blog-img {
    aspect-ratio: 16 / 10;
  }

  #blog-mm .blog-img img {
    height: 100%;
  }
}

@media (max-width: 640px) {
  #blog-mm {
    padding: 3rem 1.2rem;
  }

  #blog-mm .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  #blog-mm .blog-header h2 {
    font-size: 2.2rem;
  }

  /* Slightly taller for narrow devices to keep composition */
  #blog-mm .blog-img {
    aspect-ratio: 16 / 11;
  }
}

/* T?tulo centrado en la secci?n Sobre Nosotros */
#sobre-nosotros .section-header {
  text-align: center;
  margin-bottom: 40px;
}


/* Sobre Nosotros: forzar t?tulo arriba y contenido debajo */
#sobre-nosotros.sobre-nosotros {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 1024px) {
  #sobre-nosotros.sobre-nosotros {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  #sobre-nosotros .sobre-nosotros-container {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  #sobre-nosotros.sobre-nosotros {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  #sobre-nosotros .sobre-nosotros-container {
    grid-template-columns: 1fr !important;
  }
}



#custom-slider .cs-progress-bar span.no-transition {
  transition: none !important;
}

/* ==========================
   MEJORAS RESPONSIVE PARA MÓVIL Y TABLET
   Contenido al 90% del ancho, mejores márgenes y alineación
========================== */

/* Tablet: 1024px y menos */
@media (max-width: 1024px) {
  :root {
    --edge-margin: 30px;
    --container-padding: 20px;
  }

  main#site-main>section:not(#custom-slider) {
    margin-left: 5%;
    margin-right: 5%;
    width: 90%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .container {
    width: 90%;
    padding: 0 15px;
  }

  .section-header {
    padding: 0 20px;
    margin-bottom: 1.5rem;
  }

  #vehiculos .toyota-slider,
  #info-mm .services-grid,
  #productos-mm .productos-grid,
  #blog-mm .blog-grid {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Mobile grande: 768px y menos */
@media (max-width: 768px) {
  :root {
    --edge-margin: 20px;
    --container-padding: 16px;
  }

  main#site-main>section:not(#custom-slider) {
    margin-left: 5%;
    margin-right: 5%;
    width: 90%;
    margin-top: 30px;
    margin-bottom: 30px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .container {
    width: 90%;
    max-width: none;
    padding: 0 12px;
  }

  .section-header {
    padding: 0 15px;
    margin-bottom: 1.25rem;
    min-height: 120px;
  }

  .section-header h2 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .section-header p {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
  }

  /* Slider de vehículos */
  #vehiculos .toyota-slider,
  #vehiculos .toyota-nav {
    padding-left: 5px;
    padding-right: 5px;
  }

  /* Asegurar centrado y espacio adecuado */
  #vehiculos,
  #info-mm,
  #productos-mm,
  #blog-mm,
  #sobre-nosotros {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Grids responsive */
  .vehiculos-grid,
  .services-grid,
  .productos-grid,
  .blog-grid {
    width: 100%;
    padding: 0 5px;
  }
}

/* Mobile mediano: 480px y menos */
@media (max-width: 480px) {
  :root {
    --edge-margin: 15px;
    --container-padding: 12px;
  }

  main#site-main>section:not(#custom-slider) {
    margin-left: 5%;
    margin-right: 5%;
    width: 90%;
    margin-top: 25px;
    margin-bottom: 25px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .container {
    width: 90%;
    padding: 0 10px;
  }

  .section-header {
    padding: 0 10px;
    margin-bottom: 1rem;
    min-height: 100px;
  }

  .section-header h2 {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
    margin: 0.2rem 0;
  }

  .section-header p {
    font-size: clamp(0.85rem, 4vw, 0.95rem);
  }

  /* Botones más cómodos en móvil */
  .button,
  .service-btn,
  .accesorio-btn,
  .producto-btn,
  .blog-btn {
    padding: 0.7em 1.5em;
    font-size: 0.95rem;
  }

  /* Cards con mejor spacing */
  .toyota-card,
  .service-card,
  .producto-card,
  .blog-card {
    margin-bottom: 15px;
  }

  /* Slider de vehículos */
  #custom-slider {
    height: clamp(350px, 70vh, 500px);
  }

  #custom-slider .cs-slide-content {
    left: 5%;
    max-width: 90%;
    padding: 0 10px;
  }
}

/* Mobile pequeño: 375px y menos */
@media (max-width: 375px) {
  main#site-main>section:not(#custom-slider) {
    margin-left: 5%;
    margin-right: 5%;
    width: 90%;
    padding-left: 8px;
    padding-right: 8px;
  }

  .container {
    width: 92%;
    padding: 0 8px;
  }

  .section-header {
    padding: 0 8px;
  }

  .section-header h2 {
    font-size: 1.25rem;
  }

  .section-header p {
    font-size: 0.85rem;
  }
}

/* Asegurar que todo el contenido esté bien alineado y centrado en todos los dispositivos */
@media (max-width: 1024px) {
  main#site-main {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  section {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Centrar contenido de secciones */
  .sobre-nosotros-container,
  .productos-grid,
  .services-grid,
  .vehiculos-grid,
  .blog-grid {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================
   LAYOUT Y TIPOGRAFÍA REFINADOS
   Unifica gutters, paddings y visibilidad de títulos
========================== */
:root {
  --section-gap: clamp(28px, 4vw, 56px);
  --section-side: clamp(16px, 3vw, 32px);
  --section-radius: 24px;
}

.container {
  width: min(var(--content-max), calc(100% - 2 * var(--section-side)));
  padding-left: clamp(16px, 3vw, 28px);
  padding-right: clamp(16px, 3vw, 28px);
  margin-left: auto;
  margin-right: auto;
}

.home main#site-main>section:not(#custom-slider) {
  width: min(var(--content-max), calc(100% - 2 * var(--section-side)));
  margin: var(--section-gap) auto;
  padding-left: clamp(18px, 3vw, 32px);
  padding-right: clamp(18px, 3vw, 32px);
  box-sizing: border-box;
}

/* Secciones con fondo oscuro */
#accesorios-mm,
#info-mm,
#sobre-nosotros,
#productos-mm {
  width: min(var(--content-max), calc(100% - 2 * var(--section-side)));
  margin: var(--section-gap) auto;
  padding: clamp(32px, 5vw, 60px) clamp(22px, 4vw, 42px);
  border-radius: var(--section-radius);
  box-sizing: border-box;
}

/* Títulos siempre visibles (sin depender de in-view) */
.section-header .kicker,
.section-header h2,
.section-header p {
  opacity: 1;
  transform: none;
}

.section-header {
  text-align: center;
  margin: 0 auto clamp(18px, 3vw, 30px);
  padding: 0;
}

.section-header .kicker {
  color: #EB0A1E;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-header h2 {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #111827;
  margin: 0.25em 0 0.35em;
  line-height: 1.2;
}

.section-header p {
  margin: 0;
  color: #4b5563;
}

/* Colores de títulos para bloques oscuros */
#accesorios-mm .section-header .kicker,
#accesorios-mm .section-header h2,
#accesorios-mm .section-header p,
#info-mm .section-header .kicker,
#info-mm .section-header h2,
#info-mm .section-header p,
#sobre-nosotros .section-header .kicker,
#sobre-nosotros .section-header h2,
#sobre-nosotros .section-header p,
#productos-mm .section-header .kicker,
#productos-mm .section-header h2,
#productos-mm .section-header p {
  color: #f8fafc;
}

#accesorios-mm .section-header .kicker,
#info-mm .section-header .kicker,
#sobre-nosotros .section-header .kicker,
#productos-mm .section-header .kicker {
  color: #EB0A1E;
}

/* Grids alineados con el nuevo gutter */
#info-mm .services-grid,
#productos-mm .productos-grid,
#vehiculos .toyota-slider,
#blog-mm .blog-grid {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(6px, 2vw, 18px);
  padding-right: clamp(6px, 2vw, 18px);
  box-sizing: border-box;
}