/* General */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    text-align: center;
}


/* Header */

header {
    background-color: #222;
    color: #fff;
    padding: 10px 0;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header nav {
    margin-top: 10px;
}

header nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.2rem;
}

header nav a:hover {
    text-decoration: underline;
}


/* Carousel */

.carousel {
    width: 70%;
    /* Tamaño del carrusel */
    height: 400px;
    /* Altura específica */
    margin: 20px auto;
    overflow: hidden;
    /* Oculta contenido fuera del contenedor */
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ajusta las imágenes sin recortarlas */
    border-radius: 10px;
}


/* Footer */

footer {
    background-color: #222;
    padding: 20px 0;
    margin-top: 30px;
}

footer .social a {
    margin: 0 10px;
    display: inline-block;
}

footer .social img {
    transition: transform 0.3s;
}

footer .social img:hover {
    transform: scale(1.1);
}


/* General */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    text-align: center;
}


/* Header */

header {
    background-color: #222;
    color: #fff;
    padding: 20px 0;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header nav {
    margin-top: 10px;
}

header nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.2rem;
}


/* Carrusel */

.carousel {
    width: 70%;
    height: 500px;
    margin: 20px auto;
    overflow: hidden;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}


/* Grid de juegos */

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px auto;
    max-width: 80%;
}

.game-card {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    background-color: #fff;
}

.game-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.game-info h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: #222;
}

.game-info p {
    margin: 5px 0;
}

.game-info .price {
    font-weight: bold;
    color: #28a745;
}


/* Footer */

footer {
    background-color: #222;
    color: #fff;
    padding: 20px 0;
}

footer .social a {
    margin: 0 10px;
}


/* General styles for the game cards section */

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columnas */
    gap: 20px;
    /* Espaciado entre tarjetas */
    margin: 40px auto;
    max-width: 1200px;
    justify-items: center;
}


/* Individual game card styles */

.game-card {
    background: linear-gradient(145deg, #29293f, #1e1e2f);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3), -4px -4px 8px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    text-align: center;
}

.game-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.game-info {
    color: white;
    font-family: 'Arial', sans-serif;
}

.game-info h3 {
    font-size: 1.2em;
    margin: 10px 0;
}

.game-info p {
    margin: 5px 0;
    font-size: 0.9em;
}

.game-info .price {
    font-size: 1em;
    font-weight: bold;
    color: #ffd700;
    margin-top: 10px;
}


/* Hover effect */

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.4), -6px -6px 12px rgba(255, 255, 255, 0.1);
}


/* Popup effect */

.popup-active {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 1000;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
    background-color: #1e1e2f;
    width: 80%;
    max-width: 600px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}


/* Contact Section */

.contact-section {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    padding: 60px 20px;
    color: white;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.5;
    font-family: 'Arial', sans-serif;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.contact-form label {
    font-size: 1rem;
    margin-bottom: 8px;
    display: block;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    background-color: #fff;
    color: #333;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #2575fc;
    outline: none;
}

.submit-btn {
    background-color: #2575fc;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #6a11cb;
}

.contact-info {
    margin-top: 40px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon img {
    transition: transform 0.3s ease;
}

.social-icon img:hover {
    transform: scale(1.1);
}


/* Sobre Nosotros - Estilo Profesional */

.about-section {
    background-color: #f9f9f9;
    padding: 80px 20px;
    color: #333;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    text-align: center;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-section h3 {
    font-size: 2.2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #34495e;
    text-transform: capitalize;
    border-bottom: 2px solid #e74c3c;
    display: inline-block;
    padding-bottom: 5px;
}

.about-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.8;
    color: #7f8c8d;
}

.about-section .intro {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 300;
    color: #34495e;
}

.about-section ul {
    list-style-type: none;
    padding: 0;
    margin-top: 30px;
}

.about-section ul li {
    font-size: 1.1rem;
    margin-bottom: 18px;
    text-align: left;
    padding-left: 25px;
    position: relative;
}

.about-section ul li::before {
    content: "✔";
    color: #e74c3c;
    position: absolute;
    left: 0;
    top: 0;
}

.about-section p strong {
    font-weight: 600;
    color: #2c3e50;
}

.about-section h3,
.about-section p {
    text-align: left;
    margin-left: 20px;
    margin-right: 20px;
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 20px;
    }
    .about-section h2 {
        font-size: 2.5rem;
    }
    .about-section h3 {
        font-size: 1.8rem;
    }
    .about-section p {
        font-size: 1rem;
    }
}


/* Estilo para la sección de productos (Audífonos, Mouse, Micrófonos, Nintendo) */

.products-section {
    background-color: #f8f8f8;
    padding: 60px 20px;
}

.product-category {
    margin-bottom: 50px;
}

.product-category h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-item {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.product-item:hover {
    transform: translateY(-10px);
}

.product-item img {
    width: 100%;
    height: auto;
    display: block;
}

.product-description {
    padding: 15px;
}

.product-description h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #e74c3c;
    margin-bottom: 10px;
}

.product-description p {
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.6;
}


/* Estilos para los botones y hover */

.product-item:hover .product-description {
    background-color: #f0f0f0;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-category h2 {
        font-size: 2rem;
    }
    .product-description h3 {
        font-size: 1.4rem;
    }
}


/* Estilos para la sección de contacto */

.contact-section {
    background-color: #f8f8f8;
    padding: 60px 20px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-section h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-group label {
    font-size: 1.1rem;
    color: #7f8c8d;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.submit-btn {
    background-color: #e74c3c;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.submit-btn:hover {
    background-color: #c0392b;
}


/* Estilos para detalles de contacto y horarios */

.contact-info {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.contact-info ul {
    list-style: none;
    padding-left: 0;
}

.contact-info ul li {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}


/* Mapa */

.contact-map {
    margin-top: 30px;
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
}


/* Estilo para redes sociales */

footer.social {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

footer.social a {
    margin: 0 15px;
}

footer.social img {
    transition: transform 0.3s ease-in-out;
}

footer.social a:hover img {
    transform: scale(1.1);
}