/* ============================================================
   ml-overrides.css — ChinaImport (estilo MercadoLibre)
   ============================================================ */

/* ===== TIPOGRAFÍA GLOBAL (Proxima Nova / Inter fallback) ===== */
body, html {
    font-family: 'Inter', 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
    line-height: 1.4;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Inter', 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.2px;
}

h2, .h2 { font-size: 17px !important; }
h3, .h3 { font-size: 15px !important; }
h4, .h4 { font-size: 14px !important; }
h5, .h5 { font-size: 13px !important; }
h6, .h6 { font-size: 12px !important; }

/* ===== ESPACIADO GLOBAL COMPACTO ===== */
.section,
.section-padding {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.section-pb { padding-bottom: 12px !important; }
.section-pt { padding-top: 12px !important; }

/* ===== HERO ===== */
#static-hero-desktop {
    height: 260px !important;
    min-height: unset !important;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: 4px 0 !important;
    margin-bottom: 6px !important;
    font-size: 11px !important;
}

/* ===== PAGINACION ===== */
.pagination {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

/* ===== FOOTER ===== */
.footer-area {
    padding-top: 16px !important;
    padding-bottom: 8px !important;
}

/* ===== HEADINGS DE SECCIÓN ===== */
.section-title h2,
.section-title .title {
    font-size: 17px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    letter-spacing: -0.2px !important;
}

/* ===== BOTONES — estilo ML (cuadrados, compactos) ===== */
.btn {
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    letter-spacing: 0 !important;
}

.btn-sm {
    padding: 3px 8px !important;
    font-size: 12px !important;
}

.btn-primary, .btn-outline-primary {
    border-radius: 4px !important;
}

/* Excepción: botones pill (rounded-pill) quedan redondeados */
.btn.rounded-pill {
    border-radius: 50px !important;
}

/* ===== BADGES ===== */
.badge {
    font-size: 10px !important;
    padding: 2px 5px !important;
    font-weight: 600 !important;
    border-radius: 3px !important;
}

/* ===== TABLAS COMPACTAS ===== */
.table td, .table th {
    padding: 5px 8px !important;
    vertical-align: middle !important;
    font-size: 13px !important;
}

.table { margin-bottom: 10px !important; }

/* ===== NAVBAR COMPACTO ===== */
.navbar {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

.navbar-brand { font-size: 15px !important; }

.nav-link {
    padding: 5px 8px !important;
    font-size: 13px !important;
}

/* ===== FORMULARIOS ===== */
label {
    margin-bottom: 3px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.form-control,
input.form-control,
select.form-control,
textarea.form-control {
    height: auto !important;
    padding: 5px 8px !important;
    font-size: 13px !important;
    border-radius: 4px !important;
}

/* ===== CARDS — estilo ML ===== */
.card {
    margin-bottom: 8px !important;
    border-radius: 6px !important;
    border: 1px solid #e5e5e5 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06) !important;
}

.card-body { padding: 10px !important; }

/* ===== LISTAS ===== */
.list-group-item {
    padding: 7px 10px !important;
    font-size: 13px !important;
}

/* ===== DROPDOWN MENUS ===== */
.dropdown-menu {
    padding: 4px !important;
    border-radius: 6px !important;
}

.dropdown-item {
    padding: 5px 10px !important;
    font-size: 12px !important;
    border-radius: 4px !important;
}

/* ===== MODALS COMPACTOS ===== */
.modal-header  { padding: 10px 14px !important; }
.modal-body    { padding: 14px !important; }
.modal-footer  { padding: 10px 14px !important; }

/* ===== ALERT ===== */
.alert {
    padding: 8px 12px !important;
    font-size: 12px !important;
    border-radius: 4px !important;
}

/* ===== PRICE — texto precio estilo ML ===== */
.h4.fw-bold.text-primary {
    font-size: 18px !important;
    font-weight: 600 !important;
    letter-spacing: -0.3px !important;
}

/* ===== GAP reducido en grids ===== */
.row.g-4 {
    --bs-gutter-x: 0.6rem !important;
    --bs-gutter-y: 0.6rem !important;
}

.row.g-3 {
    --bs-gutter-x: 0.5rem !important;
    --bs-gutter-y: 0.5rem !important;
}

/* ===== PRODUCTO: eliminar espacios de sección ===== */
.container.pb-5 { padding-bottom: 1rem !important; }
.container.py-5 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-5 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-4 { padding-top: 0.6rem !important; padding-bottom: 0.6rem !important; }
.pb-5 { padding-bottom: 1rem !important; }
.mb-4 { margin-bottom: 0.6rem !important; }
.mb-3 { margin-bottom: 0.4rem !important; }
.p-4  { padding: 0.75rem !important; }
.p-3  { padding: 0.5rem !important; }
.mt-8 { margin-top: 1.5rem !important; }
.py-8 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
