/**
 * Transfer Vehicles Grid - Estilos CSS
 * Diseño premium con efecto antigravity, responsive y moderno
 */

/* ========================================
   CONTENEDOR PRINCIPAL - GRID RESPONSIVE
   ======================================== */
.tvg-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tablet: 2 columnas */
@media (max-width: 1024px) {
    .tvg-vehicles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Móvil: 1 columna */
@media (max-width: 768px) {
    .tvg-vehicles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
}

/* ========================================
   TARJETA DE VEHÍCULO - EFECTO ANTIGRAVITY
   ======================================== */
.tvg-vehicle-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Efecto hover - Levitación (Antigravity) */
.tvg-vehicle-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ========================================
   ETIQUETA PREMIUM (BADGE)
   ======================================== */
.tvg-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000000;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}

.tvg-vehicle-card:hover .tvg-badge {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.5);
}

/* ========================================
   IMAGEN DEL VEHÍCULO
   ======================================== */
.tvg-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.tvg-vehicle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tvg-vehicle-card:hover .tvg-vehicle-image {
    transform: scale(1.08);
}

/* ========================================
   CONTENIDO DE LA TARJETA
   ======================================== */
.tvg-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

/* Nombre del vehículo */
.tvg-vehicle-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ========================================
   ESPECIFICACIONES (PASAJEROS Y MALETAS)
   ======================================== */
.tvg-specs {
    display: flex;
    gap: 20px;
    align-items: center;
}

.tvg-spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555555;
    font-weight: 500;
}

.tvg-spec-item i,
.tvg-spec-item svg {
    font-size: 16px;
    color: #000000;
    width: 16px;
    height: 16px;
}

/* ========================================
   DESCRIPCIÓN
   ======================================== */
.tvg-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
    flex-grow: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ========================================
   BOTÓN DE RESERVA
   ======================================== */
.tvg-button {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    background: #000000;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    margin-top: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.tvg-button:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.tvg-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ========================================
   OPTIMIZACIONES MÓVILES
   ======================================== */
@media (max-width: 768px) {
    .tvg-image-wrapper {
        height: 200px;
    }

    .tvg-content {
        padding: 20px;
        gap: 14px;
    }

    .tvg-vehicle-name {
        font-size: 20px;
    }

    .tvg-badge {
        top: 12px;
        right: 12px;
        padding: 5px 14px;
        font-size: 11px;
    }

    .tvg-button {
        padding: 12px 20px;
        font-size: 14px;
    }

    .tvg-specs {
        gap: 16px;
    }

    .tvg-spec-item {
        font-size: 13px;
    }
}

/* ========================================
   ANIMACIONES Y MICRO-INTERACCIONES
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tvg-vehicle-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Delay progresivo para múltiples tarjetas */
.tvg-vehicle-card:nth-child(1) { animation-delay: 0.1s; }
.tvg-vehicle-card:nth-child(2) { animation-delay: 0.2s; }
.tvg-vehicle-card:nth-child(3) { animation-delay: 0.3s; }
.tvg-vehicle-card:nth-child(4) { animation-delay: 0.4s; }
.tvg-vehicle-card:nth-child(5) { animation-delay: 0.5s; }
.tvg-vehicle-card:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   ACCESIBILIDAD
   ======================================== */
.tvg-button:focus {
    outline: 3px solid rgba(0, 0, 0, 0.3);
    outline-offset: 2px;
}

.tvg-vehicle-card:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* ========================================
   MODO OSCURO (OPCIONAL)
   ======================================== */
@media (prefers-color-scheme: dark) {
    .tvg-vehicle-card {
        background: #1e1e1e;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .tvg-vehicle-name {
        color: #ffffff;
    }

    .tvg-description {
        color: #b0b0b0;
    }

    .tvg-spec-item {
        color: #cccccc;
    }

    .tvg-spec-item i,
    .tvg-spec-item svg {
        color: #ffffff;
    }

    .tvg-button {
        background: #ffffff;
        color: #000000;
    }

    .tvg-button:hover {
        background: #e0e0e0;
    }
}

/* ========================================
   PERFORMANCE - OPTIMIZACIÓN GPU
   ======================================== */
.tvg-vehicle-card,
.tvg-vehicle-image,
.tvg-button,
.tvg-badge {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
