/* ── Catalog Brand Page ──────────────────────────────── */

/* Header */
.catalogo-header {
    background: linear-gradient(135deg, #1a2e6e 0%, #4269f5 100%);
    color: #fff;
    padding: 2.5rem 0 2rem;
}

.catalogo-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.catalogo-header .breadcrumb-item,
.catalogo-header .breadcrumb-item a {
    color: rgba(255,255,255,.7);
    font-size: .8rem;
    text-decoration: none;
}

.catalogo-header .breadcrumb-item.active {
    color: #fff;
}

.catalogo-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,.5);
}

.catalogo-brand-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    padding: 10px;
    margin-bottom: 1rem;
}

.catalogo-brand-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.catalogo-brand-desc {
    color: rgba(255,255,255,.8);
    font-size: .95rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Models Grid */
.catalogo-models-section {
    background: #f3f4f6;
    padding: 3rem 0;
    min-height: 400px;
}

/* Model Card */
.catalog-model-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.10);
    border: 1px solid #e5e7eb;
}

.catalog-model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
    border-color: #4269f5;
}

.catalog-model-card .card-img-area {
    position: relative;
    background: #f4f4f6;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.catalog-model-card .card-img-area img.card-vehicle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-model-card .card-img-area .brand-img-fallback {
    width: 100px;
    height: 100px;
    object-fit: contain;
    opacity: .35;
}

.badge-bodytype {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #4269f5;
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.catalog-model-card .card-info {
    padding: 1.1rem 1.2rem 1.3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.catalog-model-card .model-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a2e6e;
    margin-bottom: .3rem;
}

.catalog-model-card .model-origin {
    font-size: .8rem;
    color: #6b7280;
    margin-bottom: .5rem;
}

.catalog-model-card .model-price-label {
    font-size: .75rem;
    color: #6b7280;
    margin-bottom: .1rem;
}

.catalog-model-card .model-price-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #4269f5;
    margin-bottom: 0;
}

.catalog-model-card .model-price-consult {
    font-size: .9rem;
    color: #9ca3af;
    font-style: italic;
}

.catalog-model-card .card-count {
    margin-top: auto;
    padding-top: .75rem;
    font-size: .78rem;
    color: #9ca3af;
}

/* Empty state */
.catalogo-empty {
    text-align: center;
    padding: 4rem 0;
    color: rgba(255,255,255,.6);
}

.catalogo-empty svg {
    opacity: .3;
    margin-bottom: 1rem;
}

/* Pagination */
.catalogo-pagination {
    text-align: center;
    padding: 2rem 0 1rem;
}

/* ── Model Detail ───────────────────────────────────── */
.model-detail-section {
    background: #fff;
    padding: 2.5rem 0 3rem;
    border-bottom: 1px solid #e5e7eb;
}

.model-detail-image-wrap {
    background: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-detail-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-detail-image-disclaimer {
    color: #9ca3af;
    font-size: .72rem;
    margin-top: .6rem;
}

.model-detail-brand {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: .1rem;
}

.model-detail-name {
    color: #1a2e6e;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.model-detail-price-label {
    color: #6b7280;
    font-size: .8rem;
    margin-bottom: .2rem;
}

.model-detail-price {
    color: #4269f5;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.model-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.75rem;
}

.model-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #1e293b;
    color: #d1d5db;
    font-size: .8rem;
    padding: .3rem .75rem;
    border-radius: 20px;
}

.model-detail-badge i { color: #4269f5; font-size: .85rem; }

.model-detail-cta {
    display: block;
    width: 100%;
    padding: .85rem 1rem;
    background: #4269f5;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background .2s;
    text-decoration: none;
}

.model-detail-cta:hover { background: #2e50d8; color: #fff; }

/* ── Cotización Form ─────────────────────────────────── */
.cotizacion-section {
    background: #f3f4f6;
    padding: 4rem 0;
}

.cotizacion-section .section-title {
    color: #1a2e6e;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.cotizacion-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.cotizacion-card .form-label {
    color: #374151;
    font-size: .82rem;
    margin-bottom: .35rem;
    display: block;
}

.cotizacion-card .form-control,
.cotizacion-card .form-select {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #1f2937;
    border-radius: 8px;
    padding: .65rem 1rem;
    font-size: .9rem;
    transition: border-color .2s;
}

.cotizacion-card .form-control:focus,
.cotizacion-card .form-select:focus {
    background: #fff;
    border-color: #4269f5;
    color: #1f2937;
    box-shadow: 0 0 0 3px rgba(66,105,245,.15);
    outline: none;
}

.cotizacion-card .form-control::placeholder {
    color: #9ca3af;
}

.cotizacion-card .form-select option {
    background: #fff;
    color: #1f2937;
}

.cotizacion-card textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.cotizacion-card .required-note {
    color: #9ca3af;
    font-size: .78rem;
    margin-bottom: 1rem;
}

.cotizacion-card .terms-label {
    color: #374151;
    font-size: .82rem;
}

.cotizacion-card .terms-label a {
    color: #4269f5;
}

.cotizacion-alert {
    border-radius: 8px;
    padding: .9rem 1.1rem;
    margin-bottom: 1.5rem;
    font-size: .88rem;
}

.cotizacion-alert.success {
    background: rgba(22,163,74,.1);
    border-left: 4px solid #16a34a;
    color: #15803d;
}

.cotizacion-alert.error {
    background: rgba(220,38,38,.1);
    border-left: 4px solid #dc2626;
    color: #b91c1c;
}

/* ── Model Gallery Lightbox ─────────────────────────────── */
.model-gallery {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.93);
    z-index: 9999;
}

.model-gallery.is-open { display: block; }

.model-gallery__inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.model-gallery__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.5rem;
    background: rgba(0,0,0,.5);
    flex-shrink: 0;
}

.model-gallery__title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.model-gallery__close {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #fff;
    background: none;
    border: none;
    font-size: .88rem;
    cursor: pointer;
    padding: .35rem .7rem;
    border-radius: 6px;
    transition: background .15s;
}
.model-gallery__close:hover { background: rgba(255,255,255,.12); }

.model-gallery__slides {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.model-gallery__slide {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
}
.model-gallery__slide.is-active { display: flex; }

.model-gallery__slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
}

.model-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-size: 1.6rem;
    line-height: 1;
    transition: background .15s;
    user-select: none;
}
.model-gallery__nav:hover { background: rgba(255,255,255,.25); }
.model-gallery__nav--prev { left: 1rem; }
.model-gallery__nav--next { right: 1rem; }

.model-gallery__counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.55);
    font-size: .8rem;
    background: rgba(0,0,0,.45);
    padding: .2rem .7rem;
    border-radius: 20px;
    pointer-events: none;
}

/* Gallery icon on hero image */
.model-gallery-icon {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: rgba(255,255,255,.88);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    transition: background .15s, transform .15s;
    z-index: 2;
    color: #374151;
}
.model-gallery-icon:hover { background: #fff; transform: scale(1.06); }
.model-gallery-icon svg { width: 18px; height: 18px; }

.model-detail-image-wrap.has-gallery { cursor: pointer; }

/* Responsive */
@media (max-width: 767px) {
    .catalogo-brand-name { font-size: 1.5rem; }
    .catalog-model-card .card-img-area { height: 160px; }
    .model-gallery__nav { width: 38px; height: 38px; font-size: 1.3rem; }
    .model-gallery__nav--prev { left: .4rem; }
    .model-gallery__nav--next { right: .4rem; }
}
