@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@400;700&display=swap');

h1, h2, h3{
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
}

p, a, li {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

.titulo_inicio{
    font-size: 28px;
    color: rgb(255, 255, 255);
    text-align: center;
}

.caja {
    color: white;
}

.contenedor_principal{
    display: grid; /* Activamos el modo cuadrícula */

    /* Esto significa: "Crea tantas columnas como quepan, pero que cada una mida MÍNIMO 250 píxeles" */
    grid-template-columns: repeat(auto-fit, minmax(250 px, 1fr));

    gap: 10px; /* Espacio entre las cajas */

    padding: 10px; /* Un borde exterior */
}

/* ESTILO DE LA PORTADA */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    padding: 100px;

    background-image: url(Imagen/fondo_web.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* --- ESTILO DE LA PORTADA --- */
.hero-banner {
    background-color: #2c3e50; /* Fondo oscuro elegante */
    color: white;              /* Texto blanco */
    text-align: center;        /* Todo centrado */
    padding: 60px 20px;        /* Espacio arriba y abajo */
    margin-bottom: 20px;
}

.boton-hero {
    background-color: #ff7b00; /* Tu color naranja */
    color: white;
    padding: 10px 20px;
    text-decoration: none;     /* Quita el subrayado */
    border-radius: 20px;       /* Bordes redondos */
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
}

/* --- ESTILO DEL SPOTLIGHT (Juego Destacado) --- */
.spotlight-juego {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(20,20,35,0.9) 0%, rgba(40,40,60,0.8) 100%);
    border: 1px solid #ff7b00; /* Borde naranja marca de la casa */
    border-radius: 15px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 123, 0, 0.2);
}

.etiqueta-destacado {
    position: absolute;
    top: 0;
    left: 0;
    background: #ff7b00;
    color: white;
    padding: 5px 15px;
    font-size: 0.8em;
    font-weight: bold;
    border-bottom-right-radius: 10px;
}

.info-spotlight {
    flex: 1;
    color: white;
    padding-right: 20px;
}

.info-spotlight h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2em;
    margin-bottom: 10px;
    color: #fff;
}

.boton-spotlight {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.boton-spotlight:hover {
    background: white;
    color: black;
}

.imagen-spotlight {
    flex: 1;
    height: 200px;
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Aquí podrías poner: background-image: url('juego.jpg'); */
}

/* --- ESTILO DE NOTICIAS DUO (Indie vs Corpo) --- */
.noticias-duo {
    display: flex;
    gap: 20px;
}

.tarjeta-noticia {
    flex: 1; /* Ocupan 50% cada una */
    padding: 25px;
    border-radius: 10px;
    color: #ddd;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s;
}

.tarjeta-noticia:hover {
    transform: translateY(-5px);
}

/* Estilo para la noticia Indie (Esperanzadora) */
.tarjeta-noticia.indie {
    background: rgba(0, 40, 20, 0.7); /* Tono verdoso oscuro */
    border-left: 4px solid #00ff88;
}

.tarjeta-noticia.indie h3 { color: #00ff88; }

/* Estilo para la noticia Corpo (Crítica) */
.tarjeta-noticia.corpo {
    background: rgba(40, 10, 10, 0.7); /* Tono rojizo oscuro */
    border-left: 4px solid #ff4444;
}

.tarjeta-noticia.corpo h3 { color: #ff4444; }

.cabecera-noticia {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.tarjeta-noticia h4 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 1.2em;
}

.enlace-noticia {
    display: block;
    margin-top: 15px;
    color: white;
    font-size: 0.9em;
    text-decoration: underline;
}

/* Adaptación para móvil */
@media (max-width: 768px) {
    .spotlight-juego { flex-direction: column; text-align: center; }
    .info-spotlight { padding-right: 0; margin-bottom: 20px; }
    .noticias-duo { flex-direction: column; }
}

html {
    scroll-behavior: smooth; /* Para ir despacio */
}

.imagen-spotlight:hover {
    transform: scale(1.02); /* Crece un poquito al pasar el ratón */
    border-color: #ff7b00 !important; /* El borde se pone naranja */
    transition: transform 0.2s;
}