/* ========================================
   LAYOUT
   ======================================== */

/* Body - Premium Dark Theme */
body {
  background-color: var(--main-bg);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Start main style */
/* Start section-1 style */

/* Mobile-First: Base para móvil (320px-767px) */
header .section-1 {
  display: flex;
  flex-direction: column;
  padding: var(--page-padding);
  margin-top: 65px;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 100%;
  text-align: center;
}

header .section-1 div h3 {
  font-size: 1.8em;
  overflow: hidden;
  color: var(--header-btnH-color);
  word-wrap: break-word;
  max-width: 100%;
  line-height: 1.3;
}

header .section-1 div p {
  margin-top: 20px;
  max-width: 100%;
  font-size: 1em;
}

header .section-1 > div > a {
  position: relative;
  bottom: 0;
  color: var(--name-color);
  border: 1px solid var(--name-color);
  padding: 12px 30px;
  font-size: 0.9em;
  border-radius: 9px;
  transition: all 0.5s;
  margin-top: 20px;
  display: inline-block;
}

div.section-1-div-product-img-1 {
  margin: 0;
  position: relative;
  transition: all 0.5s;
  width: 100%;
}

img#section-1-product-img-1 {
  display: flex;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: var(--radius-xl);
  box-shadow: 1px 3px 4px var(--shadow);
  transition: all 0.5s;
  opacity: 1;
  cursor: pointer;
  object-fit: cover;
  aspect-ratio: 16/9;
}

/* Tablet (768px+) - Mantener layout desktop */
@media (min-width: 768px) {
  header .section-1 {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    overflow: visible;
  }
  
  header .section-1 div h3 {
    font-size: 2.5em;
  }
  
  header .section-1 div p {
    margin-top: 35px;
  }
  
  header .section-1 > div > a {
    padding: 15px 45px;
  }
  
  div.section-1-div-product-img-1 {
    margin: 70px 0 0px 0;
    overflow: visible;
  }
  
  img#section-1-product-img-1 {
    margin: 30px 0 0px 0;
    border-radius: 40px;
    aspect-ratio: auto;
  }
}

/* Desktop (1024px+) - Restaurar tamaño original */
@media (min-width: 1024px) {
  header .section-1 div h3 {
    font-size: 3em;
  }
}

/* Carrusel de vehículos destacados - integrado con diseño original */
.section-1-div-product-img-1.carousel-container {
  position: relative;
  overflow: visible;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  display: none;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: var(--radius-xl);
  box-shadow: 1px 3px 4px var(--shadow);
  transition: all 0.5s;
  opacity: 1;
  cursor: pointer;
  object-fit: contain;
}

/* Agrandar carrusel en PC */
@media (min-width: 768px) {
  .carousel-slide img {
    width: 100%;
    max-width: 100%;
  }
  
  .section-1-div-product-img-1.carousel-container {
    margin-left: 40px;
    margin-right: -100px;
    max-width: 1200px;
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  transition: all 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
  left: 10px;
}

.carousel-btn-next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dot.active {
  background: white;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Responsive para el carrusel */
@media (max-width: 768px) {
  .carousel-slide img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  
  .section-1-div-product-img-1.carousel-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
  }
  
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.9);
  }
  
  .carousel-btn-prev {
    left: 8px;
  }
  
  .carousel-btn-next {
    right: 8px;
  }
  
  .carousel-dot {
    width: 8px;
    height: 8px;
  }
}

/* End section-1 style */
/* End header style */

/* Start section-2 style */

/* Mobile-First: Base para móvil (320px-767px) */
.section-2 {
  display: flex;
  flex-direction: column;
  margin-top: 0;
  color: var(--text-primary);
}

.section-2 h3 {
  font-size: 1.5em;
  margin-bottom: 20px;
  padding: var(--page-padding);
  text-align: center;
  color: var(--text-primary);
}

.section-2 p {
  margin-top: 10px;
  font-weight: 600;
}

.section-2 h2 {
  margin: 10% 0;
  text-align: center;
}

/* End section-2 style */
/* Start section-3 style */

/* Mobile-First: Base para móvil (320px-767px) */
.section-3 {
  display: flex;
  flex-direction: column;
  padding: var(--spacing-2xl) var(--spacing-md);
  gap: 30px;
  background: var(--main-bg);
}

.section-3 .section-3-Description-div h3 {
  font-size: 2rem;
  color: var(--text-primary);
  font-weight: var(--font-extrabold);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-3 .section-3-Description-div p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: var(--text-base);
  margin-top: var(--spacing-md);
}

.section-3 .section-3-Description-div div {
  margin-top: var(--spacing-xl);
}

.section-3 .section-3-Description-div div a {
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 36px;
  font-size: var(--text-base);
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.05);
  font-weight: var(--font-semibold);
  letter-spacing: -0.01em;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.section-3 .section-3-Description-div div a:hover {
  background: var(--header-btnH-color);
  border-color: var(--header-btnH-color);
  color: white;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

/* Tablet (768px+) - Texto arriba, imágenes abajo */
@media (min-width: 768px) {
  .section-3 {
    flex-direction: column;
    gap: 40px;
    padding: var(--spacing-3xl) var(--spacing-lg);
  }

  .section-3 .section-3-Description-div {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
  }

  .section-3 .section-3-Description-div h3 {
    font-size: 2.5rem;
  }

  .section-3 .section-3-Description-div div {
    margin-top: var(--spacing-xl);
  }

  .section-3 .section-3-product-div {
    width: 100%;
  }
}

/* Desktop (1024px+) - Texto arriba, imágenes abajo, más grande */
@media (min-width: 1024px) {
  .section-3 {
    gap: 50px;
    padding: var(--spacing-4xl) var(--spacing-lg);
  }

  .section-3 .section-3-Description-div h3 {
    font-size: 3rem;
    letter-spacing: -0.03em;
  }

  .section-3 .section-3-Description-div p {
    font-size: var(--text-lg);
  }

  .section-3 .section-3-Description-div div {
    margin-top: var(--spacing-2xl);
  }

  .section-3 .section-3-Description-div div a {
    padding: 16px 48px;
    font-size: var(--text-lg);
  }
}

/* End section-3 style */
/* Start section-4 style */

.section-4 {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: var(--spacing-3xl) 0;
  justify-content: center;
  padding: 0 var(--spacing-md);
  background: var(--main-bg);
}

.section-4-product-div-1,
.section-4-product-div-2,
.section-4-product-div-3 {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}

.section-4 img {
  width: 600px;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-duration) var(--transition-smooth);
}

.section-4-div-img {
  position: relative;
  transition: all var(--transition-duration) var(--transition-smooth);
  background: var(--box-bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.section-4-div-img:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(212, 175, 55, 0.3);
}

.section-4-div-img a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.section-4-div-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  transition: transform var(--transition-duration) var(--transition-smooth);
}

.section-4-div-img:hover img {
  transform: scale(1.05);
}

.section-4-div-img p.car-number {
  padding: var(--spacing-md);
  margin: 0;
  color: var(--text-primary);
  font-weight: var(--font-semibold);
  font-size: var(--text-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-4-div-img p.price {
  padding: var(--spacing-sm) var(--spacing-md);
  margin: 0;
  color: var(--header-btnH-color);
  font-weight: var(--font-extrabold);
  font-size: var(--text-xl);
}

div.section-4-Description {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

div.section-4-Description p {
  font-size: 1.5em;
  color: var(--text-primary);
  font-weight: var(--font-semibold);
}

div.section-4-Description p:first-child {
  opacity: 0.7;
  font-size: 0.9em;
  color: var(--text-secondary);
  font-weight: var(--font-normal);
}

.section-4-div-img p.price {
  color: var(--header-btnH-color);
  font-weight: var(--font-bold);
  font-size: 1.8em;
}

/* End section-4 style */
/* End main style */
/* Section-5 (newsletter) and footer styles removed - template cleanup */

/* ========================================
   CONSOLIDATED RESPONSIVE BREAKPOINTS
   ======================================== */

/* Large Desktop (1200px and below) */
@media (max-width: 1200px) {
  .section-3 .section-3-product-div img {
    width: 180px;
  }
  .section-3 .section-3-Description-div div a {
    font-size: 0.7em;
  }
  .section-3 .section-3-product-div {
    font-size: 0.8em;
  }
  .section-4 {
    display: flex;
    justify-content: center;
  }
  .section-4 img {
    width: 500px;
  }
  .section-4 div.section-4-div-img {
    width: 500px;
  }
  .section-4 .section-4-Description p {
    font-size: 0.9em;
  }
}

/* Desktop (1024px and below) */
@media (max-width: 1024px) {
  .section-3 .section-3-product-div img {
    width: 150px;
  }
  .section-3 div.section-3-product-div {
    justify-content: center;
  }
  .section-3 .section-3-Description-div {
    gap: 10px;
  }
  p.price::after {
    opacity: 0;
  }
  .section-2-product-div div img {
    width: 250px;
  }
  .section-3 .section-3-Description-div div {
    margin-top: 20px;
  }
  header .section-1 div.section-1-product-dis {
    margin-top: 6%;
  }
  header .section-1 div h3 {
    font-size: 2em;
  }
  header .section-1 div p {
    margin-top: 35px;
    font-size: 1em;
  }
  header .section-1 > div > a {
    bottom: -50px;
  }
  .section-2-product-div div img {
    width: 220px;
  }
  .section-3-product-div {
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
  nav {
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
  }
  i.hamburger-menu {
    display: block;
  }
  li.pages a {
    display: none;
  }
  li.pages button {
    position: absolute;
    right: 15%;
    top: 28.2%;
    width: 30px;
  }
  header .section-1 div.section-1-product-dis {
    margin-top: 6%;
  }
  header .section-1 div h3 {
    font-size: 1.6em;
  }
  header .section-1 div p {
    margin-top: 35px;
    font-size: 0.7em;
  }
  header .section-1 > div > a {
    bottom: -50px;
    padding: 10px 35px;
    font-size: 0.8em;
  }
  .section-2 h2 {
    font-size: 1.4em;
  }
  .section-2-product-div div img {
    width: 180px;
  }
  .section-2 h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    padding: var(--page-padding);
    margin-left: 15px;
  }
  img#section-1-product-img-1 {
    width: 400px;
    border-radius: var(--radius-xl);
  }
  header .section-1 div h3 {
    font-size: 1.1em;
  }
  header .section-1 div p {
    font-size: 0.9em;
  }
  div.section-2-product-div div img {
    width: 170px;
  }
  .section-5 {
    display: none;
    opacity: 0;
  }
  div.section-2-product-div div img {
    width: 160px;
  }
  .section-3 .section-3-Description-div div {
    margin-top: 20px;
  }
  .section-3 .section-3-Description-div div a {
    padding: 10px 20px;
    font-size: 0.8em;
  }
  img#section-1-product-img-1 {
    width: 300px;
  }
  div.section-2-product-div div img {
    width: 140px;
  }
  div.section-2-product-div div img {
    width: 125px;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  img#section-1-product-img-1 {
    width: 250px;
    border-radius: var(--radius-xl);
  }
  div.section-1-div-product-img-1 {
    margin-bottom: 40px;
  }
  header .section-1 div.section-1-product-dis {
    margin-top: 7%;
  }
  header .section-1 div h3 {
    font-size: 1em;
  }
  header .section-1 div p {
    font-size: 0.9em;
  }
  header .section-1 > div > a {
    bottom: -40px;
    padding: 5px 25px;
    font-size: 0.7em;
  }
  .section-2 h2 {
    font-size: 0.8em;
  }
  .section-3 .section-3-Description-div h3 {
    font-size: 1.5em;
  }
  .section-3 .section-3-Description-div p {
    font-size: 0.9em;
  }
  .section-3 .section-3-Description-div div {
    margin-top: 20px;
  }
  .section-3 .section-3-Description-div div a {
    padding: 15px 25px;
    font-size: 0.6em;
  }
  .section-4 img {
    width: 400px;
  }
  .section-4 div.section-4-div-img {
    width: 400px;
  }
  .section-4 div.img-cards {
    width: 150px;
    height: 80px;
  }
  .section-4 div.img-cards p {
    font-size: 0.9em;
  }
  footer div.title {
    display: none;
    opacity: 0;
  }
  footer div.lang {
    opacity: 0;
    display: none;
  }
  footer {
    flex-wrap: wrap;
  }
  li.pages button {
    position: absolute;
    right: 18%;
    top: 28.2%;
    width: 30px;
  }
  header .section-1 {
    margin-top: 15px;
    flex-direction: column;
    text-align: center;
  }
  header .section-1 div {
    width: 100%;
  }
  img#section-1-product-img-1 {
    width: 100%;
    max-width: 300px;
    height: auto;
  }
  header .section-1 div h3 {
    font-size: 1.2em;
  }
  header .section-1 div p {
    margin-top: 20px;
    font-size: 0.9em;
  }
  header .section-1 > div > a {
    bottom: 0;
    padding: 10px 20px;
    font-size: 0.8em;
  }
  .section-2 {
    margin-top: 5px;
  }
  div.section-2-product-div div img {
    width: 140px;
    max-width: 100%;
    border-radius: 9px;
  }
  div.section-2-product-div div p {
    font-size: 0.8em;
  }
  .section-2 h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    padding: 0 20px;
    left: 0;
  }
  .section-3 .section-3-Description-div h3 {
    font-size: 1.2em;
  }
  .section-3 .section-3-Description-div p {
    font-size: 0.9em;
  }
  .section-3 .section-3-Description-div div {
    margin-top: 20px;
  }
  .section-3 .section-3-Description-div div a {
    padding: 10px 20px;
    font-size: 0.8em;
    border-radius: 9px;
    transition: all 0.5s;
  }
  div.section-3-product-div div img {
    width: 140px;
    max-width: 100%;
  }
  .section-4 {
    margin-top: 10px;
    flex-direction: column;
  }
  .section-4 img {
    width: 100%;
    max-width: 300px;
  }
  .section-4 div.section-4-div-img {
    width: 100%;
    max-width: 300px;
  }
  .section-4 div.img-cards {
    width: 120px;
    height: 60px;
  }
  .section-4 div.img-cards p {
    font-size: 0.7em;
  }
  
  /* Responsive para las nuevas cards de recién llegados */
  .section-4-product-div-1,
  .section-4-product-div-2,
  .section-4-product-div-3 {
    min-width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
  }
  
  .section-4-div-img img {
    height: 200px;
  }
  
  .section-4-div-img p.car-number {
    font-size: var(--text-base);
  }
  
  .section-4-div-img p.price {
    font-size: var(--text-lg);
  }
}
