body{
    font-family: "Nunito Sans", sans-serif;
  font-style: normal;
}

.container-fluid{
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0 !important;
}

.container{
    margin-top: 50px;
}

.navbar {
    border-radius: 0;
    background-color: #0f204c;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo{
    width: 130px;
}

.textoInicial{
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

h4{
    font-weight: 750;
    color: #0F204C;
}



.col-12.col-md-6 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 600px; /* igual que cardPrincipal */
}

.subtitulo{
    font-size: 1.5rem;
    font-weight: 200;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0px;
}

.titulo{
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 0px;
}

.txt{
    font-size: 1.2rem;
    color: #fff;
}

.cardPrincipal {
    background-image: 
        linear-gradient(180deg, 
            rgba(12, 100, 164, 1) 0%,      /* azul sólido arriba */
            rgba(12, 100, 164, 0.4) 50%,   /* semi transparente al medio */
            rgba(12, 100, 164, 0) 100%     /* totalmente transparente abajo */
        ),
        url("./assets/img/bae-antartica.jpg");
    background-size: cover;
    background-position: 10% 75%;
    height: 600px;
    border-radius: 30px;
    padding: 50px;
}

.cardSecundaria{
    background-size: cover;
    height: 300px;
    flex: 1;
    border-radius: 30px;
    padding: 50px;
    display: flex;
    justify-content: space-between;
}

.card2{
    background-image: 
    linear-gradient(90deg, 
        rgba(30, 41, 55, 1) 0%,      
        rgba(12, 100, 164, 0.4) 50%,   /* semi transparente al medio */
        rgba(12, 100, 164, 0) 100%     /* totalmente transparente abajo */
    ),
    url("./assets/img/fondoRevista.jpg");
}

.card3{
    background-image: 
    linear-gradient(90deg, 
        rgba(148, 38, 16, 1) 0%,      
        rgba(115, 57, 38, 0.4) 50%,   /* semi transparente al medio */
        rgba(12, 100, 164, 0) 100%     /* totalmente transparente abajo */
    ),
    url("./assets/img/webDap.png");
}

.cardPrincipal, .cardSecundaria {
    position: relative;
    cursor: pointer;
}

.cardPrincipal::after,
.card2::after,
.card3::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.6s ease; /* aquí controlas la velocidad */
}

.cardPrincipal::after {
    background: linear-gradient(180deg, 
        rgba(12, 100, 164, 1) 0%,
        rgba(12, 100, 164, 0.7) 50%,
        rgba(12, 100, 164, 0.3) 100%
    );
}

.card2::after {
    background: linear-gradient(90deg, 
        rgba(30, 41, 55, 1) 0%,
        rgba(12, 100, 164, 0.7) 50%,
        rgba(12, 100, 164, 0.2) 100%
    );
}

.card3::after {
    background: linear-gradient(90deg, 
        rgba(148, 38, 16, 1) 0%,
        rgba(115, 57, 38, 0.7) 50%,
        rgba(12, 100, 164, 0.2) 100%
    );
}

.cardPrincipal:hover::after,
.card2:hover::after,
.card3:hover::after {
    opacity: 1;
}

.cardPrincipal > *,
.cardSecundaria > * {
    position: relative;
    z-index: 1;
}

.cardSecundaria img {
    position: relative;
    z-index: 2;
}

.boton {
    border-radius: 15px;
    text-transform: uppercase;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn1{
    background-color: #4c517e;
}

.btn2{
    background-color: #145598;
}

.btn3{
    background-color: #a4390a;
}

.btn1:hover {
    background-color: #5d638f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 81, 126, 0.5);
}

.btn2:hover {
    background-color: #1a6bbf;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 85, 152, 0.5);
}

.btn3:hover {
    background-color: #c4451c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(164, 57, 10, 0.5);
}

.rrss{
    text-align: center;
    margin: 50px 0 50px 0;

}

h6{
    font-size: 1.2rem;
    color: #0F204C;
}

.btnRrss {
    background: transparent;
    border: 2px solid #0F204C;
    color: #0F204C;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 5px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btnRrss:hover {
    background-color: #0F204C;
    color: #fff;
}

.footer{
    background-color: #afafaf;
    color: #0F204C;
}

/* Tablet */
@media (max-width: 768px) {
    .cardPrincipal {
        height: 450px;
        padding: 30px;
    }

    .cardSecundaria {
        height: 250px;
        padding: 30px;
    }

    .col-12.col-md-6 {
        height: auto; /* quitar altura fija al apilarse */
    }

    .titulo {
        font-size: 1.4rem;
    }

    .subtitulo {
        font-size: 1.2rem;
    }

    .txt {
        font-size: 1rem;
    }
}

/* Móvil */
@media (max-width: 480px) {
    .cardPrincipal {
        height: 380px;
        padding: 25px;
        border-radius: 20px;
    }

    .cardSecundaria {
        height: 220px;
        padding: 25px;
        border-radius: 20px;
    }

    

    .titulo {
        font-size: 1.2rem;
    }

    .subtitulo {
        font-size: 1rem;
    }

    .txt {
        font-size: 0.9rem;
    }

    .boton {
        font-size: 0.7rem;
        padding: 6px 14px;
    }

    .btnRrss {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .container {
        margin-top: 30px;
    }

    .rrss {
        margin: 30px 0;
    }
}

@media (max-width: 768px) {
    .col-12.col-md-6:first-child {
        margin-bottom: 16px;
    }
}