/* Normalisation */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  font-family: var(--font-family);
}
html {
  background-color: var(--main-bg);
  transition: all 0.2s;
  color: var(--text-primary);
  scroll-behavior: smooth;
  user-select: none;
}

#go-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  font-size: 13px;
  border: none;
  z-index: 99;
  outline: none;
  background-color: var(--header-btnH-color);
  color: white;
  border-radius: var(--radius-full);
  cursor: pointer;
  padding: 12px;
  transition: all 0.5s;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
#go-top:hover {
  background-color: var(--header-btnH-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}
#go-top i {
  position: relative;
  top: 1.7px;
}

/* ========================================
   CATALOGO DE VEHÍCULOS - STYLES
   ======================================== */

/* Header Styles - Animación Elegante para Carshop */
header .header-bg {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

header .header-bg img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  animation: scaleIn 1.5s ease-out;
}

@keyframes scaleIn {
  0% {
    transform: scale(1.1);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Start main style */
/* Start section-1 style */
.section-1 {
  display: flex;
  flex-wrap: wrap;
  padding: 0 12%;
  margin-bottom: 4%;
}
.section-1 .section-1-title-cards {
  margin: 3% 0px;
}
.section-1-title-cards a {
  opacity: 1;
}
.section-1 .section-1-title-cards p {
  margin-bottom: 15px;
  margin-top: 30px;
}
/* Mobile-First: Base para móvil (320px-767px) - 1 columna, height auto */
.section-1 .section-1-product-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.section-1 .section-1-product-cards > div {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  height: auto;
  min-height: auto;
  border-radius: var(--radius-xl);
  transition: all 0.5s;
  background-color: #1a1a1a;
}

/* Tablet (768px+) - 2 columnas */
@media (min-width: 768px) {
  .section-1 .section-1-product-cards {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
  }
  
  .section-1 .section-1-product-cards > div {
    width: calc(50% - 15px);
  }
}
.section-1 .section-1-product-cards div p {
  opacity: 0;
  transition: all 0.7s;
}
.section-1 .section-1-product-cards div a {
  opacity: 0;
  transition: all 0.7s;
}
.section-1 .section-1-product-cards div h5 {
  opacity: 0;
  transition: all 0.7s;
}
.section-1 .section-1-product-cards > div:hover p {
  opacity: 1;
}
.section-1 .section-1-product-cards > div:hover h5 {
  opacity: 1;
}
.section-1 .section-1-product-cards > div:hover a {
  opacity: 1;
}
.section-1 .section-1-product-cards > div:hover img {
  scale: 1.05;
  margin: 17px 0px 10px 0;
}
.section-1 .section-1-product-cards > div:hover {
  background-color: #252525;
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
/* Mobile-First: Base para móvil (320px-767px) - width 100% con aspect-ratio */
.section-1 .section-1-product-cards img {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  object-fit: cover;
  border-radius: 25px;
  margin: 20px 0 15px 0;
  transition: all 0.5s;
}

/* Tablet (768px+) - Mantener 100% dentro de card */
@media (min-width: 768px) {
  .section-1 .section-1-product-cards img {
    margin: 30px 0 10px 0;
  }
}
.section-1 .section-1-product-cards > div > div {
  margin: 0px 25px;
  margin-bottom: 20px;
}
.section-1-title-cards a.btn {
  color: white;
  background-color: var(--header-btnH-color);
  padding: 14px 36px;
  font-size: 0.9em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  backdrop-filter: blur(10px);
  border: none;
}
.section-1-title-cards a.btn:hover {
  background-color: var(--header-btnH-dark);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}
a.Make-menu {
  font-size: 1em;
  border: 0;
  padding: 12px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-right: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-primary);
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}
a.Make-menu:hover {
  color: white;
  background-color: var(--header-btnH-color);
  border-color: var(--header-btnH-color);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}
.section-1-product-cards p {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  margin-bottom: 15px;
}
.section-1-product-cards a {
  color: white;
  background-color: var(--header-btnH-color);
  padding: 12px 32px;
  font-size: 0.9em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  backdrop-filter: blur(10px);
  border: none;
}
.section-1-product-cards a:hover {
  background-color: var(--header-btnH-dark);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}
/* End section-1 style */
/* Start section-2 style */
.section-2 {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  padding: var(--page-padding);
  margin-bottom: 4%;
}
.section-2 h4 {
  margin: 25px 0;
  font-size: 1.5em;
  color: var(--text-primary);
  font-weight: var(--font-extrabold);
  letter-spacing: -0.02em;
}

/* ========================================
   RESPONSIVE DESIGN - VEHÍCULOS
   ======================================== */

/* Badge para destacados */
.vehicle-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--header-btnH-color);
  color: white;
  padding: 5px 12px;
  font-size: 0.75em;
  font-weight: bold;
  border-radius: 4px;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ========================================
   RESPONSIVE DESIGN - VEHÍCULOS
   ======================================== */

/* Media queries legacy eliminadas - Ahora usa mobile-first con min-width */

/* End main style */
/* Footer styles removed - template cleanup */
/* animation for hidden iteams*/
/* animation 1 */
.hidden {
  opacity: 0;
  transition: all 2s;
  transform: translateX(100%);
}
/* animation 2 */
.hiddenP {
  opacity: 0;
  scale: 0.9;
  transition: all 1.3s;
}
/* animation 3 */
.up-hidden-input {
  opacity: 0;
  transition: all 1.5s;
  transform: translatey(100%);
}
/*Show*/
.show {
  opacity: 1;
  scale: 1;
  transform: translateX(0);
  transform: translatey(0);
}
/* animation footer */
.up-hidden {
  opacity: 0;
  transition: all 1.5s;
  transform: translatey(100%);
}
.up-show {
  transform: translatey(0%);
  opacity: 1;
}

/* ========================================
   CATALOGO DE VEHÍCULOS - SECTION 3
   ======================================== */

/* Sobreescribir estilos legacy de layout.css */
.section-3 {
  display: block !important;
  flex-direction: unset !important;
  padding: 40px var(--page-padding);
  background-color: var(--main-bg);
  gap: unset !important;
}

.catalog-header {
  text-align: center;
  margin-bottom: 30px;
}

.catalog-header h3 {
  font-size: var(--text-3xl);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  font-weight: var(--font-extrabold);
  letter-spacing: var(--tracking-tight);
}

.catalog-header p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  font-weight: var(--font-normal);
}

/* Filtros Container - Diseño Premium 2026 */
.filters-container {
  background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 1200px;
  margin: 0 auto 20px auto;
}

/* Fila del buscador */
.search-row {
  margin-bottom: 16px;
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  height: 48px;
  padding: 0 20px 0 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 1em;
  background: #252525;
  color: #fff;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: #3b82f6;
  background: #2a2a2a;
}

.search-box input::placeholder {
  color: #a1a1aa;
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #a1a1aa;
  font-size: 1.2em;
  pointer-events: none;
}

/* Grid de filtros - Diseño Premium */
.filters-grid {
  display: block;
  width: 100%;
}

/* Fila de filtros */
.filters-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 12px;
  align-items: center;
}

/* Selects premium */
.filter-select {
  position: relative;
}

.filter-select select {
  width: 100%;
  height: 48px;
  padding: 0 40px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 0.95em;
  background: #252525;
  color: #fff;
  cursor: pointer;
  appearance: none;
  transition: all 0.3s ease;
}

.filter-select select:focus {
  outline: none;
  border-color: #3b82f6;
  background: #2a2a2a;
}

.filter-select::after {
  content: '\eb66';
  font-family: 'boxicons';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #a1a1aa;
  font-size: 1em;
  pointer-events: none;
}

/* Botón reiniciar premium */
.btn-reset {
  height: 48px;
  padding: 0 24px;
  background: transparent;
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 0.9em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-reset:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 1024px) {
  .filters-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .filters-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .filters-row {
    grid-template-columns: 1fr;
  }
}


/* Grid de Vehículos - Mobile-First Moderno 2026 */
.section-2-product-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 30px;
  width: 100%;
}

/* Tablet (768px-1199px) - 3 columnas */
@media (min-width: 768px) {
  .section-2-product-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Desktop (1200px+) - 4 columnas */
@media (min-width: 1200px) {
  .section-2-product-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }
}

/* Card de Vehículo - Diseño Premium 2026 Dark */
.section-2-product-cards-one {
  position: relative;
  background: #1a1a1a;
  border-radius: var(--radius-2xl);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: all var(--transition-duration) var(--transition-smooth);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px;
  cursor: pointer;
}

.section-2-product-cards-one:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
  border-color: rgba(59, 130, 246, 0.3);
}

.section-2-product-cards-one a {
  display: block;
  overflow: hidden;
}

.section-2-product-cards-one img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 100%;
}

.section-2-product-cards-one:hover img {
  transform: scale(1.08);
}

.section-2-product-cards-one h5 {
  font-size: 0.85em;
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin: 8px 8px 4px;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.section-2-product-cards-one .vehicle-year {
  font-size: 0.8em;
  color: var(--text-secondary);
  margin: 0 8px 4px;
}

.section-2-product-cards-one .price {
  font-size: 1em;
  font-weight: var(--font-extrabold);
  color: var(--header-btnH-color);
  margin: 0 8px 8px;
  letter-spacing: var(--tracking-tight);
}

.section-2-product-cards-one > a:last-child {
  margin: 0 8px 8px;
  padding: 10px 16px;
  background: var(--gradient-blue);
  color: white;
  text-align: center;
  border-radius: 9999px;
  font-weight: var(--font-semibold);
  font-size: 0.8em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  backdrop-filter: blur(10px);
  border: none;
}

.section-2-product-cards-one > a:last-child:hover {
  background: var(--header-btnH-dark);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

/* Badge para destacados - Diseño Moderno */
.vehicle-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
  color: white;
  padding: 8px 16px;
  font-size: 0.75em;
  font-weight: 700;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Estado Vacío - Diseño Moderno Dark */
.no-results {
  text-align: center;
  padding: 60px 30px;
  background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.no-results i {
  font-size: 4em;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.no-results p {
  font-size: 1.2em;
  color: var(--text-secondary);
  font-weight: 500;
}

.hidden {
  display: none;
}

/* Paginación - Diseño Moderno */
.pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.pagination-current {
  padding: 12px 20px;
  background: var(--header-btnH-color);
  color: white;
  border-radius: 9999px;
  font-size: 0.95em;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  backdrop-filter: blur(10px);
}

/* Responsive para el catálogo - Media queries modernas */

/* 375px (iPhone 12/13/14) */
@media (min-width: 375px) {
  .section-2-product-cards-one img {
    height: 110px;
  }
  .section-2-product-cards-one {
    padding: 10px;
  }
  .section-2-product-cards-one h5 {
    font-size: 0.9em;
  }
  .section-2-product-cards-one .vehicle-year {
    font-size: 0.85em;
  }
  .section-2-product-cards-one .price {
    font-size: 1.1em;
  }
  .section-2-product-cards-one > a:last-child {
    padding: 11px 18px;
    font-size: 0.85em;
  }
}

/* 430px (Samsung Galaxy S21) */
@media (min-width: 430px) {
  .section-2-product-cards-one img {
    height: 120px;
  }
  .section-2-product-cards-one {
    padding: 12px;
  }
  .section-2-product-cards-one h5 {
    font-size: 0.95em;
  }
  .section-2-product-cards-one .vehicle-year {
    font-size: 0.9em;
  }
  .section-2-product-cards-one .price {
    font-size: 1.2em;
  }
  .section-2-product-cards-one > a:last-child {
    padding: 12px 20px;
    font-size: 0.9em;
  }
}

/* 768px (Tablet) */
@media (min-width: 768px) {
  .section-2-product-cards-one img {
    height: 160px;
  }
  .section-2-product-cards-one {
    padding: 16px;
  }
  .section-2-product-cards-one h5 {
    font-size: 1.1em;
  }
  .section-2-product-cards-one .vehicle-year {
    font-size: 1em;
  }
  .section-2-product-cards-one .price {
    font-size: 1.4em;
  }
  .section-2-product-cards-one > a:last-child {
    padding: 14px 24px;
    font-size: 0.9em;
  }
  .section-3 {
    padding: 40px var(--page-padding);
  }
  .catalog-header h3 {
    font-size: 1.8em;
  }
  .filters-container {
    padding: 18px;
  }
  .search-box input {
    padding: 14px 18px;
    font-size: 0.95em;
  }
  .filter-group label {
    font-size: 0.85em;
  }
  .filter-group select {
    padding: 12px 16px;
    font-size: 0.95em;
  }
}

/* 1200px (Desktop) */
@media (min-width: 1200px) {
  .section-2-product-cards-one img {
    height: 200px;
  }
  .section-2-product-cards-one {
    padding: 18px;
  }
  .section-2-product-cards-one h5 {
    font-size: 1.2em;
  }
  .section-2-product-cards-one .vehicle-year {
    font-size: 1.05em;
  }
  .section-2-product-cards-one .price {
    font-size: 1.5em;
  }
  .section-2-product-cards-one > a:last-child {
    padding: 14px 24px;
    font-size: 0.95em;
  }
  .section-3 {
    padding: 60px var(--page-padding);
  }
  .catalog-header h3 {
    font-size: 2.2em;
  }
  .filters-container {
    padding: 20px;
  }
  .search-box input {
    padding: 14px 18px;
    font-size: 0.95em;
  }
  .filter-group label {
    font-size: 0.85em;
  }
  .filter-group select {
    padding: 12px 16px;
    font-size: 0.95em;
  }
}

/* 1440px (Desktop Large) */
@media (min-width: 1440px) {
  .section-2-product-cards-one img {
    height: 220px;
  }
  .section-2-product-cards-one {
    padding: 20px;
  }
  .section-2-product-cards-one h5 {
    font-size: 1.3em;
  }
  .section-2-product-cards-one .vehicle-year {
    font-size: 1.1em;
  }
  .section-2-product-cards-one .price {
    font-size: 1.6em;
  }
  .section-2-product-cards-one > a:last-child {
    padding: 16px 28px;
    font-size: 1em;
  }
  .section-3 {
    padding: 80px var(--page-padding);
  }
  .catalog-header h3 {
    font-size: 2.5em;
  }
  .filters-container {
    padding: 24px;
  }
  .search-box input {
    padding: 14px 18px;
    font-size: 0.95em;
  }
  .filter-group label {
    font-size: 0.85em;
  }
  .filter-group select {
    padding: 12px 16px;
    font-size: 0.95em;
  }
}
