/* ============================================================
   BASE GLOBAL
============================================================ */

body {
    background: #f5f6f8;
}

.navbar-brand {
    font-weight: bold;
}

/* Encabezados */
h2, h4 {
    letter-spacing: -0.5px;
}

/* Encabezado principal más grande */
@media (max-width: 575px) {
    h2 {
        font-size: 2.2rem !important;
    }
    .encabezado-sub {
        font-size: 1.25rem !important;
        line-height: 1.4 !important;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    h2 {
        font-size: 2.4rem !important;
    }
    .encabezado-sub {
        font-size: 2rem !important;
    }
	
}

/* ============================================================
   CONTENEDOR MOBILE-FIRST GLOBAL
============================================================ */

@media (max-width: 991px) {
    .contenedor-logistica {
        padding-left: 8px !important;
        padding-right: 8px !important;
        max-width: 100% !important;
    }
}

@media (min-width: 992px) {
    .contenedor-logistica {
        max-width: 1140px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ============================================================
   BOTONES ESTILO GITHUB / LOGÍSTICA
============================================================ */

.btn-github,
.btn-logistica {
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    color: #24292f;
    transition: all 0.15s ease;
    text-decoration: none !important;
}

.btn-github:hover,
.btn-logistica:hover {
    background: #f3f4f6;
    border-color: #b9c1c9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.btn-github-primary,
.btn-logistica-primary {
    background: #2da44e;
    border-color: #2c974b;
    color: white !important;
}

.btn-github-danger,
.btn-logistica-danger {
    background: #cf222e;
    border-color: #a40e26;
    color: white !important;
}

/* Botón naranja */
.btn-github-warning {
    background: #f39c12 !important;
    border-color: #d68910 !important;
    color: #fff !important;
}
.btn-github-warning:hover {
    background: #e67e22 !important;
    border-color: #ca6f1e !important;
}

/* ============================================================
   ACCIONES RÁPIDAS — MOBILE FIRST POR RANGOS
============================================================ */

/* RANGO 1 — MÓVIL VERTICAL (0–575px) */
@media (max-width: 575px) {

    .acciones-rapidas {
        gap: 16px !important;
    }

    .acciones-rapidas a.btn-github,
    .acciones-rapidas a.btn-logistica {
        width: 100% !important;
        justify-content: center !important;
        padding: 22px 26px !important;
        font-size: 1.45rem !important;
        font-weight: 700 !important;
        border-radius: 14px !important;
    }

    .acciones-rapidas a i {
        font-size: 1.9rem !important;
    }
}

/* RANGO 2 — MÓVIL HORIZONTAL / TABLET VERTICAL (576–991px) */
@media (min-width: 576px) and (max-width: 991px) {

    .acciones-rapidas {
        gap: 14px !important;
    }

    .acciones-rapidas a.btn-github,
    .acciones-rapidas a.btn-logistica {
        width: 100% !important;
        justify-content: center !important;
        padding: 18px 22px !important;
        font-size: 1.25rem !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
    }

    .acciones-rapidas a i {
        font-size: 1.6rem !important;
    }
}

/* ============================================================
   TÍTULOS DE SECCIÓN (Acciones rápidas / Resumen)
============================================================ */

@media (max-width: 575px) {
    h4 {
        font-size: 1.55rem !important;
        font-weight: 700 !important;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    h4 {
        font-size: 1.7rem !important;
    }
}

/* ============================================================
   TABLAS ESTILO GITHUB
============================================================ */

.table-github thead {
    background: #f6f8fa;
    border-bottom: 2px solid #d0d7de;
}

.table-github tbody tr:hover {
    background: #f3f4f6;
}

/* Texto más grande en tabla de resumen */
@media (max-width: 991px) {
    .table-github th {
        font-size: 1.25rem !important;
    }
    .table-github td {
        font-size: 1.15rem !important;
        padding: 14px 12px !important;
    }
}

/* ============================================================
   TARJETAS DEL PANEL (MOBILE-FIRST POR RANGOS)
============================================================ */

.tarjeta-panel .card {
    border-radius: 14px;
    padding: 4px;
}

/* RANGO 1 — MÓVIL VERTICAL (0–575px) */
@media (max-width: 575px) {
    .tarjeta-panel .card-body {
        padding: 26px 10px !important;
    }
    .tarjeta-panel i {
        font-size: 3.2rem !important;
    }
    .tarjeta-panel h5 {
        font-size: 1.4rem;
        margin-top: 10px;
    }
    .tarjeta-panel p {
        font-size: 2.4rem;
    }
}

/* RANGO 2 — MÓVIL HORIZONTAL / TABLET VERTICAL (576–991px) */
@media (min-width: 576px) and (max-width: 991px) {
    .tarjeta-panel .card-body {
        padding: 24px 10px !important;
    }
    .tarjeta-panel i {
        font-size: 4rem !important;
    }
    .tarjeta-panel h5 {
        font-size: 2rem;
        margin-top: 10px;
    }
    .tarjeta-panel p {
        font-size: 2.8rem;
    }
}

/* RANGO 3 — TABLET HORIZONTAL (992–1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .tarjeta-panel .card-body {
        padding: 20px 10px !important;
    }
    .tarjeta-panel i {
        font-size: 3rem !important;
    }
    .tarjeta-panel h5 {
        font-size: 1.4rem;
        margin-top: 8px;
    }
    .tarjeta-panel p {
        font-size: 2rem;
    }
}

/* ============================================================
   TABLA → CARDS EN MÓVIL (OPTIMIZADO)
============================================================ */

@media (max-width: 576px) {
    .tabla-mobile-card table {
        display: none;
    }

    .tabla-mobile-card .card-mobile {
        display: block;
        background: #ffffff;
        border: 1px solid #d0d7de;
        border-radius: 12px;
        padding: 16px 18px;
        margin-bottom: 14px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }

    .card-mobile .item {
        margin-bottom: 10px;
    }

    .card-mobile .label {
        font-size: 0.95rem !important;
        color: #6e7781;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        font-weight: 700 !important;
    }

    .card-mobile .value {
        font-size: 1.35rem !important;
        font-weight: 700 !important;
        color: #24292f;
        margin-top: 2px;
    }

    .card-mobile .item:last-child {
        margin-bottom: 0;
    }
}

@media (min-width: 577px) {
    .tabla-mobile-card .card-mobile {
        display: none;
    }
}
/* ============================================================
   FIX DEFINITIVO — BOTONES GRANDES EN MOBILE-FIRST
============================================================ */

/* MÓVIL VERTICAL (0–575px) */
@media (max-width: 575px) {

    .acciones-rapidas a.btn-github,
    .acciones-rapidas a.btn-logistica {
        font-size: 1.6rem !important;     /* tamaño real grande */
        font-weight: 700 !important;
        padding: 24px 28px !important;    /* más alto y más ancho */
        border-radius: 16px !important;
        line-height: 1.2 !important;
    }

    .acciones-rapidas a.btn-github i,
    .acciones-rapidas a.btn-logistica i {
        font-size: 2rem !important;       /* ícono grande */
    }
}

/* MÓVIL HORIZONTAL / TABLET VERTICAL (576–991px) */
@media (min-width: 576px) and (max-width: 991px) {

    .acciones-rapidas a.btn-github,
    .acciones-rapidas a.btn-logistica {
        font-size: 1.8rem !important;
        font-weight: 600 !important;
        padding: 20px 24px !important;
        border-radius: 14px !important;
    }

    .acciones-rapidas a.btn-github i,
    .acciones-rapidas a.btn-logistica i {
        font-size: 1.7rem !important;
    }
}
/* ============================================================
   ACCIONES RÁPIDAS — TARJETAS (NUEVO SISTEMA)
============================================================ */

.acciones-rapidas-cards {
    display: grid;
    gap: 20px;
}

/* 1 columna en móvil */
@media (max-width: 575px) {
    .acciones-rapidas-cards {
        grid-template-columns: 1fr;
    }
}

/* 2 columnas en tablet vertical */
@media (min-width: 576px) and (max-width: 991px) {
    .acciones-rapidas-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 3 columnas en escritorio */
@media (min-width: 992px) {
    .acciones-rapidas-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tarjeta base */
.card-accion {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 20px;
    border: 1px solid #d0d7de;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

/* Hover */
.card-accion:hover {
    background: #f6f8fa;
    border-color: #b9c1c9;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Icono */
.card-accion i {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

/* Título */
.card-accion-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #24292f;
    margin-bottom: 4px;
}

/* Subtítulo */
.card-accion-sub {
    font-size: 1rem;
    color: #6e7781;
}

/* Colores corporativos */
.card-accion.green i { color: #2da44e; }
.card-accion.orange i { color: #f39c12; }
.card-accion.red i { color: #cf222e; }
/* Color azul para historial */
.card-accion.blue i {
    color: #0d6efd; /* azul bootstrap */
}
/* FORZAR 4 COLUMNAS EN ESCRITORIO */
@media (min-width: 992px) {
    .acciones-rapidas-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}