/* Paleta de Colores y Variables */
:root {
    --primary-color: #1a4371; /* Azul corporativo agro */
    --accent-color: #2e7d32;  /* Verde campo */
    --bg-light: #f8f9fa;
    --text-muted: #6c757d;
}

body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: var(--bg-light);
}

/* --- CABECERA & NAVBAR --- */
.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e9ecef;
    padding: 0.5rem 1.5rem;
}

.brand-logo { 
    height: 70px; 
    transition: transform 0.3s;
}

.brand-logo:hover { transform: scale(1.05); }
/* Estilos para el Título de la Marca */
.brand-text {
    line-height: 1.1; /* Ajusta el espacio entre líneas para que estén compactas */
}

/* Grosor principal (Negrita) */
.brand-main {
    display: block;
    font-weight: 700; /* Letra gruesa */
    font-size: 1.9rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

/* Grosor secundario (Fino/Regular) */
.brand-main-s {
    display: block;
    font-weight: 400; /* Letra más fina */
    font-size: 1.1rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.brand-main-t {
    display: block;
    font-weight: 700; /* Letra gruesa */
    font-size: 1.4rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

/* Mantenemos el color verde para la tercera línea */
.text-green {
    color: var(--accent-color) !important;
}

.brand-tagline {
    display: block;
    font-size: 0.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    font-weight: 400;
}

.nav-link-custom {
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 20px !important;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link-custom:hover {
    background-color: rgba(26, 67, 113, 0.05);
    color: var(--accent-color);
}

/* --- FOOTER --- */
.main-footer {
    background-color: #ffffff;
    border-top: 1px solid #e9ecef;
    color: #495057;
    padding: 60px 0 30px 0;
    margin-top: 80px;
}

.footer-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-icon-circle {
    width: 35px;
    height: 35px;
    background: #f1f4f8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    color: var(--primary-color);
    transition: 0.3s;
}

.footer-link:hover .footer-icon-circle {
    background: var(--accent-color);
    color: #fff;
}

.copyright-bar {
    background-color: #f8f9fa;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #e9ecef;
    font-size: 0.85rem;
    color: #adb5bd;
}

/* --- COMPONENTES --- */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}
/* --- NAVEGACIÓN POR PESTAÑAS DELICADAS --- */
.card-header-pills {
    border-bottom: 1px solid #e9ecef; /* Línea base sutil */
    margin-bottom: 0;
    padding-bottom: 0;
}

.nav-pills .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    background-color: transparent !important;
    border-radius: 0; /* Quitamos el redondeado de botón */
    border-bottom: 3px solid transparent; /* Indicador invisible por defecto */
    padding: 10px 20px;
    margin-right: 10px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

/* Estado Activo: Solo una línea inferior y cambio de peso de fuente */
.nav-pills .nav-link.active {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color) !important; /* Línea inferior azul */
    font-weight: 700;
    box-shadow: none !important; /* Eliminamos la sombra de botón */
}

/* Estado Hover: Un toque sutil antes de hacer clic */
.nav-pills .nav-link:hover:not(.active) {
    color: var(--accent-color) !important;
    border-bottom-color: #e9ecef;
}
/* Estilo para el contenedor de botones */
.dt-buttons.btn-group {
    margin-bottom: 0px;
    gap: 5px; /* Espaciado entre botones */
}

/* Botón Copiar - Usando tu --primary-color */
.btn-exportar-copiar {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 6px 15px !important;
    font-size: 0.85rem !important;
    transition: opacity 0.3s !important;
}

/* Botón Excel - Usando tu --accent-color */
.btn-exportar-excel {
    background-color: var(--accent-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 6px 15px !important;
    font-size: 0.85rem !important;
    transition: opacity 0.3s !important;
}

.btn-exportar-copiar:hover, .btn-exportar-excel:hover {
    opacity: 0.9;
    color: white !important;
}
/* Centrar encabezados y celdas de la tabla */
.display-table th, 
.display-table td {
    text-align: center !important;
    vertical-align: middle !important;
}

/* Opcional: Si quieres que la primera columna (Año) se mantenga resaltada 
   pero también centrada, ya tienes el <strong> en el PHP */
.display-table td:first-child {
    font-weight: 600;
}
/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    height: calc(100vh - 100px); /* Ajusta según el alto de tu header */
    background: url('fondo.jpg') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Capa oscura para dar contraste al texto */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.text-green-agro {
    color:rgba(4, 32, 85, 0.6); /* Capa oscura para dar contraste al texto */
}

.btn-agro-lg {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-agro-lg:hover {
    background-color: #246628;
    color: white;
}

.btn-outline-light-lg {
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}