/*=============================================
ESTILOS DEL DISEÑADOR VISUAL DE ASIENTOS (LAYOUTS)
=============================================*/

.designer-wrapper {
    background: #fdfdfe;
    border-radius: 8px;
    padding: 15px;
}

/* Contenedor del vehículo */
.vehiculo-canvas {
    max-width: 520px;
    margin: 0 auto;
    background: #f9fbfd;
    border: 3px solid #3c8dbc;
    border-radius: 35px 35px 15px 15px;
    padding: 15px 20px 25px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.vehiculo-cabina-header {
    text-align: center;
    background: #eaf2f8;
    color: #245269;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 2px dashed #bce8f1;
}

.vehiculo-trasera-footer {
    text-align: center;
    background: #eee;
    color: #777;
    padding: 4px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 11px;
    margin-top: 15px;
    letter-spacing: 1px;
}

/* Grilla del vehículo */
.vehiculo-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.vehiculo-fila {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: relative;
}

.fila-indicador {
    position: absolute;
    left: -32px;
    font-size: 11px;
    font-weight: bold;
    color: #95a5a6;
    width: 25px;
    text-align: right;
}

/* Celda del elemento */
.celda-item {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease-in-out;
    position: relative;
    border: 2px solid transparent;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.celda-item:hover {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.celda-item i {
    font-size: 16px;
    line-height: 1;
}

.celda-item .num-asiento {
    font-size: 13px;
    font-weight: bold;
    margin-top: 2px;
    line-height: 1;
}

.celda-item .subtexto {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1;
    margin-top: 2px;
}

/* Tipos de celdas */
.tipo-asiento {
    background: #00a65a;
    color: #ffffff;
    border-color: #008d4c;
    box-shadow: 0 2px 4px rgba(0, 166, 90, 0.3);
}

.tipo-conductor {
    background: #34495e;
    color: #ffffff;
    border-color: #2c3e50;
    box-shadow: 0 2px 4px rgba(52, 73, 94, 0.3);
}

.tipo-copiloto {
    background: #00c0ef;
    color: #ffffff;
    border-color: #0097bc;
    box-shadow: 0 2px 4px rgba(0, 192, 239, 0.3);
}

.tipo-pasillo {
    background: #edf2f7;
    color: #7f8c8d;
    border: 1px dashed #cbd5e0;
}
.tipo-pasillo i {
    opacity: 0.4;
}

.tipo-vacio {
    background: #ffffff;
    color: #bdc3c7;
    border: 2px dashed #e2e8f0;
}
.tipo-vacio:hover {
    border-color: #3c8dbc;
    color: #3c8dbc;
}

.tipo-bano {
    background: #3c8dbc;
    color: #ffffff;
    border-color: #286090;
}

.tipo-escalera {
    background: #f39c12;
    color: #ffffff;
    border-color: #d58512;
}

.tipo-puerta {
    background: #d81b60;
    color: #ffffff;
    border-color: #b0154e;
}

/* Barra de herramientas */
.toolbar-herramientas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.btn-herramienta {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    background: #fff;
    color: #444;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.btn-herramienta:hover {
    background: #f1f5f9;
}

.btn-herramienta.activa {
    border-color: #3c8dbc !important;
    background: #ebf5fb !important;
    color: #1b4f72 !important;
    font-weight: bold;
    box-shadow: 0 0 0 3px rgba(60, 141, 188, 0.3);
}

/* Botones específicos de herramienta */
.btn-herramienta[data-tipo="ASIENTO"] .badge-tool { background: #00a65a; }
.btn-herramienta[data-tipo="CONDUCTOR"] .badge-tool { background: #34495e; }
.btn-herramienta[data-tipo="COPILOTO"] .badge-tool { background: #00c0ef; }
.btn-herramienta[data-tipo="PASILLO"] .badge-tool { background: #95a5a6; }
.btn-herramienta[data-tipo="VACIO"] .badge-tool { background: #e2e8f0; color: #666; }
.btn-herramienta[data-tipo="BANO"] .badge-tool { background: #3c8dbc; }
.btn-herramienta[data-tipo="ESCALERA"] .badge-tool { background: #f39c12; }
.btn-herramienta[data-tipo="PUERTA"] .badge-tool { background: #d81b60; }

.badge-tool {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 5px;
    vertical-align: middle;
}

/* Panel de control */
.panel-controles-editor {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.tarjeta-resumen {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 15px;
    border-left: 4px solid #00a65a;
}