﻿/* Estilos para el formulario en pantallas pequeñas */
@media (max-width: 1050px) {
    .gov-footer__container {
        padding-inline: 16px;
        flex-direction: column;
        align-items: center;
    }

    .gov-footer__left,
    .gov-footer__center,
    .gov-footer__right {
        min-width: 0;
        flex: none;
        width: 100%;
        text-align: center;
    }

    .logos-container {
        margin: 2rem 0 0;
        justify-content: center;
    }

    .divider-gov-footer__left,
    .divider-gov-footer {
        display: none;
    }

    .gov-footer__social {
        display: flex;
        flex-direction: row;
        align-content: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    .gov-footer__right {
        margin: 2rem auto 4rem auto;
    }
}

@media (max-width: 998px) {
    body {
        padding-top: 55px;
    }

    .navbar-custom {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1030;
    }

    .navbar-header {
        float: none;
    }

    .navbar-toggle {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .navbar-collapse.collapse {
        display: none !important;
    }

    .navbar-collapse.collapse.in {
        display: block !important;
    }

    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .navbar-collapse.in {
        overflow-y: auto;
        max-height: calc(100vh - 55px);
    }

    .navbar-nav {
        margin: 7.5px 0;
        text-align: left;
    }

    .navbar-nav>li {
        display: block;
    }

    .navbar-nav>.pull-right {
        float: none !important;
    }

    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
    }

    .navbar-nav .dropdown-menu>li>a {
        padding-left: 2rem;
        color: #333;
    }

    .navbar-nav .dropdown-menu>li>a:hover,
    .navbar-nav .dropdown-menu>li>a:focus {
        color: #ffffff;
        background-color: #12428f;
    }

    .form-inline .form-group {
        margin-bottom: 1.25rem;
        display: flex;
        flex-direction: column;
    }

    .form-inline .form-group label {
        margin-bottom: 0.5rem;
        width: 100%;
        text-align: left;
        padding-left: 0;
    }

    .form-inline .form-control,
    .form-inline select,
    .form-inline input[type="text"] {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0;
    }

    .form-inline select.form-control {
        -webkit-appearance: menulist;
        -moz-appearance: menulist;
        appearance: menulist;
    }

    #txtEntidadEje {
        width: 100% !important;
    }

    .enlaces-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 15px;
        width: 90%;
    }

    .enlace-card {
        margin-bottom: 1.5rem;
    }

    .datos-tabla .list-group-item>div {
        width: 100%;
        padding: 10px 15px;
        margin-bottom: 8px;
        border-bottom: 1px solid #eee;
    }

    .datos-tabla .list-group-item>div:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .datos-tabla .list-group-item>.titulo-moviles {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        color: #004884;
        margin-bottom: 5px;
    }

    .datos-tabla .list-group-item.etiqueta {
        display: none;
    }

    .opcionesList {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        padding: 15px 0;
        margin-top: 10px;
    }

    .opcionesList a {
        margin: 0 5px;
    }
    
    #formChatPrincipal .col-xs-10 {
        width: 100%;
        padding: 0;
    }
    
    .sendBox {
        max-width: 95%;
        padding: 10px;
    }
    
    #formChatPrincipal .form-control {
        height: 38px;
    }
    
    #formChatPrincipal .btn {
        height: 38px;
        padding: 0 12px;
    }

}

@media (max-width: 900px) {
    .gov-footer__up {
        text-align: left;
    }

    .sgr-card-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .sendBox {
        padding: 10px;
        max-width: 90%;
    }
    #formChatPrincipal .form-control {
        height: 40px;
        min-width: 200px;
    }

    .input-group-append .btn {
        padding: 0 15px;
    }
    
    #formChatPrincipal .btn {
        height: 40px;
        padding: 0 15px;
    }
    
    #formChatPrincipal .col-xs-10 {
        padding: 0 10px;
    }
    .gov-footer__container {
        padding-inline: 16px;
    }

    .accionesAuditorCiudadano .outer {
        margin: auto;
        gap: 30px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .accionesAuditorCiudadano .inner {
        margin: 4.5rem;
    }

    .bienvenida-container {
        justify-content: space-evenly;
    }

    .bienvenida-texto {
        max-width: 100%;
        margin: 2rem;
        text-align: justify;
    }

    .bienvenida-texto h1 {
        text-align: left;
    }

    .divider {
        display: none;
    }

    .logos-container-footer {
        gap: 0;
    }

    .DNPHeader-brand {
        flex-direction: column;
    }

    .DNPHeader-brand-search {
        display: flex;
        margin-top: 4rem;
    }

    .inner-one .inner {
        margin-bottom: 10px;
    }

    .inner-one {
        justify-content: center;
    }

    .footer {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .terms,
    .contact {
        width: 100%;
        box-sizing: border-box;
        padding: 20px 15px;
    }

    .terms {
        border-bottom: 1px solid #e0e0e0;
    }

    .container {
        padding: 0;
        margin: 3rem
    }

    .footer .terms {
        max-width: 100%;
        padding: 4rem;
    }

    .footer .contact {
        max-width: 100%;
        padding: 4rem;
    }

    .divider-gov-footer__left,
    .divider-gov-footer,
    .divider-gov-footer {
        display: none;
    }

    .gov-footer__social {
        display: flex;
        flex-direction: row;
        align-content: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    .gov-footer__right {
        margin: 2rem auto 4rem auto;
    }

    .sgr-info {
        padding: 3rem 3rem 0 3rem;
    }

    .linea {
        margin-top: 5rem;
    }

    .entidades {
        text-align: center;
        padding: 0;
        margin-top: 0;
    }

    .well.botones-registros-proyectos .btn {
        width: 100%;
        margin: 5px 0;
    }

    .botones-registros-proyectos .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 10px;
        padding: 0 5px;
    }

    .botones-registros-proyectos .btn {
        min-height: 70px;
        margin: 0;
    }

    #formatoExcel {
        padding: 0 3px;
    }

    #FormatoExcel a {
        padding: 0 3px;
    }

    #FormatoExcel .icon-left {
        margin-right: 1px;
    }

    #FormatoExcel .icon-right {
        margin-left: 1px;
    }

    #FormatoExcel,
    #descargaProyectos,
    #descargaContratos {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 0.75rem;
    }

    .DNPFullfront-info-title {
        text-align: left;
    }

    .form-steps {
        padding: 1rem;
        max-width: 95%;
    }

    .step-icon {
        width: 50px;
        height: 50px;
    }

    .step-icon i {
        font-size: 1.2rem;
    }

    .step-label {
        font-size: 0.75rem;
    }
}

/***Page Info ***/
/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    #divCuerpoProy .row > div[class*='col-'] {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    #divCuerpoProy h2 {
        font-size: 1.6rem;
    }
    
    #divCuerpoProy h3 {
        font-size: 1.3rem;
    }
    
    #divCuerpoProy h4 {
        font-size: 1.1rem;
    }
    
    .table-responsive {
        border: none;
        margin-bottom: 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .alert-info {
        padding: 12px;
    }
    
    #divInformativo {
        margin: 15px 0;
    }

    #divCuerpoProy {
        padding: 10px 0;
    }
    
    #divOpcionesInfo {
        margin-bottom: 15px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    #opcionesInfo li a {
        padding: 10px 12px;
    }
    
    .generalInfo {
        padding: 0 5px;
    }
    
    .alert-info {
        margin-bottom: 15px;
        padding: 12px;
    }
    
    /* Títulos */
    #divCuerpoProy h2 {
        font-size: 1.6rem;
        margin-top: 20px;
        margin-bottom: 15px;
    }
    
    #divCuerpoProy h3 {
        font-size: 1.3rem;
        margin-top: 20px;
        margin-bottom: 12px;
    }
    
    #divCuerpoProy h4 {
        font-size: 1.1rem;
        margin-top: 18px;
        margin-bottom: 10px;
    }
    
    /* Tablas responsivas */
    .table-responsive {
        margin-bottom: 15px;
        border: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .table th,
    .table td {
        padding: 8px;
        font-size: 1.4rem;
    }
    
    /* Botones */
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Menús desplegables */
    .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0;
        border: 1px solid rgba(17, 66, 142, 0.1);
        box-shadow: none;
    }
    
    /* Pestañas */
    .nav-tabs > li {
        float: none;
        display: block;
        margin-bottom: 5px;
    }
    
    .nav-tabs > li > a {
        margin-right: 0;
        border-radius: 6px;
        border: 1px solid #dee2e6;
        margin-bottom: 5px;
    }
    
    .nav-tabs > li.active > a,
    .nav-tabs > li.active > a:hover,
    .nav-tabs > li.active > a:focus {
        border: 1px solid #11428e;
        border-left: 4px solid #11428e;
    }
    
    #divInformativo {
        margin: 15px 0;
        padding: 12px;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .table th,
    .table td {
        white-space: nowrap;
    }
    
    .dropdown-toggle::after {
        float: right;
        margin-top: 8px;
    }
    
    #divOpcionesInfo {
        position: relative;
        z-index: 1;
    }
    
    .tab-pane {
        padding: 10px 0;
    }
    
    .form-control {
        font-size: 1rem;
        height: auto;
        padding: 8px 12px;
    }
    
    .card {
        margin-bottom: 15px;
    }
    
    .btn-group-vertical > .btn {
        margin-bottom: 5px;
    }
    
    .table-responsive {
        border: 1px solid #dee2e6;
        border-radius: 6px;
    }
    
    .dropdown-menu > li > a {
        padding: 10px 15px;
    }
    
    body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
}




/* Indicadores del proyecto */

@media (max-width: 770px) {
    .indicadores-responsive {
        width: 100%;
        overflow-x: hidden;
        margin: 0;
        padding: 0 4rem 0 0;
    }

    .indicadores-responsive table {
        width: 100%;
        max-width: 100%;
        border: 0;
        table-layout: fixed;
    }
    
    .indicadores-responsive thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }
    
    .indicadores-responsive tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.5rem;
        overflow: hidden;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    }
    
    .indicadores-responsive td {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem !important;
        text-align: right;
        border-bottom: 1px solid #f0f0f0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .indicadores-responsive td:before {
        content: attr(data-label);
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #11428e;
        font-size: 0.9em;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .indicadores-responsive td:last-child {
        border-bottom: 0;
    }
    
    .indicadores-responsive td:empty {
        display: none;
    }

    #divActividades .table tbody td {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem !important;
        text-align: right;
        border-bottom: 1px solid #f0f0f0;
    }
    
    #divActividades .table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #11428e;
        font-size: 0.9em;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 991.98px) {
    .indicadores-responsive table {
        width: 100%;
        border: 0;
    }
    
    .indicadores-responsive thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }
    
    .indicadores-responsive tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.50rem;
        overflow: hidden;
    }
    
    .indicadores-responsive td {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem !important;
        text-align: right;
        border-bottom: 1px solid #dee2e6;
    }
    
    .indicadores-responsive td:before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 1rem;
        color: #11428e;
    }
    
    .indicadores-responsive td:last-child {
        border-bottom: 0;
    }
    
    .indicadores-responsive td:empty {
        display: none;
    }
}

/* Ajustes para la tabla en escritorio */
@media (min-width: 992px) {
    .indicadores-responsive td:before {
        display: none;
    }
}

/***End Page Info***/

@media (min-width: 768px) {
    .headerAC {
        flex-direction: row;
    }

    .footer {
        display: flex;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
    }

    .terms,
    .contact {
        flex: 1;
        padding: 0 15px;
    }
}

@media (max-width: 640px) {
    #divCambioClave .form-card {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .enlaces-container {
        padding: 0 10px;
        width: 100%;
        padding: 0 10px;
    }
}

/* DNP Search */
@media screen and (min-width: 600px) and (max-width: 1200px) {
    .DNPSearch-item-select {
        max-width: 90vw;
        font-size: var(--fuente0_tablet);
        background-size: var(--fuente0_tablet);
        padding: var(--fuente0_tablet);
    }

    .DNPSearch-item-label {
        max-width: 90vw;
        font-size: var(--fuente0_tablet);
    }
}

@media screen and (max-width: 600px) {
    .DNPSearch-item-select {
        max-width: 90vw;
        font-size: var(--fuente0_mobile);
    }

    .DNPSearch-item-label {
        max-width: 90vw;
        font-size: var(--fuente0_mobile);
    }
}

@media screen and (min-width: 1440px) {
    .DNPSearch-horizontal {
        width: 110%;
    }
}

/*Formato banner*/
@media screen and (min-width: 600px) and (max-width: 1200px) {
    .DNPFullfront-info-title,
    h1.DNPFullfront-info-title,
    h2.DNPFullfront-info-title {
        padding: 0.7vw 0 0.7vw 5vw;
        border-bottom-width: 0.5vw;
    }

    .DNPFullfront-info {
        padding: 50px 30vw 50px 0;
    }
}

@media screen and (max-width: 600px) {
    .DNPFullfront-info-title,
    h1.DNPFullfront-info-title,
    h2.DNPFullfront-info-title {
        max-width: 90vw;
        font-size: var(--fuente5_mobile);
        line-height: 1;
        padding: 2.5vw 0 2.5vw 5vw;
        border-bottom-width: 1vw;
    }
    
    .DNPFullfront-info-title{
        font-size: var(--fuente3_mobile) !important;
    }

    .DNPFullfront-info {
        padding: 50px 10vw 50px 0;
    }
}

/* Menu principal */
@media (min-width: 999px) {
    .navbar-nav>li.user-menu-item {
        background-color: white;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .navbar-nav>li.user-menu-item>a {
        color: #12428F;
        padding: 10px;
        text-align: center;
    }

    .navbar-nav>li.user-menu-item>a .caret {
        border-top-color: #12428F;
        border-bottom-color: #12428F;
    }

    .navbar-nav>li.user-menu-item:hover,
    .navbar-nav>li.user-menu-item.open {
        background-color: #e7e7e7;
    }

    .navbar-nav>li.user-menu-item.open>a,
    .navbar-nav>li.user-menu-item>a:hover,
    .navbar-nav>li.user-menu-item>a:focus {
        background-color: transparent !important;
    }
}