body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 0;
    text-align: center;
}

.bus-wrapper {
    position: relative;
    width: fit-content;
    margin: 20px auto;
    padding: 20px;
}

.bus-container {
    display: grid;
    grid-template-columns: repeat(2, 60px) 40px repeat(2, 60px); /* 2 asientos + pasillo + 2 asientos */
    gap: 10px;
    justify-content: center;
    background: #ddd;
    padding: 20px;
    border-radius: 20px;
    border: 4px solid #333;
}

/* Cabina conductor */
.conductor {
    grid-column: 1 / span 5;
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
}

/* Volante */
.volante {
    width: 30px;
    height: 30px;
    background: #333;
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
    margin-right: 5px;
    border: 3px solid #555;
}

/* Puerta lateral */
.puerta {
    position: absolute;
    right: -50px;
    top: 80px;
    width: 40px;
    height: 100px;
    background: #888;
    border-radius: 5px;
}

/* Ventanas laterales */
.ventana {
    position: absolute;
    left: -50px;
    top: 20px;
    width: 40px;
    height: 40px;
    background: #4FC3F7;
    border-radius: 5px;
    border: 2px solid #0288D1;
}

/* Estilo general asiento */
.asiento {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
    line-height: 60px;
}

/* Disponible */
.disponible {
    background: #4CAF50;
    color: white;
}

.disponible:hover {
    transform: scale(1.1);
}

/* Vendido */
.vendido {
    background: #e53935;
    color: white;
    cursor: not-allowed;
}

/* Asientos minusválidos */
.minusvalido {
    background: #1976d2;
    color: white;
    border: 3px solid #0d47a1;
}

/* ===================
   MEDIA QUERIES PARA MOVILES
=================== */
@media screen and (max-width: 600px) {

    .bus-container {
        grid-template-columns: repeat(2, 40px) 20px repeat(2, 40px);
        gap: 5px;
        padding: 10px;
    }

    .asiento {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 12px;
    }

    .volante {
        width: 20px;
        height: 20px;
        border: 2px solid #555;
    }

    .puerta {
        width: 30px;
        height: 70px;
        top: 60px;
        right: -40px;
    }

    .ventana {
        width: 30px;
        height: 30px;
        top: 10px;
        left: -40px;
    }

    .bus-wrapper {
        padding: 10px;
    }
}