body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f4f4;
    color: #1e1e1e;
}

.hero {
    background-color: #0b001b;
    color: white;
        padding: 30rem 15rem 30rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;

}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;

}

.hero-content .text {
    flex: 1 1 400px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.links a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    border: 1px solid white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.links a:hover {
    background: white;
    color: #0b001b;
}

.hero-img {
    width: 200px;
    border-radius: 50%;
    margin-top: 0rem;
}

.curve {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 80px;
    background: #f4f4f4;
    border-top-left-radius: 100% 30px;
    border-top-right-radius: 100% 30px;
}

main {
    padding: 2rem;
}

.projects h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: grey;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-top: 0;
}

.card a {
    display: inline-block;
    margin-top: 1rem;
    color: #0b001b;
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 2rem;
    background: #0b001b;
    color: white;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}
.featured-game {
    background: #ffffff;
    padding: 4rem 2rem;
}

.featured-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.featured-img {
    flex: 1 1 400px;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.featured-text {
    flex: 1 1 400px;
}

.featured-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0b001b;
}

.featured-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.featured-text a {
    display: inline-block;
    background: #0b001b;
    color: white;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.featured-text a:hover {
    background: #2d2d2d;
}
@media (max-width: 768px) {
 .hero {
        padding: 4rem 1.5rem 5rem; /* Reducido pero manteniendo espacio suficiente */
        text-align: center;
        height: auto;
    }

    .hero-content {
        flex-direction: column-reverse; /* Imagen primero, luego texto */
        align-items: center;
        text-align: center;
        margin-top: 350px;

    }

     
      .hero-content h1 {
        font-size: 1.1rem; /* Tamaño legible en móvil */
        margin-top: -5px;
    }

    .hero-content p {
        font-size: .3rem; /* Tamaño legible */
        max-width: 100%; /* ocupa el ancho completo */
        margin-left: auto;
        margin-right: auto;
        margin-top: -15px;

    }

    .hero-img {
        margin-bottom: .1rem;
        width: 30px;
        height: 30px;
    }

    .links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.1rem;
                margin-top: -20px;

    }

    .links a {
            color: white;
    text-decoration: none;
    margin-right: 15px;
    border: 1px solid white;
    padding: 0.3rem .9rem;
    border-radius: 5px;
    transition: background 0.3s;
    display: inline-block;
    margin-bottom: 0.25rem;
            margin: 4px;
                    max-width: 30px;
                    max-height: 9px;

        font-size:5px;

    }
 
    .curve {
        height: 40px;
    }
    .featured-content {
        flex-direction: column; /* Apila los elementos en móvil */
    }
    
    .featured-img {
        flex: none;
        width: 100%;
        max-width: 100%;
        margin: 0 auto 1rem auto; /* Centra la imagen y añade espacio abajo */
    }
    
    .featured-text {
        width: 100%;
        padding: 0 1rem; /* Añade algo de padding en los laterales */
    }