:root {
    --primary-teal: #26a69a;
    --primary-teal-hover: #00897b;
    --primary-teal-light: #f0fdfa;
    --dark-blue: #1e293b; /* Tono azul pizarra más claro y premium */
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-premium: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 8px 15px -6px rgba(0, 0, 0, 0.02);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    color: var(--text-main);
    line-height: 1.6;
    padding: 60px 20px 40px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.page-wrapper {
    width: 100%;
    max-width: 1060px;
}

/* Header Area */
.main-page-header {
    text-align: center;
    margin-bottom: 50px;
}

.brand-logo {
    height: 95px;
    width: auto;
    margin: 0 auto 24px;
    display: block;
}

.main-page-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark-blue);
    letter-spacing: -0.025em;
    margin-bottom: 0;
}

.disclaimer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: rgba(38, 166, 154, 0.08); /* Soft translucent teal badge */
    border: 1px solid rgba(38, 166, 154, 0.2);
    color: var(--primary-teal-hover);
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
    box-shadow: 0 4px 10px rgba(38, 166, 154, 0.04);
    transition: var(--transition);
}

/* Dashboard Container */
.dashboard-container {
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    animation: fadeIn 0.8s ease-out;
}

.navigation-bar {
    margin-bottom: 24px;
    display: flex;
    justify-content: center; /* Centrado */
    width: 100%;
}

/* Filter Bar / Controls */
.filter-section {
    width: 100%; /* Ancho completo */
}

.select-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

#year-select {
    width: 100%;
    background: var(--dark-blue); /* Fondo negro premium */
    border: 2px solid transparent;
    color: #ffffff; /* Texto blanco */
    padding: 16px 45px 16px 20px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: var(--transition);
    text-align: center;
}

#year-select:hover {
    background-color: #1e293b; /* Efecto hover del botón */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(15, 23, 42, 0.2);
}

.select-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff; /* Chevron blanco */
    pointer-events: none;
    font-size: 16px;
    display: flex;
    align-items: center;
}

/* Buttons */
.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--dark-blue); /* Retorno al color oscuro premium */
    color: white;
    padding: 16px 26px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    border: 2px solid transparent;
    width: 100%;
    box-sizing: border-box;
}

.btn-back:hover {
    background: #334155; /* Soft slate-700 gray-blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 41, 59, 0.15);
}

/* Table Styles */
.table-container {
    padding: 0;
    overflow-x: auto;
    animation: fadeIn 0.4s ease-out;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    background-color: var(--primary-teal);
    color: white;
    text-align: center;
    padding: 20px 15px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table tbody tr:nth-child(even) {
    background-color: #f8fafc; /* Alternancia intercalada */
}

.data-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.data-table tbody td {
    padding: 18px 15px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.data-table tbody tr:hover {
    background-color: #e2f2f0 !important; /* Soft highlight en hover */
}

.category {
    font-weight: 800;
    color: var(--dark-blue) !important;
}

.highlight {
    font-weight: 700;
    color: var(--dark-blue);
}

.status-high {
    font-weight: 800;
}

.btn-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
    border: 1.5px solid var(--primary-teal);
    color: var(--primary-teal);
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-details:hover {
    background-color: var(--primary-teal);
    color: white;
}

/* Alignments */
.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

/* Footer */
.main-footer {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
}

.footer-text {
    font-size: 12px;
    color: var(--text-muted);
}

/* Custom Select Dropdown Premium */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
}

.custom-select-trigger {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    background: var(--dark-blue);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.custom-select-trigger:hover {
    background-color: #334155; /* Soft slate-700 gray-blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 41, 59, 0.15);
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 4px rgba(38, 166, 154, 0.15);
}

.custom-select-wrapper .select-chevron {
    transition: transform 0.3s ease;
    font-size: 16px;
}

.custom-select-wrapper.open .select-chevron {
    transform: rotate(180deg); /* Animación rotativa de flecha */
}

.custom-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background-color: var(--primary-teal-light);
    color: var(--primary-teal-hover);
}

.custom-option.selected {
    background-color: var(--primary-teal);
    color: #ffffff;
}

/* Mobile */
@media (max-width: 768px) {
    .main-page-header h1 { font-size: 28px; }
    .brand-logo { height: 75px; }
    .data-table thead th, .data-table tbody td { padding: 15px 10px; font-size: 12px; }
}
