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

/* =========================================================
   BODY
========================================================= */
body{
    font-family:Arial,sans-serif;
    background:
        linear-gradient(
        rgba(255,255,255,0.92),
        rgba(255,255,255,0.92)
        ),
        url('img/bg-gobierno.jpg');
    background-size:cover;
    background-position:center;
    background-attachment:fixed;
    color:#1f2937;
    line-height:1.6;
    top:0 !important;
    overflow-x:hidden;
}

/* =========================================================
   WRAPPER CENTRAL
========================================================= */
.site-wrapper{
    width:100%;
    max-width:1400px;
    margin:auto;
    background:white;
    min-height:100vh;
    position:relative;
    box-shadow:0 0 40px rgba(0,0,0,0.08);
    border-left:1px solid #e5e7eb;
    border-right:1px solid #e5e7eb;
}

/* =========================================================
   CONTAINER
========================================================= */
.container{
    width:92%;
    max-width:1240px;
    margin:auto;
}

/* =========================================================
   BARRA GOBIERNO
========================================================= */
.gob-bar{
    background:white;
    border-bottom:1px solid #e5e7eb;
    padding:18px 0;
}

.gob-bar .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.gob-bar .logo-img{
    height:90px;
    width:auto;
    object-fit:contain;
    display:block;
}

/* =========================================================
   HEADER INSTITUCIONAL
========================================================= */
.main-header{
    background-color:#0f172a;
    border-bottom:1px solid rgba(255,255,255,0.08);
    position:sticky;
    top:0;
    z-index:999;
    box-shadow:0 8px 24px rgba(15,45,92,0.22);
}

/* =========================================================
   HEADER FLEX
========================================================= */
.header-flex{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 0;
    gap:20px;
    flex-wrap:wrap;
}

/* =========================================================
   LOGO AREA
========================================================= */
.logo-area{
    display:flex;
    align-items:center;
    gap:18px;
}

.logo-icon-box{
    width:72px;
    height:72px;
    background:rgba(255,255,255,0.10);
    border:1px solid rgba(255,255,255,0.12);
    border-radius:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    backdrop-filter:blur(10px);
    box-shadow:0 4px 14px rgba(0,0,0,0.18);
    flex-shrink:0;
}

.logo-ditic{
    width:50px;
    height:50px;
    object-fit:contain;
}

.logo-text{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.logo-text p{
    color:#dbeafe;
    font-size:14px;
    font-weight:600;
    line-height:1.4;
    margin:0;
    max-width:320px;
}

/* =========================================================
   NAV
========================================================= */
.main-nav{
    display:flex;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
}

.main-nav ul{
    display:flex;
    list-style:none;
    gap:10px;
    flex-wrap:wrap;
}

.main-nav a{
    display:flex;
    align-items:center;
    gap:7px;
    text-decoration:none;
    color:#e2e8f0;
    padding:11px 16px;
    border-radius:12px;
    transition:0.25s;
    font-size:14px;
    font-weight:700;
    background:transparent;
    border:1px solid transparent;
}

.main-nav a i{
    font-size:18px;
}

.main-nav a:hover{
    background:rgba(255,255,255,0.10);
    color:white;
    border:1px solid rgba(255,255,255,0.10);
}

/* =========================================================
   LINK ACTIVO
========================================================= */
.main-nav a.active{
    background:rgba(255,255,255,0.14);
    color:white;
    border:1px solid rgba(255,255,255,0.18);
    backdrop-filter:blur(10px);
}

/* =========================================================
   DROPDOWN
========================================================= */
.dropdown{
    position:relative;
}

.dropdown-toggle .arrow{
    font-size:18px;
    transition:0.25s;
}

.dropdown.active .arrow{
    transform:rotate(180deg);
}

.dropdown-menu{
    position:absolute;
    top:115%;
    left:0;
    min-width:240px;
    background:white;
    border-radius:16px;
    padding:10px;
    list-style:none;
    display:none !important;
    flex-direction:column;
    gap:4px;
    box-shadow:0 12px 30px rgba(0,0,0,0.16);
    border:1px solid #e5e7eb;
    z-index:9999;

    opacity:0;
    transform:translateY(10px);
    transition:0.25s;
    pointer-events:none;
}

.dropdown.active .dropdown-menu{
    display:flex !important;
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
}

.dropdown-menu li{
    width:100%;
}

.dropdown-menu a{
    width:100%;
    color:#1e293b !important;
    padding:12px 14px;
    border-radius:10px;
    font-size:14px;
    font-weight:600;
    text-decoration:none;
    display:flex;
    align-items:center;
    transition:0.25s;
    background:transparent !important;
    border:none !important;
}

.dropdown-menu a:hover{
    background:#eff6ff !important;
    color:#2563eb !important;
}

/* =========================================================
   LANGUAGE DROPDOWN
========================================================= */

.language-dropdown .nav-link{
    min-width:160px;
    justify-content:space-between;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.10);
}

.language-dropdown .nav-link:hover{
    background:rgba(255,255,255,0.16);
}

.language-dropdown .dropdown-menu{
    min-width:220px;
}

.language-dropdown .dropdown-menu a{
    gap:10px;
}

.language-dropdown .material-icons{
    font-size:20px;
}

/* =========================================================
   MAIN CONTENT
========================================================= */
.registration-area{
    padding:50px 0;
    min-height:600px;
}

/* =========================================================
   LOADER
========================================================= */
.loader{
    text-align:center;
    padding:90px 20px;
}

.spinner{
    width:55px;
    height:55px;
    margin:auto;
    border-radius:50%;
    border:4px solid #dbeafe;
    border-top-color:#2563eb;
    animation:spin 1s linear infinite;
}

.loader-text{
    margin-top:18px;
    color:#64748b;
}

@keyframes spin{
    100%{
        transform:rotate(360deg);
    }
}

/* =========================================================
   ERROR
========================================================= */
.error-box{
    background:white;
    border:1px solid #e5e7eb;
    border-radius:24px;
    padding:60px 30px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,0.04);
}

.error-box h2{
    color:#dc2626;
    margin-bottom:10px;
    font-size:36px;
}

.error-box p{
    color:#64748b;
}

/* =========================================================
   FOOTER
========================================================= */
.mitic-footer{
    background:#0f172a;
    color:#cbd5e1;
    padding:45px 0;
    margin-top:50px;
}

.footer-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
}

.footer-content strong{
    color:white;
}

.footer-content p{
    margin-top:4px;
    font-size:14px;
}

/* =========================================================
   SCROLLBAR
========================================================= */
::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#f1f5f9;
}

::-webkit-scrollbar-thumb{
    background:#cbd5e1;
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#94a3b8;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media(max-width:992px){
    .mini-hero h1{
        font-size:42px;
    }
}

@media(max-width:768px){

    .gob-bar .container{
        flex-direction:column;
        justify-content:center;
    }

    .gob-bar .logo-img{
        height:70px;
    }

    .header-flex{
        flex-direction:column;
        align-items:flex-start;
    }

    .logo-area{
        width:100%;
    }

    .logo-text p{
        font-size:12px;
    }

    .logo-icon-box{
        width:64px;
        height:64px;
    }

    .logo-ditic{
        width:44px;
        height:44px;
    }

    .main-nav{
        width:100%;
        flex-direction:column;
        align-items:flex-start;
    }

    .main-nav ul{
        width:100%;
        flex-direction:column;
    }

    .main-nav a{
        width:100%;
    }

    .dropdown{
        width:100%;
    }

    .dropdown-menu{
        position:relative;
        width:100%;
        top:10px;
    }

    .language-dropdown{
        width:100%;
    }

    .language-dropdown .nav-link{
        width:100%;
    }

    .footer-content{
        flex-direction:column;
        align-items:flex-start;
    }
}