/* Estilos Generales */
body {
    font-family: 'Bangers', cursive;
    background-color: #d7c32d; /* Rosa claro para un toque divertido */
    color: #fff;
    line-height: 1.6;
    margin: 0;
}

.main-header, .main-footer {
    background-color: #000000; /* Naranja cartoon */
    color: #ffde00;
    text-align: center;
    padding: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.main-header .logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.5rem;
    /*text-shadow: 3px 3px 0 #38b6ff; /* Sombra para el texto */
}

.main-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 20px;
    background-color: #2f99d6; /* Naranja más suave */
    transition: background-color 0.3s, transform 0.3s;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-shadow: 1px 2px #222222;
}

.main-nav a:hover {
    background-color: #38b6ff;
    transform: translateY(-3px); /* Efecto de "salto" al pasar el mouse */
}

.main-content {
    padding: 2rem;
    max-width: 960px;
    margin: auto;
    letter-spacing: 1px;
}

section {
    background-color: #000000;
    border: 3px solid #38b6ff; /* Borde para simular un cómic */
    border-radius: 25px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 8px 8px 0 #38b6ff; /* Sombra para efecto de profundidad */
    transition: transform 0.3s;
    font-size: 18px;
}

.hero-section p {
    letter-spacing: 1px;
}

section:hover {
    transform: translate(4px, 4px); /* Efecto de hundimiento */
    box-shadow: 4px 4px 0 #38b6ff;
}

h2, h3, h4 {
    /*font-family: 'Bangers', cursive;*/
    font-family: 'Press Start 2P', cursive;
    color: #ffde00; /* Rojo */
    text-shadow: 2px 2px #1d1d1d;
}

.button {
    display: inline-block;
    background-color: #4db6ac; /* Verde azulado */
    color: #fff;
    padding: 15px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Press Start 2P', cursive;
    box-shadow: 5px 5px 0 #00897b;
    transition: transform 0.2s, box-shadow 0.2s;
}

.button:hover {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 #00897b;
}

.featured-games-section {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}

.featured-game {
    width: 45%;
    margin-bottom: 20px;
}

.featured-game a{
    text-decoration: none;
}

.featured-game img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    border: 3px solid #ffde00;
    box-shadow: 5px 5px 0 #ffde00;
}

.main-footer a {
    color: #fff;
    text-decoration: none;
    margin-top: 10px;
    display: block;
}

/* Estilos Específicos para la página de Portafolio */

.portfolio-section {
    text-align: center;
}

.games-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Espacio entre las fichas de los juegos */
}

.game-card {
    background-color: #3d94db; /* Amarillo pastel para las fichas */
    border: 3px solid #38b6ff; /* Borde naranja */
    border-radius: 25px;
    padding: 20px;
    width: 300px;
    text-align: center;
    box-shadow: 8px 8px 0 #38b6ff;
    transition: transform 0.3s;
}

.game-card a {
    text-decoration: none;
}

.game-card:hover {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 #38b6ff;
}

.game-card img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    border: 3px solid #ffde00;
    box-shadow: 5px 5px 0 #ffde00;
    margin-bottom: 15px;
}

.game-details h3 {
    margin-top: 0;
    color: #ffffff;
}

.game-details p {
    color: #000000;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}

/* Estilos Específicos para Páginas de Juegos (juegoX.html) */

.game-page-hero {
    text-align: center;
    /* Usamos los estilos de 'section' definidos antes */
}

.game-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.game-banner-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover; /* Asegura que la imagen cubra el área sin deformarse */
    border-radius: 15px;
    border: 5px solid #ffde00; /* Borde rojo-naranja llamativo */
    box-shadow: 10px 10px 0 #ffde00;
}

.game-details-section {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.description-block {
    flex: 2; /* Ocupa más espacio que el bloque de características */
    padding-right: 20px;
    letter-spacing: 1px;
    text-align: justify;
}

.features-block {
    flex: 1;
    background-color: #3d94db; /* Fondo verde muy claro */
    border: 3px solid #38b6ff;
    border-radius: 20px;
    padding: 4px;
    padding-left: 6px;
    box-shadow: 6px 6px 0 #38b6ff;
}

.features-block ul {
    list-style: none;
    padding: 0;
}

.features-block li {
    font-family: Arial, sans-serif;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

/* Icono de palomita (check) estilo cartoon usando CSS */
.features-block li::before {
    content: "★"; 
    color: #ffc107; /* Estrella amarilla */
    font-size: 1.2rem;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.download-links {
    margin-top: 30px;
    text-align: center;
}

.store-button {
    margin: 5px;
    font-size: 0.8rem;
}

.gallery-section {
    text-align: center;
}

.image-gallery {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.image-gallery img {
    width: 30%;
    min-width: 250px;
    height: auto;
    border-radius: 10px;
    border: 3px dashed #9c27b0; /* Borde punteado morado */
    box-shadow: 4px 4px 0 #ba68c8;
    transition: transform 0.3s;
}

.image-gallery img:hover {
    transform: scale(1.05) rotate(1deg); /* Efecto de zoom y giro */
}

.privacy-section {
    text-align: center;
    background-color: #000000;
}

.privacy-btn {
    background-color: #9c27b0;
    box-shadow: 5px 5px 0 #7b1fa2;
}

.privacy-btn:hover{
    box-shadow: 2px 2px 0 #7b1fa2;
}

/* Estilos Específicos para la Página de Política de Privacidad (privacy.html) */

.privacy-policy-container {
    /* Usamos el estilo de 'section' para el borde y la sombra cartoon */
    background-color: #fff;
}

.privacy-policy-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.last-updated {
    text-align: center;
    font-style: italic;
    font-family: Arial, sans-serif;
    color: #6a1b9a; /* Color morado */
}

.policy-section {
    margin-bottom: 25px;
    padding: 15px;
    border-left: 5px solid #ff9800; /* Barra lateral naranja */
    background-color: #fffde7; /* Fondo ligeramente amarillo para diferenciar */
    border-radius: 5px;
}

.policy-section h3, .policy-section h4 {
    color: #d32f2f;
    border-bottom: 2px dashed #f44336; /* Línea discontinua */
    padding-bottom: 5px;
    margin-top: 0;
}

.policy-section p, .policy-section ul, .policy-section li {
    font-family: Arial, sans-serif; /* Fuente clara y legible para el contenido legal */
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
}

.policy-section ul {
    list-style-type: square; /* Puntos cuadrados */
    margin-left: 20px;
}

.back-to-home-btn {
    display: block;
    width: fit-content;
    margin: 30px auto 0 auto;
    background-color: #6a1b9a; /* Morado */
    box-shadow: 5px 5px 0 #4a148c;
}

.back-to-home-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 #4a148c;
}

/* Estilos Específicos para la Página Sobre Nosotros (about.html) */

.about-us-container {
    text-align: center;
}

.mission-statement {
    font-size: 1.2rem;
    font-family: Arial, sans-serif;
    color: #ffffff;
    max-width: 800px;
    margin: 20px auto 40px auto;
}

.values-block {
    background-color: #e3f2fd; /* Azul muy claro */
    border: 3px solid #38b6ff; /* Borde azul */
    border-radius: 20px;
    padding: 20px;
    box-shadow: 6px 6px 0 #38b6ff;
    margin-bottom: 30px;
}

.values-block ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
    font-family: Arial, sans-serif;
    font-size: 1.1rem;
    color: #2f99d6;
    font-weight: bold;
}

.team-block h3 {
    margin-bottom: 30px;
}

.team-members {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.team-member-card {
    width: 250px;
    background-color: #39dad5;
    border: 3px solid #ffde00;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 5px 5px 0 #ffde00;
    transition: transform 0.3s;
    
    
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 #ffde00;
}

.team-member-card img {
    width: 100%;
    height: auto;
    border-radius: 50%; /* Foto de perfil circular */
    border: 4px solid #ffde00;
    object-fit: cover;
    margin-bottom: 10px;
    box-shadow: 2px 2px 10px #1d1d1d;
}

.team-member-card p {
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: #000000;
}

.social-links {
    margin-top: 20px;
}

.social-btn {
    margin: 0 10px;
    background-color: #6a1b9a;
    box-shadow: 5px 5px 0 #4a148c;
}

.social-btn:hover{
    box-shadow: 3px 3px 0 #4a148c;
}

/* Estilos Específicos para la Página de Contacto (contact.html) */

.contact-section {
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    padding: 30px;
    background-color: #fce4ec; /* Rosa claro */
    border: 4px solid #e57373; /* Rojo */
    border-radius: 20px;
    box-shadow: 10px 10px 0 #e57373;
}

.form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: 'Bangers', cursive;
    color: #d32f2f;
    font-size: 1.2rem;
}

.contact-form input[type="text"], 
.contact-form input[type="email"], 
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 3px solid #ffb74d; /* Naranja */
    border-radius: 10px;
    box-sizing: border-box; /* Incluye padding y borde en el ancho total */
    font-family: Arial, sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: #4db6ac; /* Verde azulado al enfocar */
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.submit-button {
    width: 100%;
    font-size: 1.2rem;
    margin-top: 15px;
    cursor: pointer;
}

.required-note {
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    text-align: right;
    color: #777;
}

/* Estilo para los mensajes de error de JavaScript */
.error-message {
    color: #d32f2f;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    margin-top: 5px;
    height: 15px; /* Para evitar saltos de diseño */
}

/* ================================================= */
/* MEDIA QUERY: Tabletas y Móviles Grandes (Máximo 900px) */
/* ================================================= */
@media (max-width: 900px) {
    
    .main-content {
        padding: 1rem; /* Reducir el padding general */
    }

    /* Ajuste de navegación para ahorrar espacio */
    .main-nav ul {
        flex-wrap: wrap; /* Permitir que los elementos salten de línea */
        gap: 10px;
        margin-top: 10px;
    }
    
    .main-header .logo {
        font-size: 2rem;
    }

    /* Páginas de Juegos: Poner la descripción y características en columnas separadas */
    .game-details-section {
        flex-direction: column; /* Apilar los bloques verticalmente */
    }
    
    .description-block {
        padding-right: 0; /* Eliminar el padding extra */
        margin-bottom: 20px;
    }

    .features-block {
        width: 100%;
    }

    /* Portafolio: Permitir que las fichas de juego sean más anchas */
    .games-list {
        gap: 20px;
    }
    
    .game-card {
        width: 45%; /* Dos tarjetas por fila */
    }
    
    /* Sobre Nosotros: Ajuste de valores */
    .values-block ul {
        flex-direction: column; /* Apilar los valores */
        gap: 10px;
    }
}

/* ================================================= */
/* MEDIA QUERY: Móviles (Máximo 600px) */
/* ================================================= */
@media (max-width: 600px) {
    
    /* Encabezado y Pie de Página */
    .main-header, .main-footer {
        padding: 1rem 0.5rem;
    }

    .main-header .logo {
        font-size: 1.5rem; /* El logo más pequeño */
    }

    /* Navegación: un enlace por fila si es necesario */
    .main-nav ul {
        flex-direction: row; 

    }

    .main-nav ul li {
       margin: 3px;
    }

    /* Secciones Generales */
    section {
        border-radius: 15px;
        box-shadow: 5px 5px 0 #38b6ff; /* Reducir la sombra de profundidad */
    }

    .contact-section h3{
        font-size: 75%;
        margin-left: -15px;
    }
    
    section:hover {
        transform: none; /* Eliminar el efecto de 'hundimiento' en móviles */
        box-shadow: 5px 5px 0 #38b6ff;
    }

    /* Portafolio: Una sola tarjeta por fila */
    .game-card {
        width: 90%; /* Una tarjeta ocupa casi todo el ancho */
        margin-bottom: 20px;
    }
    
    /* Página de Juego: Galería */
    .image-gallery img {
        width: 95%; /* Las imágenes de la galería ocupan casi todo el ancho */
        min-width: 0;
        margin-bottom: 10px;
    }

    /* Contacto: Botones y formulario */
    .submit-button {
        font-size: 1rem;
    }
    
    /* Sobre Nosotros: Tarjetas de equipo */
    .team-member-card {
        width: 90%;
    }
    
    .team-members {
        gap: 20px;
    }

    /*Botones Morados*/
    .social-btn{
        margin: 5px;
    }

    .mission-statement{
        text-align: justify;
    }

    .game-title{
        font-size: 26px;
    }

    .features-block h3{
        font-size: 18px;
    }
}