/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    height: 570px;
    overflow: hidden;
    background: linear-gradient( 90deg, #111827 0%, #1f2937 55%, #374151 100%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility .6s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide:nth-child(2) {
    background: linear-gradient( 90deg, #111827, #7f1d1d);
}

.hero-slide:nth-child(3) {
    background: linear-gradient( 90deg, #111827, #14532d);
}

.hero-content {
    display: flex;
    align-items: center;
    min-height: 570px;
}

.hero-text {
    max-width: 650px;
    color: #ffffff;
}

.hero-label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 12px;
    border-radius: 30px;
    background: rgba( 215, 25, 32, .9);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.hero-text h1,
.hero-text h2 {
    margin-bottom: 20px;
    font-size: clamp( 40px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 800;
}

.hero-text p {
    max-width: 550px;
    margin-bottom: 30px;
    color: #e5e7eb;
    font-size: 18px;
}


/* =========================================================
   HERO CONTROLS
========================================================= */

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 1px solid rgba( 255, 255, 255, .3);
    border-radius: 50%;
    background: rgba( 0, 0, 0, .25);
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-control:hover {
    background: rgba( 0, 0, 0, .5);
}

.hero-prev {
    left: 25px;
}

.hero-next {
    right: 25px;
}


/* =========================================================
   HERO DOTS
========================================================= */

.hero-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    z-index: 5;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba( 255, 255, 255, .4);
    cursor: pointer;
}

.hero-dots button.active {
    width: 28px;
    border-radius: 10px;
    background: #ffffff;
}


/* =========================================================
   VEHICLE SEARCH
========================================================= */

.vehicle-search-section {
    background: #f5f6f8;
}

.vehicle-search-card {
    display: grid;
    grid-template-columns: 1fr 1fr .8fr auto;
    gap: 16px;
    padding: 25px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.vehicle-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.vehicle-field label {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.vehicle-field select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    outline: none;
    cursor: pointer;
}

.vehicle-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba( 215, 25, 32, .1);
}

.vehicle-field select:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.vehicle-search-button {
    display: flex;
    align-items: end;
}


/* =========================================================
   RESULTADO VEHÍCULO
========================================================= */

.vehicle-result {
    margin-top: 25px;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.result-header span {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.result-header h3 {
    margin-top: 4px;
    color: var(--secondary);
}

.result-header>strong {
    color: var(--primary);
}

.result-products {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax( 240px, 1fr));
    gap: 20px;
}

.result-empty {
    text-align: center;
}

.result-empty strong {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary);
}

.result-empty p {
    margin-bottom: 20px;
    color: var(--muted);
}


/* =========================================================
   CATEGORÍAS
========================================================= */

.categories-grid {
    display: grid;
    grid-template-columns: repeat( 4, 1fr);
    gap: 20px;
}

.category-card {
    padding: 30px 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #ffffff;
    transition: transform .25s ease, box-shadow .25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: #fef2f2;
    font-size: 28px;
}

.category-card h3 {
    margin-bottom: 8px;
    color: var(--secondary);
}

.category-card p {
    min-height: 68px;
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 14px;
}

.category-card a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   MARCAS
========================================================= */

.brands-section {
    background: #f5f6f8;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat( 7, 1fr);
    gap: 15px;
}

.brand-card {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #ffffff;
    transition: transform .2s ease;
}

.brand-card:hover {
    transform: translateY(-4px);
}

.brand-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #111827;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
}

.brand-placeholder img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    display: block;
}

.brand-card span {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   PRODUCTOS
========================================================= */

.products-grid {
    display: grid;
    grid-template-columns: repeat( 4, 1fr);
    gap: 20px;
}

.product-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #ffffff;
    transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-image {
    position: relative;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f3f4f6;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-placeholder {
    position: absolute;
    color: #d1d5db;
    font-size: 30px;
    font-weight: 800;
}

.product-content {
    padding: 20px;
}

.product-category {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.product-content h3 {
    margin: 7px 0 8px;
    color: var(--secondary);
    font-size: 17px;
    line-height: 1.3;
}

.product-content p {
    min-height: 45px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-footer strong {
    color: var(--secondary);
    font-size: 17px;
}

.product-button {
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   COTIZACIÓN
========================================================= */

.quote-section {
    background: #f5f6f8;
}

.quote-card {
    position: relative;
    overflow: hidden;
    padding: 70px 60px;
    border-radius: 18px;
    background: linear-gradient( 110deg, #111827, #1f2937);
}

.quote-content {
    max-width: 650px;
    color: #ffffff;
}

.quote-content h2 {
    margin-bottom: 15px;
    font-size: 38px;
}

.quote-content p {
    margin-bottom: 25px;
    color: #d1d5db;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    .categories-grid {
        grid-template-columns: repeat( 2, 1fr);
    }
    .brands-grid {
        grid-template-columns: repeat( 4, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat( 2, 1fr);
    }
    .vehicle-search-card {
        grid-template-columns: 1fr 1fr;
    }
    .vehicle-search-button {
        align-items: center;
    }
}

@media (max-width: 700px) {
    .hero {
        height: 500px;
    }
    .hero-content {
        min-height: 500px;
    }
    .hero-text {
        text-align: center;
        margin: 0 auto;
    }
    .hero-text h1,
    .hero-text h2 {
        font-size: 38px;
    }
    .hero-text p {
        font-size: 16px;
    }
    .hero-control {
        display: none;
    }
    .vehicle-search-card {
        grid-template-columns: 1fr;
    }
    .vehicle-search-button {
        align-items: stretch;
    }
    .vehicle-search-button .btn {
        width: 100%;
    }
    .categories-grid {
        grid-template-columns: 1fr;
    }
    .brands-grid {
        grid-template-columns: repeat( 2, 1fr);
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .quote-card {
        padding: 45px 25px;
    }
    .quote-content h2 {
        font-size: 30px;
    }
}

@media (max-width: 450px) {
    .hero {
        height: 480px;
    }
    .hero-content {
        min-height: 480px;
    }
    .hero-text h1,
    .hero-text h2 {
        font-size: 32px;
    }
    .hero-dots {
        bottom: 15px;
    }
}