/* ==========================================================================
   ESTILOS GENERALES Y RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    /* Elimina el recuadro celeste/gris al tocar en celulares */
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #f4f6f9;
    color: #333;
    overflow-x: hidden;
}

.header {
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 3rem 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.header p {
    color: #aaa;
    font-size: 1.1rem;
}

/* ==========================================================================
   GRILLA Y TARJETAS (CARDS)
   ========================================================================== */
.catalogo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    width: 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.img-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-info {
    padding: 1.5rem;
    text-align: center;
}

.card-info h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #222;
}

.precio {
    font-size: 1.3rem;
    font-weight: bold;
    color: #d90429;
    margin-bottom: 1rem;
}

.btn {
    background-color: #d90429;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #ef233c;
}

/* ==========================================================================
   EFECTO 1: MODO FOCO / RUEDA GTA V ESTÉTICA MEJORADA
   ========================================================================== */
.modal-foco {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-foco.activo {
    opacity: 1;
    pointer-events: auto;
}

.btn-cerrar-foco {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.2s;
    z-index: 1010;
}

.btn-cerrar-foco:hover {
    background: #d90429;
    border-color: #d90429;
}

.rueda-gta-container {
    position: relative;
    width: 480px; 
    height: 480px; 
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* PREVIENE QUE EL CÍRCULO SE HAGA OVALADO EN MÓVIL */
    flex-shrink: 0;
}

.modal-foco.activo .rueda-gta-container {
    transform: scale(1);
}

.rueda-anillo {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    transform: rotate(45deg); 
    box-shadow: 0 0 40px rgba(0,0,0,0.9);
    border: 4px solid #000; 
}

.rueda-slice {
    position: absolute;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle at center, rgba(60, 60, 60, 0.95) 0%, rgba(25, 25, 25, 0.95) 100%);
    border: 3px solid #111; 
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rueda-slice:hover, .rueda-slice.activo {
    background: radial-gradient(circle at center, rgba(240, 240, 240, 0.95) 0%, rgba(200, 200, 200, 0.95) 100%);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
}

.slice-top { top: 0; left: 0; }
.slice-right { top: 0; left: 50%; }
.slice-bottom { top: 50%; left: 50%; }
.slice-left { top: 50%; left: 0; }

.slice-content {
    transform: rotate(-45deg); 
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.15s, transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; 
}

.slice-top .slice-content { margin-bottom: 45px; margin-right: 45px; }
.slice-right .slice-content { margin-bottom: 45px; margin-left: 45px; }
.slice-bottom .slice-content { margin-top: 45px; margin-left: 45px; }
.slice-left .slice-content { margin-top: 45px; margin-right: 45px; }

.slice-content i {
    font-size: 2.2rem; 
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.8)); 
}

.slice-content span {
    font-size: 0.95rem;
}

.rueda-slice:hover .slice-content, .rueda-slice.activo .slice-content {
    color: #111; 
    transform: rotate(-45deg) scale(1.1);
}

.rueda-slice:hover .slice-content i, .rueda-slice.activo .slice-content i {
    filter: drop-shadow(0 2px 3px rgba(255,255,255,0.6)); 
}

.rueda-centro {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; 
    height: 300px; 
    border-radius: 50%;
    background: #111;
    border: 4px solid #000; 
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.rueda-img-central {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.rueda-pantalla-info {
    position: absolute;
    bottom: -70px;
    width: 150%;
    text-align: center;
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.8), transparent);
    padding: 10px 0;
}

@media (max-width: 550px) {
    .rueda-gta-container { transform: scale(0.65); }
    .modal-foco.activo .rueda-gta-container { transform: scale(0.75); }
}

/* ==========================================================================
   EFECTO 2: CARTA GIRATORIA 3D
   ========================================================================== */
.card-flip-container {
    background-color: transparent;
    width: 320px;
    height: 380px;
    perspective: 1000px;
}

.card-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card-flip-inner.girada {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    background: #fff;
    overflow: hidden;
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
}

.card-back h3 {
    font-size: 1.5rem;
    color: #d90429;
    margin-bottom: 20px;
}

.lista-carta {
    list-style: none;
    text-align: left;
    width: 100%;
    line-height: 2;
    color: #444;
}

.lista-carta li {
    border-bottom: 1px solid #ddd;
    padding: 5px 0;
}

.btn-cerrar-carta {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #333;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-cerrar-carta:hover {
    background: #d90429;
}

/* ==========================================================================
   EFECTO 3: FLUIDO/MODERNO (MONSTER ENERGY)
   ========================================================================== */
.card-monster .img-zoom {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-monster:hover .img-zoom {
    transform: scale(1.15);
}

.panel-lateral {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: #000;
    color: #fff;
    z-index: 1100;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    overflow-y: auto;
}

.panel-lateral.activo {
    right: 0;
}

.btn-cerrar-lateral {
    background: #111;
    color: #fff;
    border: none;
    padding: 20px;
    width: 100%;
    text-align: right;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #333;
    transition: color 0.3s;
}

.btn-cerrar-lateral:hover {
    color: #d90429;
}

.contenido-lateral {
    padding: 2rem;
}

.contenido-lateral h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.lista-premium {
    list-style: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.lista-premium li {
    padding: 12px 0;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    color: #ccc;
}

.lista-premium strong {
    color: #fff;
}

/* ==========================================================================
   EFECTO 4: INTERFAZ DINÁMICA (ESTILO SMASH BROS)
   ========================================================================== */
.btn-smash {
    background-color: #0077b6; 
}
.btn-smash:hover {
    background-color: #03045e;
}

.modal-smash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 15, 20, 0.98);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-smash.activo {
    opacity: 1;
    pointer-events: auto;
}

.smash-layout {
    width: 90vw;
    height: 85vh;
    background: #1e1e24; 
    border-radius: 10px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 191, 255, 0.2); 
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-smash.activo .smash-layout {
    transform: scale(1);
}

.smash-img-section {
    width: 45%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    position: relative;
}

.smash-img-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.smash-img-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-right: 15px solid #00d2ff;
    pointer-events: none;
}

.smash-info-section {
    width: 55%;
    padding: 30px 40px 30px 0; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.smash-title-banner {
    background: linear-gradient(90deg, #00b4d8, #0077b6);
    padding: 20px 40px;
    color: white;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%);
    border-bottom: 6px solid #ffd166; 
    margin-bottom: 30px;
    text-align: center;
}

.smash-title-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.smash-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffd166;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.smash-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.smash-box {
    flex: 1 1 45%;
    padding: 20px;
    color: white;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%);
    transition: transform 0.2s, filter 0.2s;
    cursor: pointer;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}

.smash-box:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.smash-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.8);
}

.smash-box p {
    font-size: 1.4rem;
    font-weight: bold;
}

.box-blue { background: #3a0ca3; }
.box-purple { background: #7209b7; }
.box-dark { background: #2b2d42; }
.box-large { 
    flex: 1 1 100%; 
    background: #006d77; 
    clip-path: polygon(2% 0, 100% 0, 98% 100%, 0% 100%); 
}

/* ==========================================================================
   ADAPTACIÓN MEJORADA PARA MÓVILES (SMASH BROS)
   ========================================================================== */
@media (max-width: 768px) {
    .smash-layout {
        flex-direction: column;
        height: 95vh;
    }
    .smash-img-section {
        width: 100%;
        height: 30%; /* Le damos más espacio a la información */
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
        flex-shrink: 0;
    }
    .smash-img-section::after {
        border-right: none;
        border-bottom: 8px solid #00d2ff;
    }
    .smash-info-section {
        width: 100%;
        height: 70%;
        padding: 15px 15px 30px 15px; /* Más espacio al fondo */
        justify-content: flex-start;
        overflow-y: auto; /* Permite deslizar si falta espacio */
    }
    .smash-title-banner { 
        padding: 15px; 
        margin-bottom: 20px; 
    }
    .smash-title-banner h2 { font-size: 1.6rem; }
    .smash-price { font-size: 1.4rem; }
    .smash-box { 
        clip-path: none; 
        border-radius: 8px; 
        padding: 12px;
    }
    .smash-box h3 { font-size: 1rem; margin-bottom: 5px; }
    .smash-box p { font-size: 1.1rem; }
    .box-large { clip-path: none; }
}