/* assets/css/vehiculos_showcase.css - Catálogo y Showcase de Vehículos (Modo Claro Premium & HUD Táctico) */

:root {
    --v-bg-dark: #f8fafc;
    --v-bg-surface: #ffffff;
    --v-bg-surface-hover: #f1f5f9;
    --v-border-subtle: #e2e8f0;
    --v-border-hover: rgba(234, 88, 12, 0.45);
    --v-text-main: #0f172a;
    --v-text-muted: #64748b;
    --v-accent-blue: #2563eb;
    --v-accent-cyan: #ea580c;
    --v-accent-orange: #ea580c;
    --v-accent-orange-light: #ea580c;
    --v-accent-green: #10b981;
}

/* ==========================================================================
   1. SECCIÓN DE SHOWCASE EN MODO CLARO
   ========================================================================== */
.v-showcase-section {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(234, 88, 12, 0.04) 0%, transparent 50%),
        linear-gradient(rgba(226, 232, 240, 0.6) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 232, 240, 0.6) 1px, transparent 1px);
    background-size: 100% 100%, 32px 32px, 32px 32px;
    color: var(--v-text-main);
    padding: 4.5rem 1.5rem;
    position: relative;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    border-bottom: 1px solid #e2e8f0;
}

.v-showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(234, 88, 12, 0.4), rgba(77, 124, 15, 0.4), transparent);
}

.v-showcase-container {
    max-width: 1360px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   2. CABECERA & HUD TAGS
   ========================================================================== */
.v-showcase-header {
    margin-bottom: 2rem;
}

.v-showcase-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ea580c;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    background: rgba(234, 88, 12, 0.08);
    border: 1px solid rgba(234, 88, 12, 0.3);
    padding: 4px 12px;
    border-radius: 6px;
    font-family: monospace;
}

.v-showcase-title {
    font-size: 2.35rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin: 0.5rem 0 0.5rem 0;
    line-height: 1.2;
}

.v-showcase-subtitle {
    color: var(--v-text-muted);
    font-size: 0.98rem;
    margin: 0;
    max-width: 720px;
    line-height: 1.6;
}

/* ==========================================================================
   3. FILTROS TIPO PILL EN MODO CLARO
   ========================================================================== */
.v-pills-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    margin-bottom: 1.75rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.v-pills-bar::-webkit-scrollbar {
    display: none;
}

.v-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 0.55rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.v-pill:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
    transform: translateY(-2px);
}

.v-pill.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
    font-weight: 800;
    transform: translateY(-1px);
}

.v-pill-icon {
    font-size: 0.9rem;
}

/* ==========================================================================
   4. NAV STRIP, CONTADOR & FLECHAS
   ========================================================================== */
.v-nav-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
}

.v-count-label {
    color: var(--v-text-muted);
    font-size: 0.92rem;
    font-weight: 600;
}
.v-count-label span {
    color: #ea580c;
    font-family: 'JetBrains Mono', monospace, sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
}

.v-nav-arrows {
    display: flex;
    gap: 0.5rem;
}

.v-arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.v-arrow-btn:hover {
    background: #ea580c;
    border-color: #ea580c;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(234, 88, 12, 0.35);
    transform: scale(1.08);
}

.v-arrow-btn:active {
    transform: scale(0.95);
}

/* ==========================================================================
   5. CARRUSEL & TARJETAS EN MODO CLARO
   ========================================================================== */
.v-carousel-wrapper {
    position: relative;
    width: 100%;
}

.v-carousel-track {
    display: flex;
    gap: 1.35rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.75rem 0.25rem 1.75rem 0.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    perspective: 1200px;
}
.v-carousel-track::-webkit-scrollbar {
    display: none;
}

/* Tarjeta en Modo Claro */
.v-model-card {
    min-width: 295px;
    max-width: 325px;
    flex: 0 0 305px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.45rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease-out, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    user-select: none;
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

.v-model-card:hover {
    background: #ffffff;
    border-color: rgba(234, 88, 12, 0.5);
    box-shadow: 0 16px 35px -5px rgba(15, 23, 42, 0.12), 0 0 20px rgba(234, 88, 12, 0.12);
}

/* Cabecera Tarjeta */
.v-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    transform: translateZ(15px);
}

.v-card-brand {
    font-size: 0.72rem;
    font-weight: 800;
    color: #ea580c;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3px;
    font-family: monospace;
}

.v-card-title {
    font-size: 1.18rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.v-card-badge {
    background: rgba(234, 88, 12, 0.08);
    border: 1px solid rgba(234, 88, 12, 0.3);
    color: #ea580c;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    font-family: monospace;
}

/* Imagen y Parallax */
.v-card-img-wrap {
    height: 155px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.25rem 0 1rem 0;
    position: relative;
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.5rem;
    transform: translateZ(25px);
}

.v-card-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.v-model-card:hover .v-card-img-wrap img {
    transform: translateY(-5px) scale(1.04);
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.22));
}

/* Pie de Tarjeta */
.v-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
    transform: translateZ(10px);
}

.v-unit-count {
    font-size: 0.82rem;
    color: var(--v-text-muted);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.v-card-quick-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.v-model-card:hover .v-card-quick-btn {
    background: #ea580c;
    border-color: #ea580c;
    color: #ffffff;
}

/* ==========================================================================
   6. PULSOS DE RADAR EN VIVO
   ========================================================================== */
.v-radar-pulse {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 9px;
    height: 9px;
    margin-right: 4px;
}

.v-radar-pulse::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--v-accent-green);
    animation: radarPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.v-radar-pulse::after {
    content: '';
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--v-accent-green);
}

@keyframes radarPing {
    0% { transform: scale(0.95); opacity: 0.9; }
    70%, 100% { transform: scale(2.8); opacity: 0; }
}

/* Botón Inferior CTA */
.v-showcase-actions {
    margin-top: 2.75rem;
    display: flex;
    justify-content: flex-start;
}

.v-btn-pill-cta {
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
    border-radius: 9999px;
    padding: 12px 28px;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.v-btn-pill-cta:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.25);
    transform: translateY(-3px);
}

/* ==========================================================================
   7. MODAL ULTRA-TECNOLÓGICO EN MODO CLARO
   ========================================================================== */
.v-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(14px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.v-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.v-modal-card {
    background: #ffffff;
    border: 1px solid rgba(234, 88, 12, 0.35);
    border-radius: 26px;
    max-width: 920px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    color: #0f172a;
    box-shadow: 0 25px 70px -10px rgba(15, 23, 42, 0.35), 0 0 35px rgba(234, 88, 12, 0.15);
    position: relative;
    padding: 2.25rem;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.v-modal-overlay.active .v-modal-card {
    transform: scale(1);
}

.v-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.25s;
    z-index: 10;
}

.v-modal-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: rotate(90deg);
}

/* Hero del Modal */
.v-modal-hero {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.75rem;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
}

@media (max-width: 800px) {
    .v-modal-hero {
        grid-template-columns: 1fr;
    }
}

.v-modal-stage {
    position: relative;
    height: 185px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.03);
}

.v-modal-stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}
.v-modal-stage:hover img {
    transform: scale(1.06);
}

.v-modal-sys-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: #ea580c;
    background: rgba(234, 88, 12, 0.08);
    border: 1px solid rgba(234, 88, 12, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: monospace;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

.v-modal-title {
    font-size: 2rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem 0;
    line-height: 1.15;
}

.v-modal-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.v-modal-chip {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: monospace;
}
.v-modal-chip.primary {
    background: rgba(234, 88, 12, 0.1);
    border-color: rgba(234, 88, 12, 0.3);
    color: #ea580c;
}

.v-modal-section-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: monospace;
    margin-bottom: 0.85rem;
}

/* Tarjetas de Unidad / Telemetría */
.v-telemetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
}

.v-unit-terminal-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.v-unit-terminal-card:hover {
    background: #f1f5f9;
    border-color: rgba(234, 88, 12, 0.45);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.v-plate-stamp {
    font-family: monospace;
    font-weight: 900;
    font-size: 0.92rem;
    color: #fbbf24;
    background: #0f172a;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1.5px solid #334155;
    letter-spacing: 1.5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.v-unit-status-badge {
    font-size: 0.7rem;
    font-weight: 800;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.v-unit-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #64748b;
    font-family: monospace;
    border-top: 1px dashed #e2e8f0;
    padding-top: 0.5rem;
}

/* Tarjetas de Repuestos en Modal */
.v-parts-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
}

.v-part-card-hud {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.85rem;
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.v-part-card-hud:hover {
    background: #f8fafc;
    border-color: rgba(77, 124, 15, 0.6);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.v-empty-parts-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Botón de Acción en Verde Olivo */
.v-btn-modal-olive {
    background: linear-gradient(135deg, #4d7c0f 0%, #365314 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    padding: 12px 28px;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 18px rgba(63, 98, 18, 0.35);
    transition: all 0.25s ease;
    cursor: pointer;
}
.v-btn-modal-olive:hover {
    background: linear-gradient(135deg, #65a30d 0%, #3f6212 100%);
    box-shadow: 0 8px 25px rgba(63, 98, 18, 0.5);
    transform: translateY(-2px);
}

/* Grid Catálogo Completo */
.v-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
    gap: 1.5rem;
}
.v-models-grid .v-model-card {
    min-width: unset;
    max-width: unset;
    flex: unset;
}

/* Responsive */
@media (max-width: 768px) {
    .v-showcase-title {
        font-size: 1.8rem;
    }
    .v-model-card {
        min-width: 265px;
        flex: 0 0 265px;
    }
    .v-modal-card {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   8. ANIMACIÓN CINEMATOGRÁFICA STAGGER REVEAL
   ========================================================================== */
@keyframes vCinematicEntrance {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.95);
        filter: blur(5px);
    }
    60% {
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

.v-model-card.v-stagger-animate {
    animation: vCinematicEntrance 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--stagger-idx, 0) * 55ms);
}
