.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.barraBuscador {
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.seccion1 {
    display: flex !important;
    justify-content: center !important;
    position: relative;
    width: 100%;
    max-width: 1200px;
    /* RE-002: era "width:1200px" fijo (no max-width) - forzaba overflow
       horizontal del body en CUALQUIER viewport menor a 1200px, no solo
       mobile. Corregido a fluido con techo en 1200px. */
}

.seccion1-back{
    width:100%;
    background-color: #69B0E1 !important;
    display: flex;
    padding: 4% 4% ;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.5);
    margin: 1px 10px;
}

.seccion2 {
    width:100%;
    display: flex;
    padding: 2% 0% ;
    justify-content: space-evenly;
}

.seccion3 {
    background-color: rgb(255, 255, 255) !important;
    padding: 1% 26% 1% 11%;
    width: 100%;
}

.seccion3titulo {
    font-family: Inter;
    font-size: 31px;
    font-weight: 600;
    line-height: 37.52px;
    text-align: left;
    color: rgba(53, 73, 143, 1);
}

.seccion1contenido {
    color: rgb(255, 255, 255);
    opacity: 0px;
    text-align: left;
    width: 60%;
}

.seccion1titulo {
    width: 100%;
    gap: 0px;
    font-size: clamp(24px, 2.5vw, 40px);
    font-weight: 600;
    line-height: 1.2;
    padding-bottom: 10px;
}

.seccion1desc {
    width: 80%;
    font-size: 15px;
    font-weight: 400;
    line-height: 18.15px;
}

.seccionSeach {
    display: flex;
    align-items: center;
    width:40%;
/*    z-index: 99999;*/
}

.section-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.panel-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    margin-bottom: 20px;
}

.panel {
    flex: 1 1 0;
    min-width: 0;
    height: auto;
    padding: 20px;
    margin:0;
    border-radius: 10px;
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.5);
}

.panel-personas {
    background-color: #0F69B4;
    display: flex;
    justify-content: space-between;
    gap:1.5em;
}

.panel-empresas {
    background-color: #9BC73E;
    display: flex;
    justify-content: space-around; 
}

.section2personas {
    color: rgba(255, 255, 255, 1);
    width: 70%;
    font-family: Inter;
    text-align: left;

}

.seccion2titulo {
    width: 100%;
    gap: 0px;
    font-size: clamp(24px, 2.5vw, 40px);
    font-weight: 600;
    line-height: 1.2;
    padding-bottom: 10px;
}

.seccion2desc {
    font-size: 15px;
    font-weight: 400;
    line-height: 18.15px;
}

.botonPersona {
    margin-bottom: 10px !important;
    background: rgba(237, 248, 255, 1) !important;
    font-size: 15px;
    font-weight: 400;
    line-height: 15px;
    color: rgba(15, 105, 180, 1) !important;
    width: 100%;
    max-width: 260px;
    border: 1px solid #87C8FF !important;
}

.botonEmpresa {
    margin-bottom: 10px !important;
    background: rgba(245, 255, 210, 1) !important;
    font-size: 15px;
    font-weight: 400;
    line-height: 15px;
    color: rgba(10, 119, 0, 1) !important;
    border: 1px solid rgba(98, 126, 0, 1) !important;
    width: 100%;
    max-width: 260px;
}

.botonesSeccion2 {
    width: 30%;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    margin-top: 10px;
}

.panel-empresas {
    background-color: #78BE20;
}

.button-group {
    display: flex;
    flex-direction: column;
}

.button-group p\:commandButton {
    margin-bottom: 10px;
}

.seccion4 {
    display: flex;
    justify-content: center;
    background: rgba(53, 73, 143, 1);
    color: white;
    padding: 30px;
    width: 100%;
    gap: 1rem;
}

.seccion5 {
    padding: 1% 26% 1% 26%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.centrar {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contacto {
    background: rgba(237, 248, 255, 1);
    border: 1px solid rgba(135, 200, 255, 1);
    border-radius: 10px;
    color: rgba(53, 73, 143, 1);
    text-align: center;
    padding: 10px 0px 10px 0px;
    font-family: Inter;
    font-size: 26px;
    font-weight: 600;
    line-height: 31.47px;
    width: 288px;
    height: 61px;
    margin-top: 5px;
}

.ui-button.botonContacto {
    background: rgba(237, 248, 255, 1);
    border: 1px solid rgba(135, 200, 255, 1);
    border-radius: 10px;
    color: rgba(53, 73, 143, 1);
    text-align: center;
    padding: 10px 0px 10px 0px;
    font-family: Inter;
     font-size: clamp(12px, 1.3vw, 20px);
    font-weight: 600;
    line-height: 1.2;
    width: 60%;
    height: auto;
    margin-top: 5px;
    
}

.ui-button.botonContacto:hover {
    background: #b8eeff; 
    border-color: #b8eeff; 
    color: rgba(40, 60, 120, 1);
}

.ui-button.botonContactoTelefono {
    background: rgba(237, 248, 255, 1);
    border: 1px solid rgba(135, 200, 255, 1);
    border-radius: 10px;
    color: rgba(53, 73, 143, 1);
    text-align: center;
    padding: 10px 0px 10px 0px;
    font-family: Inter;
    font-size: clamp(12px, 1.3vw, 20px);
    font-weight: 600;
    line-height: 1.2;
    width: 60%;
    height: auto;
    margin-top: 5px;
    
}

.ui-button.botonContactoTelefono:hover {
    background: #b8eeff; 
    border-color: #b8eeff; 
    color: rgba(40, 60, 120, 1);
}

.card {
    border: 1px solid rgba(212, 212, 212, 1);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    width: 100%;
    height: 148px;
    gap: 0px;
    border-radius: 10px 10px 10px 10px;
    opacity: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card:hover {
     background: #b8eeff;
}

.imgCard {
    width: 90%
}

.textCard {
    font-family: Inter;
    font-size: 24px;
    font-weight: 200;
    line-height: 29.05px;
    text-align: left;
    color: rgba(30, 30, 30, 1);
}

.ui-input-icon-right input{
    border-radius: 107px;
    width: 100%;
    height: 54px;
    box-sizing: border-box; 
}

.pi-search{
    width: 44px;
    height: 44px;
}

.search-button-icon{
    background-color: #69B0E1 !important;
    position: absolute; 
    right: 5px; 
    top: 50%; 
    transform: translateY(-50%); 
    cursor: pointer;  
    margin-right: .5rem;
}

.search-button-icon .pi-search{
    width: 0;
    height: 44px;
}

.seccion4 > .container{
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.texto{
    padding: 10px 0 10px 0;
}

.container-contacto{
    margin: 5px 25px 10px 0px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 1rem;
}


.grid-container{
    width: 100%; 
    max-width: 1200px;
    margin: 5% 0;
}

.fix-width{
    width: 100%; 
    max-width: 1200px;
}

.ancho-max-home {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    align-items: center;
    padding: 10px;
}

.anchoMaximo {
    max-width: 1200px;
}

/* Estilos para la galeria de logos */

/* RE-023: mobile-first (base = 1 columna, sin @media). El grid rigido de 3
   columnas se restaura recien en desktop (>=1024px), pasando por 2 columnas
   en tablet - sin este paso intermedio, 3 columnas de 1fr en ~768px dejan
   cada logo en ~240px, demasiado angosto para logos institucionales reales. */
.contenedorLogos {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .contenedorLogos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .contenedorLogos {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tarjeta {
    flex: 0 0 32.5%;
    max-height: 150px;
    height: 100%;
    border: 1px solid rgba(212, 212, 212, 1);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.tarjeta img {
    max-height: 100%;
    height: auto;
    max-width: 100%;
    width: auto;
}

/* Estilos para informacion de interes */

.divImagenCarousel {
    display: flex;
    justify-content: center; 
    align-items: center; 
    max-width: 100%;
    max-height: 150px;
    overflow: hidden;  
}

.divImagenCarousel img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    aspect-ratio: 16 / 9;
}

.searchBar{
    position: relative;
    display: inline-block;
    width: 89%;
}

.texto-contacto {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 40%;
    text-align: right;
}


@media (max-width: 768px) {
    
    .seccion2 {
        width: 100%;
    }
    
    .panel-container {
        flex-direction: column !important;
        align-items: center;
    }
    
    .panel {
        width: 100%;
        flex: none;
        height: auto;
    }
    
    .grid-container,
    .fix-width {
        width: 100%;
        max-width: 1200px;
        box-sizing: border-box;
    }

    .seccion3,
    .seccion5 {
        padding: 20px;
        box-sizing: border-box;
    }

    .seccion4 {
        height: auto;
        padding: 30px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column
    }

    .seccion4 > .container {
        width: 100%;
        flex-direction: column;
    }

    .seccion1-back {
        width: 100%;
        box-sizing: border-box;
        flex-direction: column;
        padding: 24px;
    }


    .contenedorLogos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ui-button.botonContacto,
    .ui-button.botonContactoTelefono {
        font-size: clamp(12px, 2.5vw, 16px);
        width: 100%;
        max-width: 400px;
        box-sizing: border-box;
    }
    
    .seccion1{
        flex-direction: column;
    }
    
    .seccion1contenido{
        width: 100%;
    }
    
    .seccionSeach{
        display: flex;
        justify-content: center;
        margin-top: 1rem;
        width: 100%;
    }
    
    .seccion1desc{
        width: 100%;
    }
    
    .searchBar{
        max-width: 60%;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .searchBar{
        max-width: 100%;
    }
    
    .panel-personas{
        display: flex;
        flex-direction: column;
    }
    
    .section2personas {
         width: 100%;
    }
    .button-group{
       flex-direction: unset;
       width: 100%;
       justify-content: center;
    }
    .panel-empresas{
        display: flex;
        flex-direction: column;
    }
    
    .container-contacto{
        display: flex;
        flex-direction: column;
        gap:unset;
        margin-bottom: 1em;
    }
    
    .texto-contacto{
        display: flex;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        text-align: left;
    }
    
}