/* === Tarjeta equipo: foto completa con overlay === */
.team-cards{
    display: flex;
    flex-flow: wrap;
    gap: 20px;
    justify-content: center;
}
.equipo-card-foto-overlay {
    position: relative;
    min-width: 220px;
    max-width: 260px;
    aspect-ratio: 3/4;
    height: auto;
    padding: 0;
    background: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}
.equipo-foto-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    filter: none;
    z-index: 1;
    transition: filter 0.3s;
}
.equipo-card-foto-overlay:hover .equipo-foto-bg {
    filter: grayscale(1) brightness(0.7);
}
.equipo-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    background: #052d4d4f;
    color: #fff;
    transition: opacity 0.3s, transform 0.35s cubic-bezier(.4,0,.2,1);
    padding: 2rem 1rem;
    text-align: center;
    transform: translateY(187px);
}
.equipo-card-foto-overlay:hover .equipo-overlay {
    transform: translateY(0);
}
.equipo-card-foto-overlay .equipo-overlay h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}
.equipo-card-foto-overlay .equipo-overlay .cargo {
    font-size: 1rem;
    margin-bottom: 1rem;
}
.equipo-card-foto-overlay .equipo-social a img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: #fff;
    padding: 2px;
}
@media (max-width: 900px) {
    .equipo-card-foto-overlay {
        max-height: 304px;
        aspect-ratio: 3 / 4;
        width: auto;
    }
}
@media (max-width: 600px) {
    .equipo-card-foto-overlay {
        min-width: 130px;
        max-width: 130px;
        aspect-ratio: 3/4;
        height: auto;
    }
    .equipo-overlay {
        padding: 0.7rem 0.3rem;
    }
    .equipo-card-foto-overlay .equipo-overlay h3 {
        font-size: 0.95rem;
    }
    .equipo-card-foto-overlay .equipo-overlay .cargo {
        font-size: 0.8rem;
    }
}


@media (max-width: 900px) {
    .slider .container_postula {
        gap: 1.2rem;
        padding: 1rem 0.5rem;
        max-width: 98vw;
    }
    .slider .section {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        padding: 1.2rem 0.7rem;
    }
}

@media (max-width: 600px) {
    .slider .container_postula {
        flex-direction: column;
        padding: 0.5rem 0.2rem;
        align-items: center !important;
        gap: 0.7rem;
    }
    .slider .section {
        padding: 0.7rem 0.3rem;
        font-size: 0.95rem;
    }
    .slider .section h2 {
        font-size: 1.05rem;
    }
    .slider .section p {
        display: none;
    }
    .slider .btn {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
    }
    .slider .auth-note {
        font-size: 0.85em;
    }
}
/* --- Estilos específicos para las tarjetas de postulación en el slider de home --- */
.slider .container_postula {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem ;
}

.slider .section {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 1.5rem 1rem;
    flex: 1 1 0;
    min-width: 240px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
}
.slider .section:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}
.slider .section h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #17177a;
}
.slider .section.desafio h2 {
    color: #2D2DB9;
}
.slider .section.solucion h2 {
    color: #2db934;
}
.slider .section p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1.2rem;
}
.slider .btn {
    background: #17177a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.slider .section.desafio .btn {
    background: #2D2DB9;
}
.slider .section.solucion .btn {
    background: #2db934;
}


.popup{
    display:none;
    background-color: #fff;
    position: fixed;
    top: 0;
    z-index: 99999;
    width:100%;
    height: 200px;
    flex-grow: 1;
    justify-content: space-between;
    flex-direction: column;
    border-radius: 0 0 10px 10px ;
    padding: 1% 4%;
    box-sizing: border-box;
    box-shadow: 1px 20px 18px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-100%);
    animation: slideDown 0.5s ease-out forwards; 
}   
.popup.closing {
    animation: slideUp 0.5s ease-out forwards;
}
@keyframes slideDown {
    from {
        transform: translateY(-100%); /* Fuera de la pantalla */
    }
    to {
        transform: translateY(0); /* Posición final */
    }
}
@keyframes slideUp {
    from {
        transform: translateY(0); /* Posición actual */
    }
    to {
        transform: translateY(-100%); /* Fuera de la pantalla */
    }
}



.popup button {
    font-size: 20px;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 25px;
    height: 25px;
    padding: 0px;
    align-self: end;
}
.popup a{
    padding: 10px 20px;
    font-size: 16px;
    background-color: #01014B;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: block;
    width: max-content;
}


.slider {
    position: relative;
    overflow: hidden;
    background-color: white;
    height: 500px;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    scrollbar-width: none;
    height: 100%;
    min-width: 100%;
}


.slide {
    min-width: 100%;
    box-sizing: border-box;
}
.slide-content{
    height: 100%;
    max-width: 1260px;
    width: -webkit-fill-available;
    padding-inline: 31px;
    padding-block: 36px;
    position: absolute;
    align-content: end;
    justify-self: center;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;

}
.slide-content h2 {
    font-size: 48px;
    font-weight: bold;
}

.slide-content p {
    font-size: clamp(1.3rem, 2.5vw, 8rem);
}

.slide-content a  {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    background-color: #e66706;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: block;
    width: max-content;
}

.slide-content a:hover {
    background-color: #a24600;
}



.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    z-index: 2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


.content{
    display: flex;
    flex-direction: column;
    padding: 3%;
    color: #01014B;
}
.desafios{
    justify-content: space-evenly;
    gap:3%;
}
.content-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.content-header button {
    padding: 10px 20px;
    font-size: clamp(1rem, 2.5vw, 2rem);
    background-color: #01014B;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    height: max-content;
}
.content-container {
    display: flex;
    box-sizing: border-box;
    justify-content: space-between;
    height:auto;
    overflow-x: auto;
}

.desafio{
    position: relative;
    width: 25%;
    height: auto;    
    background-color: #fff;
    border-radius: 17px;
    border: solid rgba(1, 1, 75, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;    
    min-width: 200px;

}
.desafio img {
    width: 100%;
    height: 230px;
    border-radius: 15px 15px 0 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.desafio-content {
    box-sizing: border-box;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    padding: 3%;
    text-align:left;
    width: 100%;
}
.desafio-content h2 {
    font-size: clamp(0.8rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 0px;
    margin-top: 0px;
}
.desafio-content h3 {
    display: flex;
    align-items: center;
    font-size: clamp(0.6rem, 2.2vw, 1.5rem);
    font-weight:500;
    margin:0px;
}
.desafio-content h3 svg{
    width: 10%;
    height: auto;
}
.desafio-content p {
    font-size: clamp(0.6rem, 2.5vw, 1.5rem);
    margin-top: 5px;
}
.desafio-content button {
    padding: 2% 8%;
    width: min-content;
    font-size: clamp(0.4rem, 3vw, 2rem);
    background-color: #01014B;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: auto;
    align-self: end;
}
.entrada{
    display: flex;
    flex-direction: column;
    padding: 1%;
    align-items: center;
    text-align: center;
    width: 40%;
}
.entrada a{
    text-decoration: none;
}
.entrada h2{
    margin-bottom: 0;
}



.content-con-foto{
    color: #01014B;
    padding: 3%;
    display: flex;
    flex-direction: row;
    gap: 7%;
}
.content-con-foto text{
    display: flex;
    flex-direction: row;
}
.content-con-foto img{
    min-width: 40%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

.entrada img{
    width: 120px;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

.conocenos p{
    text-align: justify;
    font-size: 1.2rem;
    margin-top: 0;
}
.contact-button a img{
    width: 30px;
    height: auto;
    border-radius: 0px;
    margin-top: 8px;
}
@media (max-width: 600px) {
    .slide h2 {
        font-size: 22px;
    }
    .desafio{
        border-radius: 10px;
        min-width: 100px;
    }
    .desafio img {
        height: 100px;
        border-radius: 8px 8px 0 0;
    }
    .entrada svg{
        width: 60px;
        height: 60px;
    }
    .entrada img{
        width: 70px;
    }
    .content-con-foto{
        flex-direction: column;
    }
    .contact-button a img{
        width: 17px;
        height: auto;
    }
    .contact-button svg{
        width: 17px;
        height: auto;
    }
    .conocenos p {
        font-size: 0.6rem; 
    
    }
    
}
