@font-face {
    font-family: 'DINNext';
    src: url('../fonts/DINNextLTPro-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'DINNext';
    src: url('../fonts/DINNextLTPro-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'DINNext';
    src: url('../fonts/DINNextLTPro-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'DINNext';
    src: url('../fonts/DINNextLTPro-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

.ba-container {
    max-width: 997px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* 🔥 esto crea 2 filas */
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: -1px 7px 12px -3px rgba(181,171,171,0.75);
}

.ba-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap; /* responsive */
}

.ba-row > div {
    flex: 1; /* 🔥 clave */
    min-width: 200px;
}

.ba-row > div {
    flex: 1; /* 🔥 clave */
    min-width: 200px;
}

.select2-container {
    width: 100% !important;
}

.ba-select {
    width: 200px;
}

.ba-precio {
    width: 100%;
}

.ba-precio-select{
    width: 100%;
}

.ba-precio-valores {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-top: 5px;
}

#ba-buscar {
    background: #111;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.ba-actions {
    display: flex;
    justify-content: flex-end;
}

/*********** CUSTOM STYLES ************/
.select2-container--default .select2-selection--multiple .select2-selection__choice{
    color: #1E2120 !important;
    background-color: #F3E2C9 !important;
    font-size: 14px;
    padding: 4px 12px;
    font-family: "DIN Next LT Pro";
    font-weight: 400;
}

.select2-selection__choice__remove{
    color: #1E2120 !important;
}

/* CONTENEDOR PRINCIPAL */
.select2-container .select2-selection--multiple {
    min-height: 44px !important;
    height: auto !important; /* 🔥 clave */
    display: flex;
    flex-wrap: wrap; /* 🔥 permite que bajen */
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
}

/* TEXTO INPUT INTERNO */
.select2-container .select2-search--inline .select2-search__field {
    height: 30px;
    margin-top: 0;
}

/* AJUSTE DE TAGS (chips) */
.select2-selection__choice {
    margin-top: 2px !important;
}

/* SINGLE (por si luego usas select normal) */
.select2-container--default .select2-selection--single {
    height: 44px !important;
    display: flex;
    align-items: center;
}

/* TEXTO SINGLE */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px !important;
}

.ba-buscar {
    min-width: 310px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: #111;
    color: #fff;
    border: 1px solid #111;
    border-radius: 8px;

    height: 44px;
    padding: 0 18px;

    font-family: 'DINNext', sans-serif;
    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
}
/* hover */
.ba-buscar:hover {
    background: #000;
    border-color: #000;
}

/* icono */
.ba-buscar .ba-icon {
    display: flex;
    align-items: center;
}

.ba-row .select2-search__field{
    border: none !important;
}

.ba-autos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ba-auto-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
}

.ba-autos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ba-card {
    background: #fff;
    border: 1px solid #F6F6F6;
    border-radius: 14px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: -1px 7px 12px -3px rgba(181,171,171,0.75);
}

.ba-card:hover {
    transform: translateY(-5px);
}

.ba-card-img {
    text-align: center;
    padding: 0px 0px;
}

.ba-card-img img {
    max-width: 100%;
    height: auto;
}

.ba-card-body {
    padding: 15px;
}

.ba-card-body .ba-title {
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    margin: 0;
    font-family: "DIN Next LT Pro";
    color: #000;
}

.ba-meta {
    color: #8A8D90;
    font-family: "DIN Next LT Pro";
    font-size: 16px;
    margin: 5px 0 10px;
}

.ba-precio {
    font-size: 25px;
    font-weight: 400;
    margin-top: 10px;
    letter-spacing: 2.013px;
    text-transform: uppercase;
}

.ba-precio-tachado {
    font-family: "DIN Next LT Pro";
    color: #e53935;
    text-decoration: line-through;
    font-size: 16px;
    font-weight: 400;
}

.ba-extra {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #555;
}

.ba-sucursal {
    background: #eaeaea;
    padding: 3px 8px;
    border-radius: 6px;
}

.ba-direccion {
    font-size: 11px;
}

.ba-precio-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ba-old {
    font-size: 13px;
    color: #e53935;
    text-decoration: line-through;
}

.ba-precio {
    font-size: 20px;
    font-weight: bold;
    color: #111;
}

.ba-card-body {
    padding: 15px;
}

/* fila superior */
.ba-card-body > .ba-card-col-info,
.ba-card-body > .ba-card-col-logo {
    display: inline-block;
    vertical-align: top;
}

/* contenedor horizontal */
.ba-card-body {
    display: flex;
    flex-direction: column;
}

/* fila header */
.ba-card-body .ba-card-col-info {
    flex: 1;
}

/* wrapper header */
.ba-card-body > .ba-card-col-info,
.ba-card-body > .ba-card-col-logo {
    display: flex;
}

/* 🔥 CLAVE */
.ba-card-body {
    gap: 10px;
}

/* header (nombre + logo) */
.ba-card-body {
    display: flex;
}

.ba-card-body > .ba-card-col-info {
    flex: 1;
}

.ba-card-body > .ba-card-col-logo {
    justify-content: flex-end;
    align-items: flex-start;
}

/* tamaño logo */
.ba-logo img {
    max-width: 60px;
    height: auto;
}

.ba-card-body {
    display: flex;
    flex-direction: column;
}

.ba-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ba-bono {
    color: #1b8f3a;
    font-size: 14px;
    margin-top: 5px;
}

/* footer badges */
.ba-footer {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

/* ciudad */
.ba-ciudad {
    background: #EFF0F0;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: #1E2120;
    font-size: 16px;
    font-weight: 400;
}

/* categoria */
.ba-badge {
    background: #e6d3b3;
    color: #8a5a00;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 24px;
}

/* base */
.ba-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* AUTO DEMO */
.badge-demo {
    background: #F3E2C9;
    color: #8F4700;
}

/* SEMINUEVO */
.badge-seminuevo {
    background: #E6594B;
    color: #fff;
}

/* NUEVO */
.badge-nuevo {
    background: #007CFF;
    color: #CBE2F9;
}

.ba-card-img {
    position: relative;
}

.ba-tipo-uso {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 11px;
    z-index: 2;
    box-shadow: -1px 7px 12px -3px rgba(181, 171, 171, 0.75);
}

.ba-tipo-uso img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.ba-oferta-rapida {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 3;
}

.ba-oferta-rapida img {
    display: block;
    max-width: 120px; /* ajusta según diseño */
}

/* WRAPPER GENERAL */
.ba-admin-promos {
    max-width: 1100px;
}

/* CARD */
.ba-admin-promos .ba-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

/* GRID */
.ba-admin-promos .ba-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

/* FULL */
.ba-admin-promos .ba-full {
    grid-column: span 2;
}

/* LABEL */
.ba-admin-promos .ba-field label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #333;
}

/* INPUTS */
.ba-admin-promos .ba-field input,
.ba-admin-promos .ba-field textarea,
.ba-admin-promos .ba-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 14px;
    transition: .2s;
}

/* FOCUS */
.ba-admin-promos .ba-field input:focus,
.ba-admin-promos .ba-field textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
    outline: none;
}

/* BOTÓN */
.ba-admin-promos .ba-btn-primary {
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: .2s;
}

.ba-admin-promos .ba-btn-primary:hover {
    background: #005f8d;
}

/* CHECKBOX */
.ba-admin-promos .ba-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* TABLA */
.ba-admin-promos .ba-table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

/* HEAD */
.ba-admin-promos .ba-table thead {
    background: #f5f7fa;
}

/* CELDAS */
.ba-admin-promos .ba-table th,
.ba-admin-promos .ba-table td {
    padding: 10px;
}

@media (max-width: 768px) {

    .post-container {
        display: flex;
        flex-direction: column !important;
    }

    .post-content,
    .post-sidebar {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

}

