/* ===== Tarjetas genéricas ===== */
.card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(20, 23, 26, .05);
}

/* Tarjetas con acción (scooter para reservar, plan para suscribirse): se elevan al pasar el mouse */
.scooter-card,
.plan-pick-list .card {
    transition: transform .18s ease, box-shadow .18s ease;
}

.scooter-card:hover,
.plan-pick-list .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(20, 23, 26, .10);
}

/* ===== Tablas (admin) ===== */
table.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(20, 23, 26, .04);
}

table.table th,
table.table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-size: .9rem;
}

table.table th {
    font-family: var(--font-mono);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-soft);
    background: var(--paper);
}

table.table tbody tr {
    transition: background-color .12s ease;
}

table.table tbody tr:hover {
    background-color: var(--paper);
}

table.table tr:last-child td {
    border-bottom: none;
}

table.table td.actions {
    display: flex;
    gap: 8px;
}

/* Iconos delante de "Editar" y "Eliminar" en tablas y listados (sin tocar los templates) */
a[href*="/editar/"]::before,
form[action*="/eliminar/"] button.btn-danger::before {
    content: '';
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

a[href*="/editar/"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314171A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z'/%3E%3C/svg%3E");
}

form[action*="/eliminar/"] button.btn-danger::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E4572E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3C/svg%3E");
}

.empty-state {
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 32px;
    padding-top: 68px;
    position: relative;
    text-align: center;
    color: var(--ink-soft);
}

.empty-state::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    opacity: .4;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A4F55' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l2-4h14l2 4'/%3E%3Cpath d='M3 7v11a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V7'/%3E%3Cpath d='M3 7h18'/%3E%3Cpath d='M9 11h6'/%3E%3C/svg%3E");
}

/* ===== Valores estadísticos (panel admin) ===== */
.stat-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.2rem;
}

.stat-value--mono {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--route);
}

.stat-value--sm {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.8rem;
    margin-top: 10px;
}

/* ===== Selector de plan (suscripciones) ===== */
.plan-pick-list {
    display: grid;
    gap: 14px;
}

.plan-pick__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
}

.plan-pick__meta {
    font-family: var(--font-mono);
    color: var(--ink-soft);
    font-size: .85rem;
}

.plan-pick__price {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--route);
}
