/* ================================================================
   CATÁLOGO DE FLOTA - DISEÑO INDUSTRIAL (PALETA AZUL & ACERO)
   ================================================================ */

.fleet-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra las tarjetas sobrantes */
    gap: 20px; /* Reducimos un poco el espacio para ganar ancho */
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.fleet-card {
    background: var(--white);
    border: 1px solid var(--platinum);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    
    /* MAGIA AQUÍ: 
       calc(33.333% - 20px) asegura que siempre quepan 3 tarjetas 
       restando el espacio del gap. */
    width: calc(33.333% - 20px); 
    min-width: 300px; /* Para que no se vuelvan demasiado flacas */
    max-width: 380px; /* Para que no se vuelvan gigantes en pantallas enormes */
}

.fleet-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 35, 66, 0.15);
    border-color: var(--accent-blue); 
}

/* Formato cuadrado para la imagen */
.fleet-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--steel-silver);
}

.fleet-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.fleet-card:hover .fleet-img-container img {
    transform: scale(1.05);
}

.fleet-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 6px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 3px solid var(--accent-blue);
}

.fleet-content {
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.fleet-content h3 {
    font-family: var(--title-font);
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary-blue);
    text-transform: uppercase;
}

.fleet-content p {
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    line-height: 1.5;
    flex-grow: 1;
}

/* Botón con tus Azules de Acento */
.fleet-content .btn-main {
    background-color: var(--accent-blue);
    color: var(--white);
    text-decoration: none;
    width: 100%;
    padding: 15px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.fleet-content .btn-main:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
}

/* Responsive para tablets y móviles */
@media (max-width: 992px) {
    .fleet-card {
        width: calc(50% - 20px); /* 2 columnas en tablets */
    }
}

@media (max-width: 650px) {
    .fleet-card {
        width: 100%; /* 1 columna en móviles */
    }
}