/* HOJA DE ESTILOS PRINCIPAL
   Sitio Web: Lanzamientos de Videojuegos 2026 */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #1a1a2e;
    /* Patrón de fondo sutil */
    background-image: 
        radial-gradient(circle at 25% 25%, #16213e 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, #0f3460 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* ----- ENCABEZADO (HEADER) ----- */
header {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    color: #ffffff;
    text-align: center;
    padding: 40px 20px;
    border-bottom: 4px solid #e94560;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header .subtitulo {
    font-size: 1.2em;
    color: #e94560;
    font-style: italic;
}

/* ----- NAVEGACIÓN (NAV) ----- */
nav {
    background-color: #16213e;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.1em;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: #e94560;
    color: #ffffff;
}

nav ul li a.activo {
    background-color: #e94560;
    color: #ffffff;
    font-weight: bold;
}

/* ----- CONTENIDO PRINCIPAL (MAIN) ----- */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ----- SECCIONES ----- */
section {
    background-color: #16213e;
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

section h2 {
    color: #e94560;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e94560;
}

/* ----- ARTÍCULOS DE JUEGOS ----- */
article.juego {
    background-color: #1a1a2e;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    border-left: 5px solid #e94560;
}

article.juego h3 {
    color: #00d9ff;
    font-size: 1.5em;
    margin-bottom: 15px;
}

article.juego h4 {
    color: #e94560;
    margin-top: 15px;
    margin-bottom: 10px;
}

article.juego img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: block;
}

article.juego p {
    margin-bottom: 10px;
}

/* ----- LISTAS ----- */
ul, ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
}

/* ----- TABLA ----- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #1a1a2e;
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background-color: #e94560;
    color: #ffffff;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #0f3460;
}

tbody tr:hover {
    background-color: #0f3460;
}

/* ----- MULTIMEDIA ----- */
.video-container, .audio-container {
    background-color: #1a1a2e;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    text-align: center;
}

.video-container h3, .audio-container h3 {
    color: #00d9ff;
    margin-bottom: 15px;
}

.video-container iframe {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 15px;
}

audio {
    width: 100%;
    max-width: 400px;
    margin-top: 15px;
}

/* ----- GALERÍA ----- */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

figure {
    background-color: #1a1a2e;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

figure img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

figcaption {
    margin-top: 10px;
    color: #00d9ff;
    font-style: italic;
}

/* ----- FORMULARIO ----- */
form {
    background-color: #1a1a2e;
    padding: 30px;
    border-radius: 10px;
}

fieldset {
    border: 2px solid #0f3460;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

legend {
    color: #e94560;
    font-size: 1.2em;
    font-weight: bold;
    padding: 0 15px;
}

.campo {
    margin-bottom: 20px;
}

.campo label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-weight: 500;
}

.campo input[type="text"],
.campo input[type="email"],
.campo input[type="number"],
.campo input[type="tel"],
.campo input[type="url"],
.campo input[type="date"],
.campo select,
.campo textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #0f3460;
    border-radius: 5px;
    background-color: #16213e;
    color: #e0e0e0;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    outline: none;
    border-color: #e94560;
}

.campo input::placeholder,
.campo textarea::placeholder {
    color: #6c757d;
}

/* Validación visual */
.campo input:valid {
    border-color: #28a745;
}

.campo input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

/* Radio y Checkbox */
.opciones-radio, .opciones-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.opciones-radio label, .opciones-checkbox label {
    display: inline;
    margin-left: 5px;
    cursor: pointer;
}

.checkbox-unico {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-unico label {
    display: inline;
    margin-bottom: 0;
}

/* Range input */
input[type="range"] {
    width: 200px;
    cursor: pointer;
}

output {
    color: #00d9ff;
    font-weight: bold;
    margin-left: 10px;
}

/* Color input */
input[type="color"] {
    width: 60px;
    height: 40px;
    border: none;
    cursor: pointer;
}

/* Botones */
.botones {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

button {
    padding: 15px 30px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"] {
    background-color: #e94560;
    color: #ffffff;
}

button[type="submit"]:hover {
    background-color: #c73e54;
    transform: translateY(-2px);
}

button[type="reset"] {
    background-color: #6c757d;
    color: #ffffff;
}

button[type="reset"]:hover {
    background-color: #5a6268;
}

.requerido {
    color: #e94560;
}

/* ----- PIE DE PÁGINA (FOOTER) ----- */
footer {
    background-color: #0f3460;
    color: #e0e0e0;
    text-align: center;
    padding: 25px;
    margin-top: 30px;
}

footer p {
    margin-bottom: 5px;
}

.destacado {
    color: #e94560;
    font-weight: bold;
}

/* ----- ELEMENTOS ESPECIALES POR ID ----- */
#introduccion {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    border: 1px solid #e94560;
}

#formulario {
    border: 2px solid #e94560;
}

/* ----- ENLACES ----- */
a {
    color: #00d9ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #e94560;
    text-decoration: underline;
}

/* ----- RESPONSIVE DESIGN ----- */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .galeria-grid {
        grid-template-columns: 1fr;
    }

    .botones {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    table {
        font-size: 0.9em;
    }

    th, td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    section {
        padding: 20px;
    }

    fieldset {
        padding: 15px;
    }

    .video-container iframe {
        height: 200px;
    }
}
