*{
    margin: 0;
    padding: 0;
    font-family: "parrafos";
}

@font-face {
    font-family: "titulo";
    src: url(font/HammersmithOne-Regular.ttf)
}
@font-face {
    font-family: "Parrafos";
    src: url(font/Roboto-Bold.ttf);
}
@font-face {
    font-family: "LeagueSpartan";
    src: url(font/LeagueSpartan-VariableFont_wght.ttf);
}
@font-face {
    font-family: "Banner";
    src: url(font/Roboto-Medium.ttf);
}
/* =========================
   HEADER Y MENÚ
========================= */
header {
    height: 140px;
    background-color: #3698D4;
    padding: 0 50px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#check, .modal-toggle {
    display: none;
}

.menu a, .menu .tramiteA {
    color: white;
    text-decoration: none;
    font-family: "LeagueSpartan", sans-serif;
    padding: 0 10px;
    transition: 0.4s;
    font-size: 18px;
}

.mostrar-menu, .esconder-menu {
    font-size: 30px;
    cursor: pointer;
    display: none; 
    transition: 0.4s;
}

.mostrar-menu {
    order: 1;
}

.menu a:hover, .menu .tramiteA:hover, .mostrar-menu:hover, .esconder-menu:hover {
    color: #545454;
}

.menu .tramite-desplegable {
    position: relative;
    display: inline-block;
}

/* =========================
   SUBMENÚS (DESPLEGABLES)
========================= */
.menu .subtramites {
    display: none;
    position: absolute;
    background-color: #3698D4;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10;
}

.menu .subtramites a, .menu .subtramites .subtramite {
    font-family: "LeagueSpartan", sans-serif;
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: 0.4s;
    font-size: 18px;
    cursor: pointer;
}

.menu .subtramites a:hover, .menu .subtramites .subtramite:hover {
    background-color: #545454;
}

.menu .tramite-desplegable:hover .subtramites {
    display: block;
}

/* =========================
   MODALES DE CONTACTO
========================= */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(3px);
}

.modal-toggle:checked + .modal {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.modal-content {
    position: relative;
    font-family: "Parrafos", sans-serif;
    background: #fff;
    width: 90%;
    max-width: 450px; /* Un poco más ancho para que entren bien los correos largos */
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,.25);
    animation: modalFade .25s ease;
    color: #545454;
    z-index: 2;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #3698D4;
    font-family: "LeagueSpartan", sans-serif;
    font-size: 28px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    font-size: 24px;
    color: #3698D4;
    min-width: 24px;
    text-align: center;
}

.contact-item span,
.contact-item a {
    font-size: 16px;
    word-break: break-word; 
}


.modal-content a {
    color: #545454 !important; 
    text-decoration: none !important;
    font-weight: 600 !important;
    display: inline !important; 
    padding: 0 !important; 
    background-color: transparent !important; 
    transition: 0.3s;
}

.modal-content a:hover {
    text-decoration: underline !important; 
    color: #3698D4 !important; 
}


.modal-content a.wsp-link {
    color: #25D366 !important; 
    background-color: rgba(37, 211, 102, 0.1) !important; 
    padding: 4px 12px !important;
    border-radius: 20px !important; 
    display: inline-block !important; 
    font-size: 15px !important;
}

.modal-content a.wsp-link:hover {
    background-color: #25D366 !important; 
    color: white !important; 
    text-decoration: none !important;
}

.close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    transition: .3s;
    line-height: 1;
}

.close:hover {
    color: #e53935;
}

/* balances*/

.balances-intro {
    max-width: 900px;
    margin: 0 auto 60px auto;
    text-align: center;
}

.balances-lead {
    font-size: 20px;
    font-weight: 600;
    color: #1d2b4f;
    margin-bottom: 10px;
    font-family: "Titulo", sans-serif;
}

.balances-sub {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
}

.balances-hashtag {
    display: inline-block;
    background: linear-gradient(135deg, #2a84c0, #1d2b4f);
    color: white;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

#banner-balances {
    padding: 140px 20px 120px;
    background-image: 
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)
        ),
        url("img/balances-banner.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    color: white;
    position: relative;
}

.contenido-banner-balances {
    max-width: 900px;
    margin: 0 auto;
}

.banner-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #2a84c0;
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 25px;
}
#banner-balances h1 {
    font-family: "LeagueSpartan";
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

#banner-balances p {
    font-family: "Parrafos";
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.titulo_destacados{
    padding: 0px 50px;
    font-size: 20px;
    margin: 15px 0px;
    color: #545454;
}

#balances { 
    padding: 100px 20px; 
    background: #f5f7fb; 
    font-family: "Parrafos", sans-serif; 
}

.accordion { 
    max-width: 1100px; 
    margin: 0 auto 40px; 
}

.accordion-item { 
    background: white; 
    border-radius: 18px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.06); 
    overflow: hidden;
    transition: all 0.3s ease; 
    margin-bottom: 30px;

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

.accordion-header { 
    background: transparent; 
    color: #1d2b4f; 
    padding: 25px 30px; 
    font-size: 22px; 
    font-weight: 600;
    text-align: left; 
    border: none; 
    width: 100%; 
    cursor: pointer;
    font-family: "Titulo", sans-serif; 
    position: relative; 
}

.accordion-header::after { 
    content: "+"; 
    position: absolute; 
    right: 30px; 
    font-size: 22px; 
    transition: transform 0.3s ease; 
}

.accordion-item.open .accordion-header::after { 
    transform: rotate(45deg); 
}

.accordion-content { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.4s ease; 
    padding: 0 30px; 
}

.accordion-item.open .accordion-content { 
    padding-bottom: 30px; 
}

.month-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.month-list li { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 14px 0; 
    border-bottom: 1px solid #edf0f5; 
}

.month-list li:last-child { 
    border-bottom: none; 
}

.month-list span { 
    font-size: 15px; 
    color: #333; 
}

.view-btn { 
    background: #2a84c0; 
    color: white; 
    padding: 6px 16px; 
    border-radius: 30px; 
    font-size: 13px; 
    border: none; 
    cursor: pointer; 
    transition: all 0.3s ease; 
}

.view-btn:hover { 
    background: #c13035; 
    transform: translateY(-2px); 
}

.modal-balance { 
    display: none; 
    position: fixed; 
    inset: 0; 
    background-color: rgba(0, 0, 0, 0.8); 
    justify-content: center; 
    align-items: center; 
    z-index: 1000; 
}

.modal-content-balance { 
    background: white; 
    padding: 30px; 
    border-radius: 20px; 
    position: relative; 
    max-width: 95%; 
    max-height: 95%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.25); 
}

.modal-close-balance { 
    position: absolute; 
    top: 15px; 
    right: 20px; 
    font-size: 26px; 
    color: #333; 
    cursor: pointer; 
}

.modal-image-container { 
    overflow: hidden; 
    width: 100%; 
    height: 70vh; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    background: #f2f2f2; 
    margin-bottom: 15px; 
    border-radius: 12px; 
}

.modal-image-container img { 
    max-width: 100%; 
    max-height: 100%; 
    cursor: grab; 
    transition: transform 0.2s ease; 
    user-select: none; 
    transform: translate(0px, 0px) scale(1); 
}

.zoom-controls { 
    display: flex; 
    gap: 12px; 
    margin-bottom: 15px; 
}

.zoom-btn { 
    background: #2a84c0; 
    color: white; 
    border: none; 
    border-radius: 50%; 
    width: 45px; 
    height: 45px; 
    font-size: 20px; 
    cursor: pointer; 
    transition: 0.3s; 
}

.zoom-btn:hover { 
    background: #c13035; 
}

.download-btn { 
    background-color: #2a84c0; 
    color: white; 
    padding: 10px 20px; 
    border-radius: 30px; 
    text-decoration: none; 
    font-size: 14px; 
    transition: 0.3s; 
}

.download-btn:hover { 
    background-color: #c13035; 
}

/* =========================
   SECCIÓN EDUCATIVA BALANCE
========================= */

.balance-educativo {
    max-width: 1000px;
    margin: 0 auto 90px auto;
    padding: 60px 25px;
}

.educativo-header {
    text-align: center;
    margin-bottom: 45px;
}

.educativo-header h2 {
    font-size: 26px;
    color: #1d2b4f;
    margin-bottom: 15px;
    font-family: "Titulo", sans-serif;
}

.educativo-header p {
    font-size: 15px;
    color: #555;
    margin-bottom: 5px;
}

/* Acordeón */

.educativo-accordion {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.edu-item {
    background: white;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: 0.3s ease;
}

.edu-btn {
    width: 100%;
    padding: 22px 25px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #2a84c0;
    cursor: pointer;
    position: relative;
}

.edu-btn::after {
    content: "+";
    position: absolute;
    right: 25px;
    font-size: 18px;
    transition: 0.3s;
}

.edu-item.active .edu-btn::after {
    transform: rotate(45deg);
}

.edu-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.4s ease;
}

.edu-item.active .edu-content {
    padding-bottom: 25px;
}

.edu-content p {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Dato clave destacado */

.dato-clave {
    background: #f5f7fb;
    border-left: 4px solid #2a84c0;
    padding: 15px;
    margin-top: 15px;
    border-radius: 10px;
    font-size: 14px;
}

/* footer */
footer{
    background: #282928;
    height: 100;
    padding-top: 40px;
    color: white;
}
.footer-contenido{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding-bottom: 40px;
    font-size: 15px;
}
.footer-Lineas {
    display: flex;
    width: 100%;
    height: 8px; 
}
  
.linea {
    flex: 1;
}
  
.roja {
    background-color: #c13035;
}
  
.amarilla {
    background-color: #dcc900; 
}
  
.azul {
    background-color: #2a84c0;
}
.subir-Arriba {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #62A1D9; 
    color: white; 
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    text-align: center;
    cursor: pointer;
    font-size: 24px; 
    display: none; 
    transition: opacity 0.3s ease;
}

.subir-Arriba:hover {
    background-color: #3b8ac4; 
}
/* responsive */
@media(max-width: 768px ){
    /* header */
    .mostrar-menu,
    .esconder-menu {
        display: block;
    }
    .menu {
        position: fixed;
        width: 100%;
        height: 100vh;
        background: #62A1D9;
        right: -100%;
        top: 0;
        text-align: center;
        padding: 100px 0px;
        z-index: 100;
        transition: 0.8s;
    }
    .menu a,
    .menu .tramiteA {
        display: block;
        padding: 20px;
    }
    .esconder-menu {
        position: absolute;
        top: 40px;
        right: 40px;
    }
    #check:checked ~ .menu {
        right: 0;
    }
    .menu .subtramites {
        position: static;
        background-color: #545454;
        box-shadow: none;
    }
    .menu .subtramites a {
        padding: 10px 0;   
    
    }
    .menu .subtramites a:hover{
        color: #62A1D9;
    }
    .menu .tramite-desplegable {
        display: block;
    }
    .menu .tramite-desplegable:hover .subtramites {
        display: block;
    }
    .menu .subtramites {
        display: none;
    }
    .menu .tramite-desplegable:focus-within .subtramites {
        display: block;
    }
    /* destacados */
    #destacados{
        flex-direction: column;
    }
    #destacados h4{
        display: none;
    }
    #destacados p{
        display: none;
    }
    /* telefonos */
    .I-T{
        display: none;
    }
    .boton-telefonos{
        display: none;
    }
    .boton-telefonos-responsive{
        display: flex;
        
    }
    .titulo_destacados{
        display: flex;
        flex-direction: column;
    }
    .contenido-telefonos{
        padding: 0px 0px;
    }
    /* contactio institucional */
    #contacto-institucional {
        padding: 20px;
    }

    .contacto {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: none;
    }
    .contacto img {
        margin-right: 10px; 
    }
    .contacto div {
        flex: 1;
        text-align: left; 
    }
    .contacto h4 {
        margin: 0; 
        color: #545454;
    }
    .contacto a {
        display: block;
        color: #848181;
        transition: color 0.4s;
    }
    .contacto a:hover {
        color: #BE3036;
    }
    #balances {
        padding: 70px 15px;
    }

    .accordion-header {
        font-size: 18px;
        padding: 20px;
    }

    .month-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .view-btn {
        align-self: flex-start;
    }

    .modal-image-container {
        height: 55vh;
    }
}