/* General */

h1 {
    color: #193f41;
    font-size: 20px;
}
p {
    margin-top: 10px;
    padding-right: 40px;
    line-height: 1.5;
    text-align: justify;
}


/* Header */
.titulo1 {
    position: relative; /* Necesario para que el texto se posicione relativo a este contenedor */
    width: 100%; /* Ajusta el tamaño del contenedor */
    margin-top: 20px;
    text-align: center;
    overflow: hidden; /* Asegura que cualquier contenido que se salga del contenedor no se muestre */
}

.iniciativa {
    width: 100%; /* Imagen ocupa todo el ancho del contenedor */
    height: 90px; /* Ajusta la altura proporcionalmente */
}

.texto-encima {
    position: absolute;
    top: 50%; /* Centra verticalmente */
    left: 50%; /* Centra horizontalmente */
    transform: translate(-50%, -50%); /* Ajusta el texto para que esté exactamente en el centro */
    color: #fff; /* Texto blanco */
    font-size: clamp(18px, 6vw, 35px); /* Tamaño de texto responsivo */
    font-weight: bold; /* Hace el texto más destacado */
    padding: 15px 20px; /* Espaciado interno para el texto */
    text-align: center; /* Alineación centrada */
    white-space: nowrap; /* Evita que el texto se divida en varias líneas */
    overflow: hidden; /* Oculta el texto que no cabe */
    text-overflow: ellipsis; /* Agrega puntos suspensivos si el texto es demasiado largo */
}


@media (max-width: 768px) {
    .texto-encima {
        font-size: clamp(14px, 5vw, 30px); /* Ajusta el tamaño del texto en pantallas más pequeñas */
    }
}

@media (max-width: 480px) {
    .texto-encima {
        font-size: clamp(12px, 7vw, 25px); /* Ajusta aún más el tamaño del texto para pantallas muy pequeñas */
    }
}


.porcentaje-1 {
    color: #193f41;
    /* margin-top: 20%; */
    position: absolute;
}

/* Proyectos */
.project-section {
    margin-top: 20px;
    clear: both; /* Esto asegura que no se superponga a elementos flotantes previos */
    display: block; /* Garantiza que el elemento se comporte como un bloque */
}

.project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #c8d7da;
    margin: 20px auto;
    padding: 25px 25px 20px 25px;
    border-radius: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
   
}

.project-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 15px;
    border: 1px solid #193f41;
    cursor: pointer;
}

.project-details {
    display: flex;
    flex-flow: column nowrap;
    flex: 1 1 auto;
}

/* .description-details {
    width: 97%;
} */

.auditoria-proyectos {
    /* position: absolute; */
    top: 20px;
    right: 20px;
}
.auditoria-proyectos img {
    width: 32px;
    height: 35px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}
.auditoria-proyectos small {
    color: red;
    font-size: 11px;
}
.project-button {
    background-color: #193f41;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    width: auto;
    margin-top: 60px;
    max-width: 300px;
}

.project-button:hover {
    background-color: #005050;
}

/* Porcentaje */
.porcentaje {
    position: relative;
    text-align: center;
    margin-top: 10px;
    margin-right: 20px;
}

.porcentaje span {
    position: absolute;
    top: -15px;
    left: 43%;
    font: 20px Arial, sans-serif;
    font-weight: bold;
}

.porcentaje img {
    position: absolute;
    top: 49%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 147px;
    height: 147px;
    border-radius: 50%;
    border: .5px solid gray;
    /* background-color: #193f41; */
}

circle {
    fill: none;
    stroke-width: 13;
    transform: rotate(-90deg);
    transform-origin: 50%;
    stroke-dasharray: 100 100;
    stroke: #ffffff;
}

circle:nth-child(2) {
    stroke: #193f41;
    stroke-dasharray: var(--porcentaje) 100;
    animation: rellenar 0.35s linear forwards;
}

/* Animación */
@keyframes rellenar {
    to {
        stroke-dasharray: var(--porcentaje) 100;
    }
}

.content-botton {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 10px; /* Espaciado interno */
}

.auditorias {
    display: flex;
    justify-content: space-between; /* o space-around */
    flex-direction: row;
    text-align: center;
    align-items: center;
    width: 70%;
}
.auditorias > div {
    flex: 1; /* Cada hijo toma el mismo espacio */
}

.div-vermas {
    justify-content: flex-end;
}


.link-detalle-obra {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* Botón personalizado */
/* .custom-button {
    background-color: #193f41;
    color: white;
    font-size: 14px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
   

} */

.custom-button {
    padding: 10px;
    background-color: #193f41;

    color: white;
    font-size: 14px;
    padding: 5px 20px;

    border-radius: 25px;

    border: none;
    cursor: pointer;
    font-size: 1em;
}

.arrow {
    height: fit-content;
    margin-left: 3px;
    font-size: 1.2em;
    color: #193f41;
    font-size: 25px;
    font-weight: bold;
    transition: transform 0.3s ease; /* Transición para el ícono */
}

.arrow img{
    width: 15px;
    margin: 0 5px;
}
/* Animación al pasar el mouse */
.link-detalle-obra:hover .arrow {
    transform: translateX(4px); /* Mueve el ícono 5px a la derecha */
}

/* .fa-solid {
    font-size: 25px;
    font-weight: bold;
    
    transition: transform 0.3s ease;
} */


.custom-button:hover {
    background-color: #40575d;
}

.custom-button:hover .arrow {
    transform: translateX(5px);
}

/* Paginación */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.pagination-button {
    width: fit-content;
    background-color: #193f41;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 0px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    padding-bottom: 5px;
}

.pagination-button:hover {
    background-color: #193f41;
}

.pagination-box {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px 20px;
    background-color: white;
    border: 2px solid #193f41;
    border-radius: 25px;
    gap: 5px;
}

.page-number {
    background-color: transparent;
    color: #193f41;
    font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.page-number:hover {
    color: #193f41;
}

.pagination-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px; /* Aumenta el redondeo de los bordes */
    background-color: #f0f0f0;
    border: 2px solid #193f41; /* Aumenta el grosor del borde */
}

.pagination-numbers button{
    padding: 5px 30px;
}

.pagination-numbers button.active {
    background-color: #003838;
    color: white;
    border-radius: 0px 0px 0px 0px;
    font-weight: bold; /* Opcional para destacar el número activo */
}

/* Si el botón activo es el primero */
.pagination-numbers button.active:first-child {
    border-radius: 10px 0px 0px 10px;
}

/* Si el botón activo es el último */
.pagination-numbers button.active:last-child {
    border-radius: 0px 10px 10px 0px;
}

.page-number {
    text-align: center;
    background-color: transparent;
    color: #003838;
    font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 2px 2px; /* Ajusta el marco para los números normales */
    border: none;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease;
    position: relative;
}

.page-number:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; /* Línea en el lado derecho */
    top: 0;
    height: 100%;
    width: 1px;
    background-color: #ccc; /* Color de la línea de separación */
}

.pagination-info {
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #003838;
    margin-top: 10px;
}

.pagination .page-item {
    border-radius: 25px;
    overflow: hidden;
}

.pagination .page-link {
    border-radius: 25px;
    padding: 10px 15px;
}

.pagination .page-item.active .page-link {
    background-color: #193f41;
    color: white;
}

.pagination .page-item:hover .page-link {
    background-color: #005050;
}


@media (max-width: 1320px) {
    .content-botton {
        flex-direction: column;
    }
    .auditorias {
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between; /* o space-around */
        width: 100%;
    }
    .div-vermas {
        display: flex;
        width: 100%;
        justify-content: center;
    }
    
}

/* Media Queries */
@media (max-width: 768px) {

    .project-item img {
        margin-right: -5px;
    }

    p {
        padding-right: 0;
    }

    .porcentaje {
        margin-right: 0; 
    }

    .description-details {
        width: 100%;
    }

    .auditoria-proyectos small {
        display: none;
    }
    /* Reduce the font size of the header */
    .titulo {
        font-size: 30px;
        padding: 6%;
    }

    /* Adjust project item layout */
    .project-item {
        flex-direction: column;
        width: 80%;
        margin-top: 20%;
    }

    .project-details {
        text-align: center;
        width: 100%;
        margin-left: 0;
    }

    .project-button {
        margin-top: 40px;
        width: 80%;
        max-width: 100%;
    }

    /* Pagination styling */
    .pagination-container {
        flex-direction: column;
        gap: 20px;
    }

    .pagination-numbers {
        gap: 20px; /* Reduces space between page numbers */
    }

    .page-number {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    /* Adjust project item layout for mobile */
    .project-item {
        flex-direction: column;
        width: 90%;
        margin-top: 20%;
    }

    .project-details {
        width: 100%;
        margin-left: 0;
        text-align: center;
    }

    .project-button {
        margin-top: 40px;
        width: 80%;
    }

    /* Adjust page numbers for smaller screens */
    .pagination-numbers {
        gap: 15px;
    }

    .page-number {
        font-size: 12px;
    }
}



/*Modal para imagen */

.modal-imagen {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
  }
  
    .modal-content-imagen {
        max-width: 90%;
        max-height: 90%;
        border-radius: 5px;
        background: white;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    }
    
    .tachita {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 40px;
        font-weight: bold;
        color: white;
        cursor: pointer;
        background: rgba(0, 0, 0, 0.5);
        padding: 10px;
    }
    




    