/* ============== ESTILOS GENERALES ============== */
.content-section { padding: 3rem 1.5rem; color: #fff; }
#presupuestos { padding-top: 5rem; }
#ley-disciplina, #inventario, #cuentas-publicas { scroll-margin-top: 100px; }

.styled-panel {
    background: rgba(14, 21, 37, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 3rem;
}
.styled-panel h2 {
    color: #f39323;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.25rem;
    border-bottom: 2px solid #f39323;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
}
.styled-panel p, .styled-panel .intro-text { color: #d1d5db; line-height: 1.7; font-size: 1.05rem; margin-bottom: 1rem; }

/* ============== BOTONES ============== */
.btn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.btn-download-year {
    display: block; padding: 0.75rem 1rem; background: #f39323; color: #111;
    text-decoration: none; font-family: 'Montserrat', sans-serif; font-weight: 700;
    border-radius: 8px; text-align: center; transition: all 0.3s ease;
}
.btn-download-year:hover:not(.btn-disabled) { background: #fff; box-shadow: 0 0 15px rgba(243,147,35,0.6); }

/* ============== TOOLTIP PARA BOTONES SIN ENLACE ============== */
.btn-disabled {
    position: relative;
    cursor: not-allowed !important;
    opacity: 0.65;
}

.btn-disabled::after {
    content: "Sin información";
    position: absolute;
    bottom: 80%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(14, 21, 37, 0.95);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: var(--font-secondary, 'Montserrat');
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-disabled::before {
    content: "";
    position: absolute;
    bottom: 80%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(14, 21, 37, 0.95) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
    z-index: 10;
}

.btn-disabled:hover::after { opacity: 1; visibility: visible; bottom: calc(100% + 8px); }
.btn-disabled:hover::before { opacity: 1; visibility: visible; bottom: calc(100% - 4px); }

/* ============== ACORDEONES ============== */
.accordion-container { width: 100%; }
.accordion-trigger {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff; padding: 1rem 1.5rem; width: 100%; text-align: left;
    font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.1rem;
    border-radius: 8px; cursor: pointer; margin-top: 0.75rem; transition: background-color 0.3s ease;
}
.accordion-trigger:hover, .accordion-trigger.active { background: #f39323; color: #111; }
.accordion-trigger.active::after { content: ' \2212'; }
.accordion-trigger::after { content: ' \2b'; float: right; font-weight: bold; }

.accordion-panel {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out;
    background: rgba(10, 15, 28, 0.7); border-radius: 0 0 8px 8px;
    padding: 0 1.5rem; border: 1px solid rgba(255,255,255,0.08); border-top: none;
}
.accordion-panel.open { padding: 1.5rem; }

.nested-accordion { padding: 1rem 0; }
.nested-accordion .accordion-trigger { font-size: 1rem; background: rgba(255, 255, 255, 0.1); padding: 0.75rem 1.25rem; }
.nested-accordion .accordion-panel { background: rgba(0, 0, 0, 0.2); }

/* ============== GRIDS ============== */
.trimestre-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; padding: 0.5rem 0; }
.btn-download-trim {
    display: block; padding: 0.6rem 0.5rem; background: #eee; color: #222;
    text-decoration: none; font-family: 'Montserrat', sans-serif; font-weight: 700;
    font-size: 0.9rem; border-radius: 6px; text-align: center; transition: all 0.3s ease;
}
.btn-download-trim:hover:not(.btn-disabled) { background: #f39323; color: #111; }

.month-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.75rem; padding: 1rem 0; }
.btn-download-month {
    display: block; padding: 0.6rem 1rem; background: #eee; color: #333;
    text-decoration: none; font-family: sans-serif; font-weight: 600;
    font-size: 0.9rem; border-radius: 6px; text-align: left; transition: all 0.3s ease;
}
.btn-download-month:hover:not(.btn-disabled) { background: #f39323; color: #111; }
