﻿/* ==========================================================================
   VARIABLES LOCALES
   ========================================================================== */

:root {
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --primary: #2563eb;
    --primary-weak: #dbeafe;
    --accent: #f59e0b;
    --shadow: 0 10px 25px rgba(17, 24, 39, 0.08);
    --r-lg: 18px;
    --r-md: 14px;
    --r-sm: 12px;
    --gap: 16px;
    --max: 1100px;
}


/* ==========================================================================
   LAYOUT GENERAL
   ========================================================================== */

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 28px 18px 60px;
}

.hero {
    margin-bottom: 18px;
}

hr {
    margin: 20px auto;
}


/* ==========================================================================
   TÍTULOS / TEXTO
   ========================================================================== */

.h1 {
    margin: 0 0 8px;
    padding: 0 !important;
    font-size: clamp(2rem, 1.5vw, 2.5rem);
    line-height: clamp(2.2rem, 1.6vw, 3rem);
    letter-spacing: -0.02em;
}

.h2 {
    margin: 0;
    font-size: clamp(1.3rem, 1.1vw, 1.8rem);
    letter-spacing: -0.01em;
}

.lead-title,
.muted {
    color: var(--muted);
}

.lead-title {
    margin: 0;
    line-height: 1.55;
}


/* ==========================================================================
   PRODUCT DETAILS - PANEL DERECHO
   ========================================================================== */

.pd {
    padding-top: 4px;
    padding-left: 6px;
}

.pd__title {
    margin: 0 0 8px;
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
}

.pd__subtitle {
    margin-bottom: 18px;
    font-size: 14px;
    opacity: 0.75;
}

.pd__price {
    margin: 0 0 14px;
    color: var(--base-color);
    font-size: 34px;
    font-weight: 900;
}

.pd__meta {
    margin-bottom: 14px;
}

.pd__meta-row {
    display: flex;
    gap: 6px;
    font-size: 14px;
}

.pd__meta-row-nota {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 14px;
}

.pd__meta-label {
    opacity: 0.75;
}

.pd__meta-value {
    font-weight: 600;
}

.pd__desc {
    max-width: 560px;
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
}

.pd__buy {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 18px;
}

.pd__qty {
    width: 74px;
    height: 44px;
    padding: 0 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
}

.pd__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 26px;
    color: #fff;
    background: #e53935;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(229, 57, 53, 0.22);
    font-weight: 800;
}

    .pd__btn:hover {
        filter: brightness(0.96);
    }

.pd__btn-ico {
    font-size: 16px;
    line-height: 1;
}

.pd__bottom {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 14px;
}

.pd__bottom-row {
    display: flex;
    gap: 6px;
    margin: 6px 0;
}

.pd__bottom-label {
    opacity: 0.75;
}

.pd__link {
    color: #e53935;
    font-weight: 700;
    text-decoration: none;
}

    .pd__link:hover {
        text-decoration: underline;
    }


/* ==========================================================================
   PRODUCT DETAILS - CONTENEDOR CAMPA
   ========================================================================== */

.pdc {
    overflow: hidden;
    background: var(--card, #fff);
    border: 1px solid var(--line, #e5e7eb);
    border-radius: var(--r-lg, 18px);
    box-shadow: var(--shadow, 0 10px 25px rgba(17, 24, 39, 0.08));
}

.pdc__inner {
    padding: 22px;
}

.product__details--media {
    overflow: hidden;
    border-radius: 14px;
}


/* ==========================================================================
   VEHÍCULO - CONTORNO TIPO CAMPA
   ========================================================================== */

.vehCard {
    overflow: hidden;
    background: var(--card, #fff);
    border: 1px solid var(--line, #e5e7eb);
    border-radius: var(--r-lg, 18px);
    box-shadow: var(--shadow, 0 10px 25px rgba(17, 24, 39, 0.08));
}

.vehCard__head {
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--line, #e5e7eb);
}

.vehCard__title {
    margin: 0 0 6px;
    font-size: clamp(1.25rem, 1.1vw, 1.8rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.vehCard__sub {
    margin: 0;
    color: var(--muted, #6b7280);
    font-size: 14px;
    font-weight: 600;
}

.vehCard__box {
    margin: 16px 22px;
    padding: 14px 16px;
    background: #f7f7f7;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: var(--r-md, 14px);
}

.vehGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 22px;
}

.vehRow {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: baseline;
    gap: 10px;
}

.vehRow__label {
    color: var(--muted, #6b7280);
    font-size: 14px;
    font-weight: 650;
}

.vehRow__value {
    color: var(--text, #111827);
    font-size: 14px;
    font-weight: 800;
}

.vehCard__section {
    padding: 6px 22px 22px;
}

.vehCard__sectionTitle {
    margin: 12px 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
}

.vehPhotosEmpty {
    display: grid;
    place-items: center;
    min-height: 170px;
    padding: 18px;
    color: var(--muted, #6b7280);
    background: #f7f7f7;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: var(--r-md, 14px);
    text-align: center;
}

    .vehPhotosEmpty svg {
        width: 44px;
        height: 44px;
        margin-bottom: 10px;
        opacity: 0.45;
    }


/* ==========================================================================
   MEDIA / MINIATURAS
   ========================================================================== */

.vehicleCard__media {
    display: block;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: #f3f4f6;
}

    .vehicleCard__media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.product__card--thumbnail {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: #f3f4f6;
    border-radius: 14px;
}

.product__card--thumbnail__link {
    display: block;
    width: 100%;
    height: 100%;
}

.product__card--thumbnail__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product__secondary--img {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.product__card:hover .product__secondary--img {
    opacity: 1;
}

.product__card:hover .product__primary--img {
    opacity: 0;
}


/* ==========================================================================
   UTILIDADES
   ========================================================================== */

.mini-h {
    display: block;
    min-height: 5.5rem;
}

.tx-nota {
    line-height: 20px;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (min-width: 992px) {
    .pdc .row > .col:first-child {
        padding-right: 22px;
        border-right: 1px solid rgba(17, 24, 39, 0.08);
    }

    .pdc .row > .col:last-child {
        padding-left: 22px;
    }
}

@media (max-width: 991.98px) {
    .pdc__inner {
        padding: 16px;
    }

    .pdc .row > .col:first-child {
        border-right: 0;
    }
}

@media (max-width: 768px) {
    .vehGrid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .pd__title {
        font-size: 20px;
    }

    .pd__price {
        font-size: 28px;
    }

    .pd__buy {
        gap: 12px;
    }

    .pd__btn {
        padding: 0 18px;
    }
}

@media (max-width: 560px) {
    .vehicleCard__media {
        height: 200px;
    }

    .product__card--thumbnail {
        height: 190px;
    }
}

@media (max-width: 520px) {
    .vehRow {
        grid-template-columns: 120px 1fr;
    }
}
