
/* VARIABLES DE DISEÑO */
:root {
    --bg-main: #06090d;
    --bg-card: #11161d;
    --red-brand: #e50914;
    --red-hover: #b80710;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --text-dark-gray: #4b5563;
    --border-color: #1f2937;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.header {
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: rgba(6, 9, 13, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 1;
}

.logo span {
    font-size: 0.65rem;
    color: var(--text-gray);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 25px;
    font-size: 0.85rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
}

.nav-links a.active, .nav-links a:hover {
    color: var(--red-brand);
    border-bottom: 2px solid var(--red-brand);
    padding-bottom: 4px;
}

.header-icons {
    display: flex;
    gap: 20px;
    color: var(--text-gray);
}

.cart-icon-wrapper {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--red-brand);
    font-size: 0.6rem;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* HERO SECTION */
.hero {
    padding: 60px 0;
    background: linear-gradient(180deg, #090d14 0%, #06090d 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid { grid-template-columns: 1.2fr 1fr; }
}

.hero-tag {
    color: var(--red-brand);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 15px 0;
}

.hero-title span { color: var(--red-brand); }

.hero-description {
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background-color: var(--red-brand);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary {
    border: 1px solid var(--text-dark-gray);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #9ca3af;
}
.btn-primary:hover { background-color: var(--red-hover); }

.btn-secondary:hover { border-color: var(--red-brand); color: var(--red-brand); }

.cursor {
    cursor: pointer;
}
.p-4 {
    padding: 1rem /* 16px */;
}

.d-flex {
    display: flex;
}
.align-items-center {
    align-items: center;
}
.justify-content-center {
    justify-content: center;
}

.back-to-top-l {
  position: fixed;
  visibility: visible;
  opacity: 1;
  left: 15px;
  bottom: 15px;
  z-index: 996;
  background: rgb(37, 211, 102);
  box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.412);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.4s;
  color: white;
}
.back-to-top-l:hover {
  background: rgb(61, 245, 128);
  color: white;
}

.w-5 {
    width: 1.25rem /* 20px */;
}
.h-5 {
    height: 1.25rem;
}
.hero-visual {
    display: flex;
    gap: 15px;
    position: relative;
    justify-content: center;
}

.truck-placeholder {
    background-color: #161c24;
    border: 1px solid var(--border-color);
    width: 160px;
    height: 240px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark-gray);
}

.truck-placeholder.tall { height: 280px; margin-top: -20px; }

.badge-diagonal {
    position: absolute;
    bottom: 20px;
    right: -10px;
    background-color: #e50914;
    padding: 10px 15px;
    font-weight: 900;
    font-size: 0.75rem;
    transform: rotate(-5deg);
    line-height: 1.2;
}

/* CATEGORIES */
.categories { margin-top: -30px; padding-bottom: 50px; }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.category-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    transition: 0.3s;
}

.category-card:hover { border-color: var(--red-brand); transform: translateY(-3px); }

.category-icon { color: var(--text-gray); margin-bottom: 10px; }

.category-title { font-size: 0.8rem; text-transform: uppercase; }

.category-subtitle { font-size: 0.7rem; color: var(--text-dark-gray); }

/* BRANDS BANNER */
.brands-section { padding: 40px 0; }

.brands-banner {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.section-label { color: var(--red-brand); font-size: 0.7rem; text-transform: uppercase; }

.section-title { font-size: 1.8rem; text-transform: uppercase; }

.section-desc { color: var(--text-gray); font-size: 0.8rem; }

.brands-logos { display: flex; gap: 40px; font-weight: 900; font-size: 1.8rem; }

.logo-isuzu { color: #e50914; font-style: italic; }

.logo-chevrolet { color: #ffb703; }

/* PRODUCTS */
.products-section { padding: 50px 0; }

.products-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 35px; }

.view-all { color: var(--text-gray); font-size: 0.8rem; display: flex; align-items: center; gap: 5px; text-decoration: none; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 6px;
    height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-img-box {
    background-color: rgba(0,0,0,0.3);
    height: 110px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark-gray);
    font-size: 0.75rem;
    overflow: hidden;
}

.product-footer { display: flex; justify-content: space-between; align-items: center; }

.product-name { font-size: 0.8rem; text-transform: uppercase; }

.product-category { font-size: 0.7rem; color: var(--text-dark-gray); }

.product-arrow {
    background-color: #1f2937;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* WHY CHOOSE US */
.features-section { padding: 60px 0; background-color: #090d14; }

.features-header { text-align: center; margin-bottom: 40px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.feature-item { display: flex; gap: 15px; }

.feature-icon {
    color: var(--red-brand);
    background-color: rgba(229, 9, 20, 0.1);
    padding: 10px;
    border-radius: 6px;
    height: fit-content;
}

.feature-title { font-size: 0.9rem; text-transform: uppercase; margin-bottom: 5px; }

.feature-desc { font-size: 0.75rem; color: var(--text-gray); }

/* FOOTER */
.footer { border-top: 1px solid var(--border-color); padding: 50px 0 20px 0; font-size: 0.8rem; }

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand h4 { color: var(--red-brand); margin-bottom: 5px; }

.footer-info { display: flex; gap: 10px; }

.footer-info-icon { color: var(--red-brand); }

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    color: var(--text-dark-gray);
    font-size: 0.7rem;
}

.footer-socials { display: flex; gap: 15px; }