body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f6f8f7;
}

/* PRODUCTO */

.product {
    display: flex;
    gap: 60px;
    padding: 120px 10%;
    align-items: center;
}

.product-image img {
    width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.product-info {
    max-width: 500px;
}

.product-info h1 {
    font-size: 2.5rem;
    color: #1db954;
}

.description {
    margin: 20px 0;
    color: #555;
    line-height: 1.6;
}

.selector select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.price h2 {
    margin-top: 20px;
    font-size: 2rem;
}

.add-cart {
    margin-top: 25px;
    padding: 14px 30px;
    background: #1db954;
    border: none;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.add-cart:hover {
    background: #159a45;
    transform: translateY(-3px);
}

/* BOTÓN CESTA */

.cart-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* PANEL CESTA */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 9998;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: white;
    padding: 25px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.2);
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    z-index: 9999;
}
#cartItems {
    max-height: 300px;
    overflow-y: auto;
}
.cart-panel.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-footer {
    margin-top: 30px; /* ya no lo empuja al fondo */
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background: #1db954;
    border: none;
    color: white;
    border-radius: 20px;
    cursor: pointer;
}
/* =============================== */
/* BOTÓN CATEGORÍAS IZQUIERDA */
/* =============================== */

.menu-toggle {
    position: fixed;
    top: 15px;
    left: 20px;
    display: inline-flex; /* clave */
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px; /* más pequeño */
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 10000;
    transition: all 0.3s ease;
    width: auto; /* IMPORTANTE */
    max-width: fit-content; /* evita que se estire */
}

.menu-toggle.hide {
    opacity: 0;
    pointer-events: none;
}

.menu-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.menu-toggle span {
    margin-left: 8px;
}
/* ================= MENU LATERAL ================= */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 9998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -350px;
    width: 320px;
    height: 100%;
    background: #f9f9f9;
    padding: 30px 25px;
    box-shadow: 10px 0 40px rgba(0,0,0,0.15);
    transition: left 0.4s ease;
    z-index: 9999;
}

.side-menu.active {
    left: 0;
}

.menu-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.menu-header h2 {
    font-size: 1.1rem;
    color: #1db954;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.menu-links a {
    text-decoration: none;
    font-weight: 600;
    color: #222;
    transition: 0.3s;
}

.menu-links a:hover {
    color: #1db954;
    transform: translateX(6px);
}
/* ========================= */
/* ITEMS CARRITO */
/* ========================= */

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f5f5;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.remove-btn {
    background: none;
    border: none;
    color: red;
    cursor: pointer;
    font-size: 1rem;
}

.remove-btn:hover {
    transform: scale(1.2);
}
/* ======================================= */
/* SECCIÓN CONTACTO CON FONDO */
/* ======================================= */

.game-contact-section {
    width: 100%;
    height: 70vh;
    background: url("juegos1.jpg") center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
}

.game-contact-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.75)
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 15%;
    text-align: center;
    color: white;
}

.game-contact-overlay h2 {
    font-size: 2rem;
    max-width: 900px;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* BOTÓN CONTACTO */

.contact-btn {
    padding: 14px 35px;
    background: #1db954;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
}

.contact-btn:hover {
    background: #159a45;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(29,185,84,0.4);
}

/* ======================================= */
/* FORMULARIO */
/* ======================================= */

.contact-form-section {
    padding: 100px 10%;
    background: #f6f8f7;
    display: flex;
    justify-content: center;
}

.form-container {
    width: 100%;
    max-width: 600px;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.form-container h2 {
    text-align: center;
    color: #1db954;
    margin-bottom: 40px;
    font-size: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form input,
form textarea {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #1db954;
    box-shadow: 0 0 10px rgba(29,185,84,0.2);
}

form button {
    padding: 14px;
    background: #1db954;
    border: none;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

form button:hover {
    background: #159a45;
    transform: translateY(-3px);
}
/* ========================= */
/* BOTONES PRODUCTO */
/* ========================= */

.product-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.contact-inline-btn {
    padding: 14px 25px;
    background: transparent;
    border: 2px solid #1db954;
    color: #1db954;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-inline-btn:hover {
    background: #1db954;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(29,185,84,0.3);
}
/* ================= FOOTER ================= */

footer {
    background: #0a0a0a;
    padding: 90px 10%;
    text-align: center;
    color: #aaa;
    margin-top: 80px;
}

footer h2 {
    font-size: 2.8rem;
    color: #1db954;
    margin-bottom: 20px;
}

.legal-links {
    margin: 35px 0;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.legal-links a {
    padding: 12px 24px;
    border: 1px solid rgba(29,185,84,0.4);
    border-radius: 8px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.legal-links a:hover {
    background: #1db954;
    color: #000;
    box-shadow: 0 0 20px rgba(29,185,84,0.4);
}

.dev a {
    color: #aaa;
    text-decoration: none;
}

.dev a:hover {
    color: #1db954;
}

.copy {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}
/* ================= TOPBAR ================= */

.topbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(90deg,#1db954,#17a74a);
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 12px;
    z-index: 1000;
}

.topbar a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}