* {
    box-sizing: border-box;
}

.navbar {
    padding: 15px;
    text-align: center;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    letter-spacing: 1px;
    position: relative;
    transition: 0.3s ease;
}

.navbar a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: white;
    left: 0;
    bottom: -5px;
    transition: 0.4s;
}

.navbar a:hover::after,
.active::after {
    width: 100%;
}
.navbar li {
    margin: 0 15px;
}

.active {
    border-bottom: 4px solid rgb(252, 251, 251);
}

.columna {
    float: left;
    padding: 20px; 
    min-height: 500px;
    border-radius: 20px; 
    margin-bottom: 20px;
}

body {
    background-color: #8b0000; 
    background-image: radial-gradient(rgba(255,255,255,0.12) 10%, transparent 11%);
    background-size: 35px 35px; 
    background-attachment: fixed;
}
    
h2 {
    text-align: center;
    color: rgb(255, 255, 255);
}

.contenedor-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 20px;
}

.card {
    background-color: rgba(255, 255, 255, 0.25);
    border: 2px solid rgb(220, 0, 0);
    border-radius: 15px;
    padding: 25px;
    width: 320px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
    margin: 0 auto;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.7);
}

.card h3 {
    color: rgb(253, 253, 253);
    margin-top: 0;
    font-family: 'Georgia', serif;
    text-align: center;
}

.card p {
    color: rgb(255, 255, 255);
    line-height: 1.5;
    font-family: 'Georgia', serif;
}

.boton-card {
    background-color: rgb(220, 0, 0); 
    color: white;
    text-decoration: none;
    text-align: center;
    padding: 12px 20px;
    border-radius: 25px; 
    font-weight: bold;
    font-family: 'Georgia', serif;
    margin-top: 20px;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(220, 0, 0, 0.3);
}

.boton-card:hover {
    background-color: rgb(180, 0, 0);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 0, 0, 0.5);
}

.enlace-vuelta {
    width: 100%;
    text-align: center;
    margin: 50px 0;
    clear: both;
    display: block;
    list-style: none;
}

.enlace-vuelta a {
    background-color: rgba(255, 255, 255, 0.25);
    border: 2px solid rgb(220, 0, 0);
    border-radius: 20px;
    padding: 12px 30px;
    color: rgb(255, 254, 254);
    font-family: 'Georgia', serif;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    appearance: none;
}

.enlace-vuelta a:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.4);
}

.gif-historia {
    display: block;
    margin: 0 auto 20px auto;
    width: 80%;
    max-width: 400px;
    border-radius: 20px;
}

@media screen and (max-width: 600px) {
    .card, .columna, .iresponsive {
        width: 100%;
    }

    .navbar a {
        font-size: 0.85rem !important; 
        padding-bottom: 2px;
    }

    .navbar li {
        margin: 0 8px !important; 
    }

    .active {
        border-bottom: 2px solid rgb(220, 0, 0);
    }
 
    .card, .columna, .iresponsive { 
        width: 100%; } 
    } 
