@import url('https://fonts.googleapis.com/css?family=Open+Sans|Roboto');


html, body{
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    /* Cambiamos height por min-height para que crezca con el contenido */
    min-height: 100vh; 
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0.03em;
    line-height: 1.6;
    background-color: #f0f0f0;
    /* --- PROPIEDADES DE FONDO --- */
    background-image: url('../img/mtb1.jpg'); /* Reemplaza con tu ruta o URL */
    background-size: cover;                /* La imagen cubre toda la pantalla */
    background-position: center;           /* Centra la imagen */
    background-repeat: no-repeat;          /* No se repite */
    background-attachment: fixed;          /* El fondo se queda quieto al hacer scroll */
    image-rendering: -webkit-optimize-contrast; /* Ayuda a que se vea un poco más definida */
}

/* Contenedor del logo: sin mucho espacio abajo */
.container-logo {
    text-align: center;
    padding: 10px 0; /* Espacio mínimo arriba y abajo */
}

.title{
    text-align: center;
    font-size: 1.8rem;
    color: #ffffff;
    margin: 10px 0 30px 0; /* 10px arriba, 30px abajo */
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Sombra para que "salte" del fondo */
}


.container{
    width: 100%;
    max-width: 1200px;
    height: 430px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: auto;
}

.container .card{
    background-color: rgba(255, 255, 255, 0.9); /* 90% blanco, 10% transparente */
    backdrop-filter: blur(5px); /* Desenfoca un poco el fondo detrás de la tarjeta */
    width: 330px;
    height: 430px;
    border-radius: 8px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin: 20px;
    text-align: center;
    transition: all 0.25s;
}

.container .card:hover{
    transform: translateY(-15px);
    box-shadow: 0 12px 16px rgba(0, 0, 0, 0.2);
}

.container .card img{
    width: 330px;
    height: 250px;
}


.container .card h4{
    font-weight: 600;
}

.container .card p{
    padding: 0 1rem;
    font-size: 16px;
    font-weight: 300;
}

.container .card a {
    font-weight: 500;
    text-decoration: none;
    color: #3498db;
}


/* Cuando la pantalla sea menor a 768px (tablets y celulares) */
@media screen and (max-width: 768px) {
    .container .card {
        width: 90%;      /* La tarjeta ocupará casi todo el ancho de la pantalla */
        max-width: 330px; /* Pero no crecerá más de lo que ya mide */
        margin: 15px auto; /* Las centramos y les damos espacio vertical */
        height: auto;     /* Permitimos que el alto crezca si el texto es largo */
    }

    .container .card img {
        width: 100%;     /* La imagen se ajusta al ancho de la tarjeta */
        height: auto;    /* Mantiene la proporción original */
    }

    .title {
        font-size: 28px; /* Título un poco más pequeño en móviles */
        margin-top: 30px;
        padding: 0 10px;
    }
}





























































