:root {
    /* Tipografía y Color Base */
    --pico-font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --pico-font-size: 16px;
    /* Legibilidad base */
    --pico-line-height: 1.6;
    --pico-background-color: #f9fafb;
    /* Gris muy suave (Anti-fatiga) */
    --pico-color: #374151;
    /* Gris oscuro suave, no negro puro */

    /* Colores de Marca (Elegante y Profesional) */
    --pico-primary: #2563eb;
    /* Azul sólido, profesional */
    --pico-primary-background: #2563eb;
    --pico-primary-hover: #1d4ed8;
    --pico-primary-inverse: #ffffff;

    /* Tarjetas y Contenedores (Estilo GSC) */
    --pico-card-background-color: #ffffff;
    --pico-card-border-color: #e5e7eb;
    --pico-card-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --pico-border-radius: 0.5rem;
    /* 8px - Moderno pero serio */

    /* Formularios (Ergonomía Mobile) */
    --pico-form-element-spacing-vertical: 0.75rem;
    /* Touch friendly */
    --pico-form-element-spacing-horizontal: 1rem;
    --pico-form-element-border-color: #d1d5db;
    --pico-form-element-active-border-color: var(--pico-primary);
    --pico-form-element-focus-color: rgba(37, 99, 235, 0.125);
}

/* Ajustes Globales de Utilidad */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

/* Ajustes Mobile-First */
@media (max-width: 768px) {
    :root {
        --pico-font-size: 15px;
        /* Ajuste leve para pantallas pequeñas */
    }

    /* Contenedores full width en móvil para aprovechar espacio */
    .container,
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Helpers de Texto Moderno */
.text-center {
    text-align: center;
}

.text-muted {
    color: #6b7280;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

/* Botones Modernos */
button,
.btn {
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Grid Utilities */
@media (min-width: 992px) {
    .grid-2-1 {
        grid-template-columns: 2fr 1fr;
    }
}

/* Dashboard Cards (Google Search Console Style) */
.card-stat {
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-card-border-color);
    border-radius: var(--pico-border-radius);
    box-shadow: var(--pico-card-box-shadow);
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-stat header {
    margin-bottom: 1rem;
}

.card-stat small {
    font-weight: 500;
    color: #6b7280;
    font-size: 0.875rem;
}

.card-stat strong {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

/* Progress Bars Customization */
progress {
    height: 0.5rem;
    border-radius: 999px;
    background-color: #f3f4f6;
    /* Gris muy claro de fondo */
}

progress::-webkit-progress-bar {
    background-color: #f3f4f6;
    border-radius: 999px;
}

progress::-webkit-progress-value {
    border-radius: 999px;
    transition: width 0.3s ease;
}

progress::-moz-progress-bar {
    border-radius: 999px;
}

/* Colores Semánticos para Progress */
progress.danger::-webkit-progress-value {
    background-color: #ef4444;
}

progress.danger::-moz-progress-bar {
    background-color: #ef4444;
}

progress.danger {
    color: #ef4444;
}

progress.success::-webkit-progress-value {
    background-color: #10b981;
}

progress.success::-moz-progress-bar {
    background-color: #10b981;
}

progress.success {
    color: #10b981;
}

/* Utilidades Flexbox (si no están en Pico) */
.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.text-muted {
    color: var(--pico-muted-color);
}

.mb-4 {
    margin-bottom: 1rem;
}

.pb-2 {
    padding-bottom: 0.5rem;
}

.border-b {
    border-bottom: 1px solid var(--pico-card-border-color);
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

/* Tabs Navigation (Google Search Console Style) */
.tabs-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--pico-card-border-color);
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
}

.tabs-nav ul::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.tabs-nav li {
    margin-right: 1.5rem;
    white-space: nowrap;
}

.tabs-nav a {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 0;
    color: #6b7280;
    /* Neutral 500 */
    text-decoration: none;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.tabs-nav a i {
    margin-right: 0.5rem;
}

.tabs-nav a:hover {
    color: var(--pico-primary);
}

.tabs-nav a.active {
    color: var(--pico-primary);
    border-bottom-color: var(--pico-primary);
}

.tabs-nav .badge {
    margin-left: 0.5rem;
    background-color: #f3f4f6;
    color: #374151;
    font-size: 0.75rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
}