
.principal{
    
    display: flex;
    justify-content: center;
    background-color: #3466ab;
    height: 100%;
    width: 100%;

}
.cajitas{
    background-color: #73aade;
    width: 300px;
    height: 400px;
    margin: 20px;
    padding-top: 10px;
    border-radius: 20px;
    border-color: black;
}


.volver{
    background-color: #b6b6af;
    width: 8%;
    padding: 5px;
    font-size: 20px;
    text-align: center;
    border-radius: 20px;
    height: 30px;
}
.volver a{
    color: rgb(11, 11, 11);
    text-decoration: none;
}
body{
  background: color #3466ab;  
}
.ima{
    background-color: blueviolet;
    height: 250px;
    width:280px ;
    margin:10px ;
    margin-top:0px;
    border-radius: 20px;
    

}
.nombre{
    color: aliceblue;
    font-size: 40px;
    text-align: center;

}
.yo{
     background-color: rgba(43, 43, 187, 0.652);
    width: 30%;
    padding: 5px;
    font-size: 30px;
    text-align: center;
    border-radius: 20px;
    height: 30px;
    margin: auto;
    margin-top: 10px;
    
}

.yo a {
   color: rgb(11, 11, 11);
    text-decoration: none; 
}
img{
    height: 100%;
    width: 100%;
}
body{
    background-color:#73aade ;
}

/* ==========================================================
   RESPONSIVE (se agregó al final, no cambia el diseño de escritorio)
   ========================================================== */

/* Pantallas medianas: las tarjetas bajan a otra fila si no caben */
@media (max-width: 1400px){
    .principal{
        flex-wrap: wrap;
    }
}

/* Celular: una tarjeta debajo de otra */
@media (max-width: 768px){
    body{
        padding-top: 60px;      /* espacio para el botón del menú */
    }
    .volver{
        width: auto;            /* el botón se ajusta a su texto */
        display: inline-block;
        padding: 5px 15px;
        height: auto;
        margin: 10px;
    }
    .principal{
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
    }
    .cajitas{
        width: 90%;
        max-width: 300px;
        height: auto;           /* la altura se ajusta al contenido */
        padding-bottom: 15px;
    }
    .ima{
        width: calc(100% - 20px);   /* ancho de la tarjeta menos los márgenes */
    }
    .nombre{
        font-size: 28px;
    }
}
