/* 
 * Estilo Playlude - Nueva Guía de Estilos
 * Paleta de colores: dorado (#efb810), púrpura (#7e42a6), púrpura claro (#b460ec)
 * Texto: #adadad, Fondo: #faf8f5
 * Tipografía: Nunito Sans Expanded (títulos), Nunito Sans (texto)
 * Diseño: minimalista, sofisticado, sensual pero elegante
 */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700&family=Nunito+Sans:wght@300;400;500;600;700&display=swap');

body {
    margin: 0;
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #faf8f5;
    color: #2c2c2c;
    padding-top: 70px; /* Espacio para el header fijo */
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    margin: 0 0.5rem;
}

.peliculas-lista, .historias-lista {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 3rem 1rem 6rem 1rem;
}

/* Header fijo - Estilo elegante y minimalista */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid rgba(239, 184, 16, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 45px;
}

.header-logo img {
    height: 45px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.header-logo img:hover {
    opacity: 0.8;
}

.header-back {
    background: rgba(239, 184, 16, 0.1);
    border: 1px solid rgba(239, 184, 16, 0.4);
    color: #efb810;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.header-back:hover {
    background: rgba(239, 184, 16, 0.2);
    border-color: #efb810;
    transform: scale(1.05);
}

.header-pelicula {
    font-size: 1.1rem;
    font-weight: 400;
    color: #adadad;
    margin-left: 0.5rem;
    font-family: 'Nunito Sans', sans-serif;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Ocultar elementos en móvil */
.header-mobile-only {
    display: none;
}

/* Mostrar elementos solo en desktop */
.header-desktop-only {
    display: flex;
}

.header-user.header-desktop-only {
    display: flex;
}

/* Botón menú hamburguesa (solo móvil) */
.header-menu-btn {
    background: rgba(239, 184, 16, 0.1);
    border: 1px solid rgba(239, 184, 16, 0.4);
    color: #efb810;
    border-radius: 0.5rem;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.header-menu-btn:hover {
    background: rgba(239, 184, 16, 0.2);
    border-color: #efb810;
    transform: scale(1.05);
}

.header-idioma {
    background: #ffffff;
    color: #adadad;
    border: 1px solid rgba(239, 184, 16, 0.3);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Nunito Sans', sans-serif;
}

.header-idioma:hover {
    border-color: #efb810;
    background: rgba(239, 184, 16, 0.05);
}

.header-idioma:focus {
    outline: none;
    border-color: #efb810;
    box-shadow: 0 0 0 2px rgba(239, 184, 16, 0.2);
}

/* Secciones de packs */
.seccion-pack {
    margin-bottom: 0rem;
}

.pack-titulo {
    font-size: 1.4rem;
    font-weight: 600;
    color: #7e42a6;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: none;
    font-family: 'Nunito Sans', sans-serif;
    letter-spacing: 0.5px;
}

/* Grid de películas - 3 por fila */
.peliculas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Tarjetas de películas - Estilo elegante y limpio */
.pelicula-tarjeta {
    background: #ffffff;
    border: 1px solid rgba(239, 184, 16, 0.2);
    border-radius: 0.75rem;
    padding: 0;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Contenedor de imagen */
.pelicula-imagen-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    background: #f5f3f0;
}

.pelicula-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pelicula-tarjeta:hover:not(.disabled) .pelicula-imagen {
    transform: scale(1.08);
}

.pelicula-imagen-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #b460ec;
    background: linear-gradient(135deg, #faf8f5 0%, #f5f3f0 100%);
}

.pelicula-imagen-container.sin-imagen {
    background: linear-gradient(135deg, #faf8f5 0%, #f5f3f0 100%);
}

/* Contenedor de información (debajo de la imagen) */
.pelicula-tarjeta > .pelicula-nombre,
.pelicula-tarjeta > .pelicula-info {
    padding: 0 1.5rem;
}

.pelicula-tarjeta > .pelicula-nombre {
    padding-top: 1.5rem;
    margin-top: auto;
}

.pelicula-tarjeta:hover:not(.disabled) {
    transform: translateY(-8px);
    border-color: rgba(239, 184, 16, 0.5);
    box-shadow: 0 8px 24px rgba(239, 184, 16, 0.15);
    background: #ffffff;
}

.pelicula-tarjeta.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Badge de precio o gratis - Estilo suave */
.badge-gratis {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(139, 195, 74, 0.9);
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(139, 195, 74, 0.3);
    letter-spacing: 0.5px;
}

.badge-precio {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #efb810 0%, #d4a00e 100%);
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(239, 184, 16, 0.4);
    letter-spacing: 0.5px;
}

.pelicula-nombre {
    font-size: 1.3rem;
    font-weight: 600;
    color: #7e42a6;
    margin: 0.5rem 0;
    line-height: 1.4;
    padding-bottom: 0.5rem;
    font-family: 'Nunito Sans', sans-serif;
}

.pelicula-info {
    font-size: 0.95rem;
    color: #adadad;
    padding-bottom: 1.5rem;
    line-height: 1.6;
}

/* Botones de película - Estilo elegante */
.pelicula-botones {
    padding: 0 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-comprar {
    background: linear-gradient(135deg, #efb810 0%, #d4a00e 100%);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 0.5px;
    font-family: 'Nunito Sans', sans-serif;
}

.btn-comprar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 184, 16, 0.4);
    background: linear-gradient(135deg, #f5c530 0%, #efb810 100%);
}

.btn-jugar {
    background: linear-gradient(135deg, #b460ec 0%, #7e42a6 100%);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 0.5px;
    font-family: 'Nunito Sans', sans-serif;
}

.btn-jugar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(180, 96, 236, 0.4);
    background: linear-gradient(135deg, #c47ef0 0%, #b460ec 100%);
}

.badge-comprada {
    background: rgba(139, 195, 74, 0.9);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 8px rgba(139, 195, 74, 0.2);
    letter-spacing: 0.5px;
}

/* Modal de Checkout - Estilo elegante */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.checkout-content {
    background: #ffffff;
    border-radius: 1rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(239, 184, 16, 0.3);
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(239, 184, 16, 0.2);
}

.checkout-header h2 {
    margin: 0;
    color: #7e42a6;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Nunito Sans', sans-serif;
}

.checkout-close {
    background: transparent;
    border: none;
    color: #6a6a6a;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.checkout-close:hover {
    background: rgba(239, 184, 16, 0.1);
    color: #efb810;
}

.checkout-body {
    padding: 2rem;
}

.checkout-pelicula {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(239, 184, 16, 0.2);
}

.checkout-pelicula h3 {
    color: #7e42a6;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
}

.checkout-info {
    color: #adadad;
    font-size: 0.95rem;
}

.checkout-opciones {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.checkout-opcion {
    border: 1px solid rgba(239, 184, 16, 0.3);
    border-radius: 0.75rem;
    padding: 0;
    transition: all 0.3s ease;
    background: #ffffff;
}

.checkout-opcion input[type="radio"] {
    display: none;
}

.checkout-opcion input[type="radio"]:checked + label {
    background: rgba(239, 184, 16, 0.1);
    border-color: #efb810;
}

.checkout-opcion label {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    cursor: pointer;
    border-radius: 0.75rem;
}

.opcion-titulo {
    font-weight: 500;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
}

.opcion-precio {
    font-size: 1.5rem;
    color: #efb810;
    font-weight: 600;
    font-family: 'Nunito Sans', sans-serif;
}

.opcion-ahorro {
    font-size: 0.85rem;
    color: #8bc34a;
    margin-top: 0.5rem;
}

.checkout-demo-notice {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.checkout-demo-notice p {
    margin: 0.3rem 0;
    color: #f57c00;
    font-size: 0.9rem;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(239, 184, 16, 0.05);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: #2c2c2c;
}

.checkout-precio-total {
    color: #efb810;
    font-size: 1.8rem;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
}

.checkout-footer {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    border-top: 1px solid rgba(239, 184, 16, 0.2);
}

.btn-checkout-cancelar,
.btn-checkout-comprar {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-checkout-cancelar {
    background: #f5f3f0;
    color: #adadad;
    border: 1px solid rgba(239, 184, 16, 0.3);
}

.btn-checkout-cancelar:hover {
    background: #e8e6e3;
}

.btn-checkout-comprar {
    background: linear-gradient(135deg, #efb810 0%, #d4a00e 100%);
    color: #ffffff;
}

.btn-checkout-comprar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 184, 16, 0.4);
    background: linear-gradient(135deg, #f5c530 0%, #efb810 100%);
}

/* Mensaje de éxito de compra */
.mensaje-exito-compra {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 1rem;
}

.mensaje-exito-content {
    background: #ffffff;
    border-radius: 1rem;
    padding: 3rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(139, 195, 74, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.mensaje-exito-content h3 {
    color: #8bc34a;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
    font-family: Georgia, serif;
}

.mensaje-exito-content p {
    color: #4a4a4a;
    margin-bottom: 0.5rem;
}

.mensaje-demo {
    font-size: 0.85rem;
    color: #6a6a6a;
    font-style: italic;
}

.mensaje-exito-content button {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #efb810 0%, #d4a00e 100%);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    font-family: 'Nunito Sans', sans-serif;
}

.mensaje-exito-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 184, 16, 0.4);
    background: linear-gradient(135deg, #f5c530 0%, #efb810 100%);
}

.inicio-header {
    padding: 1rem 0;
}

/* Estilos de autenticación */
.header-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: 1rem;
}

.user-info {
    color: #4a4a4a;
    font-size: 0.9rem;
}

.user-name {
    color: #7e42a6;
    font-weight: 600;
}

.btn-login,
.btn-registro,
.btn-logout {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-login {
    background: rgba(239, 184, 16, 0.1);
    color: #efb810;
    border: 1px solid rgba(239, 184, 16, 0.3);
}

.btn-login:hover {
    background: rgba(239, 184, 16, 0.2);
}

.btn-registro {
    background: linear-gradient(135deg, #b460ec 0%, #7e42a6 100%);
    color: #ffffff;
}

.btn-registro:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(180, 96, 236, 0.4);
    background: linear-gradient(135deg, #c47ef0 0%, #b460ec 100%);
}

.btn-logout {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.btn-logout:hover {
    background: rgba(244, 67, 54, 0.2);
}

/* Modales de autenticación */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.auth-modal-content {
    background: #ffffff;
    border-radius: 1rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(239, 184, 16, 0.3);
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(239, 184, 16, 0.2);
}

.auth-header h2 {
    margin: 0;
    color: #7e42a6;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Nunito Sans', sans-serif;
}

.auth-close {
    background: transparent;
    border: none;
    color: #6a6a6a;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.auth-close:hover {
    background: rgba(239, 184, 16, 0.1);
    color: #efb810;
}

.auth-body {
    padding: 2rem;
}

.auth-field {
    margin-bottom: 1.5rem;
}

.auth-field label {
    display: block;
    color: #4a4a4a;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-field input {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(239, 184, 16, 0.3);
    border-radius: 0.5rem;
    background: #ffffff;
    color: #2c2c2c;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: 'Nunito Sans', sans-serif;
}

.auth-field input:focus {
    outline: none;
    border-color: #efb810;
    box-shadow: 0 0 0 3px rgba(239, 184, 16, 0.1);
}

.auth-error {
    color: #f44336;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 1.5rem;
}

.auth-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #efb810 0%, #d4a00e 100%);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    letter-spacing: 0.5px;
    font-family: 'Nunito Sans', sans-serif;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 184, 16, 0.4);
    background: linear-gradient(135deg, #f5c530 0%, #efb810 100%);
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(239, 184, 16, 0.2);
}

.auth-footer p {
    color: #6a6a6a;
    font-size: 0.9rem;
    margin: 0;
}

.auth-footer a {
    color: #7e42a6;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Footer */
.main-footer {
    background: #ffffff;
    border-top: 1px solid rgba(239, 184, 16, 0.2);
    padding: 4rem 1rem 2rem;
    margin-top: 4rem;
    color: #adadad;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: #7e42a6;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-family: 'Nunito Sans', sans-serif;
}

.footer-section p {
    color: #adadad;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0.5rem 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #adadad;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #7e42a6;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(239, 184, 16, 0.2);
    text-align: center;
}

.footer-bottom p {
    color: #adadad;
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

.footer-warning {
    color: #f57c00 !important;
    font-weight: 500;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .peliculas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Botones de navegación en móvil */
    .accion-titulo-container {
        padding: 0 50px;
    }
    
    .accion-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .accion-nav-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .accion-titulo {
        font-size: 1.5rem;
    }
    
    .accion-titulo-container {
        padding: 0 45px;
    }
    
    .accion-nav-btn {
        width: 36px;
        height: 36px;
    }
    
    .accion-nav-btn svg {
        width: 16px;
        height: 16px;
    }
}

.titulo-principal {
    font-size: 3rem;
    font-weight: 700;
    color: #7e42a6;
    color: #efb810;
    margin-bottom: 0;
    margin-top: 0;
    text-shadow: none;
    font-family: 'Nunito Sans', sans-serif;
    letter-spacing: 0.5px;
}
.tagline-principal {
    margin-top: 0;
    margin-bottom: 2rem;
    color: #efb810;
    color: #7e42a6;
    font-size: 1.3rem;
}

.explicacion-principal {
    font-size: 1.2rem;
    color: #4a4a4a;
    color: #adadad!important;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    padding: 0 2rem;
}

.explicacion-principal strong {
    color: #7e42a6;
    font-weight: 600;
}

.btn-cta {
    background: linear-gradient(135deg, #b460ec 0%, #7e42a6 100%);
    color: #ffffff;
    border: none;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1.2rem 3rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(180, 96, 236, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    font-family: 'Nunito Sans', sans-serif;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(180, 96, 236, 0.5);
    background: linear-gradient(135deg, #c47ef0 0%, #b460ec 100%);
}

.btn-cta:active {
    transform: translateY(-1px);
}

.peliculas-contenedor {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.historias-lista h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #7e42a6;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
}

.pelicula-btn, .historia-btn {
    background: linear-gradient(135deg, #b460ec 0%, #7e42a6 100%);
    color: #ffffff;
    border: none;
    border-radius: 1.5rem;
    font-size: 1.3rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(180, 96, 236, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    display: block;
    letter-spacing: 0.5px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
}
.pelicula-btn:hover, .historia-btn:hover { 
    background: linear-gradient(135deg, #c47ef0 0%, #b460ec 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(180, 96, 236, 0.4);
}
.pelicula-btn:disabled, .historia-btn:disabled {
    background: #d0d0d0;
    cursor: not-allowed;
    opacity: 0.6;
}

.historia-titulo {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.historia-info {
    font-size: 1rem;
    opacity: 0.9;
}

.intro, .accion {
    margin: 0 1rem 6rem 1rem;
    padding-top: 2rem;
    text-align: center;
}

/* Estilos mejorados para introducción */
.intro-titulo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #7e42a6;
    margin-bottom: 2rem;
    text-shadow: none;
    font-family: 'Nunito Sans', sans-serif;
    letter-spacing: 0.5px;
}

.intro-texto {
    font-size: 1.3rem;
    line-height: 1.9;
    color: #adadad;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.intro-info-box {
    background: rgba(239, 184, 16, 0.1);
    border: 1px solid rgba(239, 184, 16, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.intro-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.intro-info-icon {
    font-size: 1.5rem;
    color: #efb810;
}

.intro-info-text {
    font-size: 1.1rem;
    color: #adadad;
    font-weight: 400;
}

.btn-comenzar {
    background: linear-gradient(135deg, #efb810 0%, #d4a00e 100%);
    color: #ffffff;
    border: none;
    border-radius: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 1.3rem 3.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(239, 184, 16, 0.4);
    transition: all 0.3s ease;
    margin-top: 2rem;
    letter-spacing: 0.5px;
    font-family: 'Nunito Sans', sans-serif;
}

.btn-comenzar:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(239, 184, 16, 0.5);
    background: linear-gradient(135deg, #f5c530 0%, #efb810 100%);
}

.btn-comenzar:active {
    transform: translateY(-1px);
}

/* Estilos mejorados para acciones */
.accion-titulo-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 60px; /* Espacio para los botones circulares */
    min-height: 44px; /* Altura mínima igual a los botones */
}

.accion-titulo {
    font-size: 1.8rem;
    color: #7e42a6;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    font-weight: 600;
    font-family: 'Nunito Sans', sans-serif;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accion-nav-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(126, 66, 166, 0.2);
    color: #7e42a6;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.accion-nav-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.accion-nav-btn-left {
    left: 0;
}

.accion-nav-btn-right {
    right: 0;
}

.accion-nav-btn:hover {
    background: #7e42a6;
    color: #ffffff;
    border-color: #7e42a6;
    box-shadow: 0 4px 12px rgba(126, 66, 166, 0.3);
    transform: scale(1.05);
}

.accion-nav-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 6px rgba(126, 66, 166, 0.2);
}

.accion-texto {
    font-size: 1.4rem;
    line-height: 1.9;
    color: #2c2c2c;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

/* Animación de entrada para acciones */
.accion-entrada {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.barra-inferior {
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 70px;
    padding: 0.5rem;
    border-top: 1px solid rgba(239, 184, 16, 0.2);
    z-index: 10;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.barra-inferior button {
    background: none;
    border: none;
    color: #efb810;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.4rem;
    min-width: 40px;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: all 0.2s ease;
}

.barra-inferior button:hover {
    color: #7e42a6;
    transform: scale(1.1);
}

/* Botones de volumen específicos */
.barra-inferior .btn-volumen {
    font-size: 1.8rem;
    width: 30px;
    height: 30px;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(239, 184, 16, 0.1);
    transition: all 0.2s ease;
}

.barra-inferior .btn-volumen:active {
    background: rgba(239, 184, 16, 0.2);
}

.barra-inferior select {
    margin: 0 0.5rem;
    font-size: 1.1rem;
    background: #ffffff;
    color: #adadad;
    border: 1px solid rgba(239, 184, 16, 0.3);
    border-radius: 0.5rem;
    padding: 0.3rem 0.6rem;
    font-family: 'Nunito Sans', sans-serif;
}
.barra-inferior input[type="range"] {
    vertical-align: middle;
    cursor: pointer;
    width: 60px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
}

/* Estilos para el track (barra) - WebKit */
.barra-inferior input[type="range"]::-webkit-slider-track {
    width: 100%;
    height: 6px;
    background: rgba(239, 184, 16, 0.3);
    border-radius: 3px;
    border: none;
}

/* Estilos para el thumb (botón) - WebKit */
.barra-inferior input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #efb810;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -7px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Estilos para el track - Firefox */
.barra-inferior input[type="range"]::-moz-range-track {
    width: 100%;
    height: 6px;
    background: rgba(239, 184, 16, 0.3);
    border-radius: 3px;
    border: none;
}

/* Estilos para el thumb - Firefox */
.barra-inferior input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #efb810;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Estilos para el track - Edge/IE */
.barra-inferior input[type="range"]::-ms-track {
    width: 100%;
    height: 6px;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

.barra-inferior input[type="range"]::-ms-fill-lower {
    background: rgba(239, 184, 16, 0.3);
    border-radius: 3px;
}

.barra-inferior input[type="range"]::-ms-fill-upper {
    background: rgba(239, 184, 16, 0.3);
    border-radius: 3px;
}

/* Estilos para el thumb - Edge/IE */
.barra-inferior input[type="range"]::-ms-thumb {
    width: 20px;
    height: 20px;
    background: #efb810;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.temporizador {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: #efb810;
    font-weight: 600;
}

@media (min-width: 600px) {
    .peliculas-lista, .historias-lista { max-width: 900px; margin: 2rem auto 2rem auto; }
    .intro, .accion { max-width: 600px; margin: 0 auto 6rem auto; padding-top: 3rem;}
    .titulo-principal { font-size: 3.5rem; }
    .explicacion-principal { font-size: 1.3rem; }
    .peliculas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .peliculas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 599px) {
    body {
        padding-top: 60px;
    }
    .main-header {
        height: 60px;
        padding: 0 1rem;
    }
    .header-logo {
        font-size: 1.2rem;
    }
    .header-logo span {
        display: none;
    }
    .header-pelicula {
        font-size: 1rem;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .header-desktop-only {
        display: none !important;
    }
    .header-mobile-only {
        display: flex !important;
    }
    .header-menu-btn {
        display: flex;
    }
    .peliculas-lista, .historias-lista { max-width: 900px; margin: 1rem auto 1rem auto; }
    .titulo-principal { font-size: 2.2rem; }
    .explicacion-principal { font-size: 1.1rem; padding: 0 1rem; }
    .btn-cta { font-size: 1.1rem; padding: 1rem 2rem; }
    .peliculas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .pelicula-tarjeta {
        min-height: 350px;
    }
    .pelicula-imagen-container {
        height: 250px;
    }
    .pelicula-nombre {
        font-size: 1.1rem;
    }
    .intro, .accion {
        padding-top: 1.5rem;
    }
}

/* Barra de progreso visual - Estilo suave */
.progress-container {
    position: fixed;
    top: 70px; /* Altura del header fijo */
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - 70px); /* Altura total menos el header */
    z-index: 1;
    pointer-events: none;
    display: none;
}

.progress-bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, 
        rgba(239, 184, 16, 0.3) 0%,
        rgba(180, 96, 236, 0.4) 50%,
        rgba(239, 184, 16, 0.25) 100%);
    transition: height 0.1s linear, background 0.3s ease;
    z-index: 1;
}

/* Estados de la barra de progreso según tiempo restante */
.progress-bar-fill.progress-warning {
    background: linear-gradient(to top, 
        rgba(255, 193, 7, 0.4) 0%,
        rgba(255, 152, 0, 0.5) 50%,
        rgba(255, 193, 7, 0.3) 100%);
}

.progress-bar-fill.progress-urgent {
    background: linear-gradient(to top, 
        rgba(244, 67, 54, 0.5) 0%,
        rgba(211, 47, 47, 0.6) 50%,
        rgba(244, 67, 54, 0.4) 100%);
    animation: pulseUrgent 1s ease-in-out infinite;
}

@keyframes pulseUrgent {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Animación de pulso al cambiar de acción */
.progress-container.progress-pulse .progress-bar-fill {
    animation: pulseStart 0.5s ease-out;
}

@keyframes pulseStart {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }
    50% {
        transform: scaleY(1.1);
    }
    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Menú móvil (hamburguesa) - Estilo elegante */
.menu-movil {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-movil.menu-movil-abierto {
    pointer-events: all;
    opacity: 1;
}

.menu-movil-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.menu-movil-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-left: 1px solid rgba(239, 184, 16, 0.2);
}

.menu-movil.menu-movil-abierto .menu-movil-content {
    transform: translateX(0);
}

.menu-movil-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(239, 184, 16, 0.2);
}

.menu-movil-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #7e42a6;
    font-weight: 600;
    font-family: 'Nunito Sans', sans-serif;
}

.menu-movil-close {
    background: none;
    border: none;
    color: #6a6a6a;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.menu-movil-close:hover {
    background: rgba(239, 184, 16, 0.1);
    color: #efb810;
    transform: rotate(90deg);
}

.menu-movil-idioma {
    background: #ffffff;
    color: #adadad;
    border: 1px solid rgba(239, 184, 16, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 1rem;
    margin: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: calc(100% - 3rem);
    font-family: 'Nunito Sans', sans-serif;
}

.menu-movil-idioma:hover {
    border-color: #efb810;
    background: rgba(239, 184, 16, 0.05);
}

.menu-movil-idioma:focus {
    outline: none;
    border-color: #efb810;
    box-shadow: 0 0 0 2px rgba(239, 184, 16, 0.2);
}

.menu-movil-separador {
    height: 1px;
    background: rgba(239, 184, 16, 0.2);
    margin: 1rem 1.5rem;
}

.menu-movil-opciones {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-movil-user-info {
    padding: 1rem;
    background: rgba(239, 184, 16, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(239, 184, 16, 0.2);
}

.menu-movil-user-name {
    color: #7e42a6;
    font-weight: 600;
    font-size: 1rem;
}

.menu-movil-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    letter-spacing: 0.3px;
}

.menu-movil-btn-primary {
    background: linear-gradient(135deg, #efb810 0%, #d4a00e 100%);
    color: #ffffff;
}

.menu-movil-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 184, 16, 0.4);
    background: linear-gradient(135deg, #f5c530 0%, #efb810 100%);
}

.menu-movil-btn-secondary {
    background: rgba(239, 184, 16, 0.1);
    color: #efb810;
    border: 1px solid rgba(239, 184, 16, 0.3);
}

.menu-movil-btn-secondary:hover {
    background: rgba(239, 184, 16, 0.2);
    border-color: #efb810;
}

.menu-movil-btn-logout {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.menu-movil-btn-logout:hover {
    background: rgba(244, 67, 54, 0.2);
    border-color: #f44336;
}

/* ============================================================================
   CTA PREVIEW - Pantalla de compra cuando se alcanza el límite de preview
   ============================================================================ */

.cta-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #faf8f5 0%, #ffffff 100%);
}

.cta-preview-content {
    max-width: 500px;
    width: 100%;
    text-align: center;
    background: #ffffff;
    border-radius: 1rem;
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(239, 184, 16, 0.2);
}

.cta-preview-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.cta-preview-titulo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #7e42a6;
    margin: 0 0 1rem 0;
    letter-spacing: 0.5px;
}

.cta-preview-texto {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.cta-preview-pelicula {
    font-size: 1.2rem;
    font-weight: 600;
    color: #efb810;
    margin: 0 0 2rem 0;
}

.cta-preview-opciones {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cta-preview-btn {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    letter-spacing: 0.3px;
}

.cta-preview-btn-primary {
    background: linear-gradient(135deg, #7e42a6 0%, #b460ec 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(126, 66, 166, 0.3);
}

.cta-preview-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(126, 66, 166, 0.4);
}

.cta-preview-btn-secondary {
    background: linear-gradient(135deg, #efb810 0%, #d4a00e 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(239, 184, 16, 0.3);
}

.cta-preview-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 184, 16, 0.4);
}

.cta-preview-btn-titulo {
    font-size: 1.1rem;
    font-weight: 600;
}

.cta-preview-btn-precio {
    font-size: 1.5rem;
    font-weight: 700;
}

.cta-preview-btn-ahorro {
    font-size: 0.9rem;
    opacity: 0.9;
    font-style: italic;
}

.cta-preview-volver {
    width: 100%;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(239, 184, 16, 0.3);
    border-radius: 0.75rem;
    background: transparent;
    color: #7e42a6;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-preview-volver:hover {
    background: rgba(239, 184, 16, 0.1);
    border-color: #efb810;
}

/* Responsive para CTA Preview */
@media (max-width: 768px) {
    .cta-preview-content {
        padding: 2rem 1.5rem;
    }
    
    .cta-preview-titulo {
        font-size: 1.5rem;
    }
    
    .cta-preview-texto {
        font-size: 0.95rem;
    }
    
    .cta-preview-btn {
        padding: 1rem 1.2rem;
    }
}

/* ============================================================================
   DISEÑOS DE CARRUSEL INSPIRADOS EN JUEGOS
   ============================================================================ */

.carruseles-disenos-container {
    margin: 4rem 1rem;
    padding: 2rem 0;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.disenos-titulo {
    text-align: center;
    font-size: 2.2rem;
    color: #7e42a6;
    margin-bottom: 3rem;
    font-weight: 600;
    font-family: 'Nunito Sans', sans-serif;
}

.diseno-carrusel {
    margin-bottom: 5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(126, 66, 166, 0.05) 0%, rgba(239, 184, 16, 0.05) 100%);
    border-radius: 1.5rem;
    border: 2px solid rgba(126, 66, 166, 0.1);
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.diseno-nombre {
    text-align: center;
    font-size: 1.5rem;
    color: #7e42a6;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* ============================================================================
   DISEÑO 1: CARTAS DE COLECCIÓN (Trading Cards)
   ============================================================================ */

.cartas-coleccion-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    perspective: 1000px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.carta-coleccion {
    width: 280px;
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
}

.carta-coleccion-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.carta-coleccion:hover .carta-coleccion-inner {
    transform: rotateY(180deg);
}

.carta-coleccion-front,
.carta-coleccion-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carta-coleccion-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #7e42a6 0%, #b460ec 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carta-coleccion-back-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.1) 10px, rgba(255,255,255,0.1) 20px);
    opacity: 0.3;
}

.carta-coleccion-logo {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.carta-coleccion-imagen {
    width: 100%;
    height: 70%;
    background-size: cover;
    background-position: center top;
    position: relative;
}

.carta-coleccion-borde {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 4px solid #efb810;
    border-radius: 1rem;
    box-shadow: inset 0 0 20px rgba(239, 184, 16, 0.3);
    pointer-events: none;
}

.carta-coleccion-titulo {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carta-coleccion-badge {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(239, 184, 16, 0.95);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ============================================================================
   DISEÑO 2: TABLERO DE JUEGO
   ============================================================================ */

.tablero-juego-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.carta-tablero {
    position: relative;
    width: 100%;
    height: 380px;
    cursor: pointer;
    transform-style: preserve-3d;
    animation: aparecerTablero 0.6s ease-out backwards;
}

@keyframes aparecerTablero {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(-10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.carta-tablero:hover {
    transform: translateY(-10px) scale(1.05);
    z-index: 10;
}

.carta-tablero-cara {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carta-tablero:hover .carta-tablero-cara {
    box-shadow: 0 20px 60px rgba(126, 66, 166, 0.5);
}

.carta-tablero-imagen {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.4s;
}

.carta-tablero:hover .carta-tablero-imagen {
    transform: scale(1.1);
}

.carta-tablero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    z-index: 1;
}

.carta-tablero-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
    color: #ffffff;
}

.carta-tablero-titulo {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carta-tablero-stats {
    display: flex;
    gap: 1rem;
}

.carta-tablero-stat {
    background: rgba(239, 184, 16, 0.9);
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.carta-tablero-borde-dorado {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent;
    border-radius: 1rem;
    pointer-events: none;
    transition: all 0.4s;
}

.carta-tablero:hover .carta-tablero-borde-dorado {
    border-color: #efb810;
    box-shadow: 0 0 20px rgba(239, 184, 16, 0.6), inset 0 0 20px rgba(239, 184, 16, 0.2);
}

/* ============================================================================
   DISEÑO 3: MAZO DE CARTAS
   ============================================================================ */

.mazo-cartas-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    margin: 2rem 0;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.carta-mazo {
    position: absolute;
    width: 300px;
    height: 450px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center bottom;
}

.carta-mazo:not(.carta-mazo-seleccionada) {
    /* El posicionamiento se hace dinámicamente con JavaScript */
}

.carta-mazo-seleccionada {
    transform: translateX(0) translateY(-30px) rotate(0deg) scale(1.1);
    z-index: 100;
    opacity: 1;
}

.carta-mazo:hover:not(.carta-mazo-seleccionada) {
    /* El hover se maneja dinámicamente con JavaScript */
    filter: brightness(1.1);
}

.carta-mazo-cara {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    border: 4px solid rgba(239, 184, 16, 0.3);
    transition: all 0.5s;
}

.carta-mazo-seleccionada .carta-mazo-cara {
    border-color: #efb810;
    box-shadow: 0 20px 60px rgba(239, 184, 16, 0.6), 0 0 0 4px rgba(239, 184, 16, 0.2);
    animation: cartaSeleccionada 2s ease-in-out infinite;
}

@keyframes cartaSeleccionada {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(239, 184, 16, 0.6), 0 0 0 4px rgba(239, 184, 16, 0.2);
    }
    50% {
        box-shadow: 0 25px 70px rgba(239, 184, 16, 0.8), 0 0 0 6px rgba(239, 184, 16, 0.4);
    }
}

.carta-mazo-imagen {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    position: absolute;
    top: 0;
    left: 0;
}

.carta-mazo-sombra {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    z-index: 1;
}

.carta-mazo-contenido {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
    color: #ffffff;
}

.carta-mazo-titulo {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.carta-mazo-badge {
    display: inline-block;
    background: rgba(239, 184, 16, 0.95);
    color: #ffffff;
    padding: 0.5rem 1.2rem;
    border-radius: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mazo-nav {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.mazo-nav-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Nunito Sans', sans-serif;
    background: rgba(126, 66, 166, 0.1);
    color: #7e42a6;
    border: 2px solid rgba(126, 66, 166, 0.3);
}

.mazo-nav-btn:hover {
    background: rgba(126, 66, 166, 0.2);
    border-color: #7e42a6;
    transform: scale(1.05);
}

.mazo-nav-select {
    background: linear-gradient(135deg, #efb810 0%, #d4a00e 100%);
    color: #ffffff;
    border-color: #efb810;
    box-shadow: 0 4px 15px rgba(239, 184, 16, 0.3);
}

.mazo-nav-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 184, 16, 0.4);
}

/* Responsive para todos los diseños */
@media (max-width: 768px) {
    .carruseles-disenos-container {
        margin: 3rem 0.5rem;
        padding: 1rem 0;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .disenos-titulo {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .diseno-carrusel {
        padding: 1.5rem 1rem;
        margin-bottom: 3rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .diseno-nombre {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    /* Cartas de Colección - Mobile */
    .cartas-coleccion-container {
        gap: 1.5rem;
        padding: 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .carta-coleccion {
        width: 240px;
        height: 340px;
        min-width: 240px;
        flex-shrink: 0;
    }
    
    /* Tablero de Juego - Mobile */
    .tablero-juego-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .carta-tablero {
        height: 320px;
        width: 100%;
        max-width: 100%;
    }
    
    /* Mazo de Cartas - Mobile */
    .mazo-cartas-container {
        height: 400px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .carta-mazo {
        width: 240px;
        height: 360px;
        max-width: 90vw;
    }
    
    /* El posicionamiento se maneja dinámicamente con JavaScript */
    
    .mazo-nav {
        bottom: -70px;
        gap: 1rem;
    }
    
    .mazo-nav-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Responsive para móviles pequeños */
@media (max-width: 480px) {
    .carruseles-disenos-container {
        margin: 2rem 0.25rem;
        padding: 0.5rem 0;
    }
    
    .disenos-titulo {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .diseno-carrusel {
        padding: 1rem 0.5rem;
        margin-bottom: 2rem;
    }
    
    .diseno-nombre {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    /* Cartas de Colección - Mobile Pequeño */
    .cartas-coleccion-container {
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .carta-coleccion {
        width: 200px;
        height: 280px;
        min-width: 200px;
    }
    
    /* Tablero de Juego - Mobile Pequeño */
    .tablero-juego-container {
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .carta-tablero {
        height: 280px;
    }
    
    .carta-tablero-titulo {
        font-size: 1.1rem;
    }
    
    .carta-tablero-stat {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Mazo de Cartas - Mobile Pequeño */
    .mazo-cartas-container {
        height: 350px;
    }
    
    .carta-mazo {
        width: 200px;
        height: 300px;
        max-width: 85vw;
    }
    
    .carta-mazo-titulo {
        font-size: 1.1rem;
    }
    
    .carta-mazo-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    .mazo-nav {
        bottom: -60px;
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .mazo-nav-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* ============================================================================
   CARRUSEL TIPO RULETA - Estilo juego de mesa (MANTENER POR SI ACASO)
   ============================================================================ */

.carrusel-ruleta-container {
    margin: 4rem 1rem;
    padding: 3rem 0;
    min-height: 600px;
    position: relative;
}

.ruleta-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.ruleta-titulo {
    font-size: 2.2rem;
    color: #7e42a6;
    margin-bottom: 3rem;
    font-weight: 600;
    font-family: 'Nunito Sans', sans-serif;
    text-shadow: 0 2px 4px rgba(126, 66, 166, 0.1);
}

.ruleta-carousel {
    position: relative;
    width: 100%;
    height: 550px;
    perspective: 1500px;
    margin: 3rem 0;
    overflow: visible;
    touch-action: pan-y pinch-zoom;
}

.ruleta-carta {
    position: absolute;
    width: 280px;
    height: 420px;
    left: 50%;
    top: 50%;
    margin-left: -140px;
    margin-top: -210px;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease, box-shadow 0.6s ease;
    cursor: pointer;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    will-change: transform;
}

.ruleta-carta:hover {
    transform: scale(1.05) !important;
}

.ruleta-carta.carta-seleccionada {
    box-shadow: 0 20px 60px rgba(126, 66, 166, 0.5), 0 0 0 4px rgba(239, 184, 16, 0.3);
    border: 4px solid #efb810;
    animation: pulse 2s infinite, glow 3s ease-in-out infinite;
    z-index: 100 !important;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(126, 66, 166, 0.5), 0 0 0 4px rgba(239, 184, 16, 0.3);
    }
    50% {
        box-shadow: 0 25px 70px rgba(239, 184, 16, 0.6), 0 0 0 6px rgba(239, 184, 16, 0.5);
    }
}

@keyframes glow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.1);
    }
}

.carta-imagen {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.6s ease;
}

.ruleta-carta:hover .carta-imagen {
    transform: scale(1.1);
}

.carta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.carta-contenido {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
    color: white;
}

.carta-titulo {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Nunito Sans', sans-serif;
}

.carta-badge {
    display: inline-block;
    background: rgba(239, 184, 16, 0.9);
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.ruleta-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.ruleta-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Nunito Sans', sans-serif;
    letter-spacing: 0.5px;
}

.ruleta-btn-left,
.ruleta-btn-right {
    background: rgba(126, 66, 166, 0.1);
    color: #7e42a6;
    border: 2px solid rgba(126, 66, 166, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding: 0;
}

.ruleta-btn-left:hover,
.ruleta-btn-right:hover {
    background: rgba(126, 66, 166, 0.2);
    border-color: #7e42a6;
    transform: scale(1.1);
}

.ruleta-btn-select {
    background: linear-gradient(135deg, #efb810 0%, #d4a00e 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(239, 184, 16, 0.3);
}

.ruleta-btn-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 184, 16, 0.4);
    background: linear-gradient(135deg, #f5c530 0%, #efb810 100%);
}

.ruleta-btn-select:active {
    transform: translateY(0);
}

.ruleta-hint {
    color: #adadad;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    font-style: italic;
    padding: 0 1rem;
}

/* Efectos adicionales para el carrusel */
.ruleta-carousel::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(239, 184, 16, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.ruleta-carousel::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(126, 66, 166, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Responsive para carrusel ruleta */
@media (max-width: 768px) {
    .carrusel-ruleta-container {
        margin: 3rem 0.5rem;
        padding: 2rem 0;
        min-height: 500px;
    }
    
    .ruleta-wrapper {
        padding: 0 1rem;
    }
    
    .ruleta-titulo {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .ruleta-carousel {
        height: 450px;
        margin: 2rem 0;
        overflow: visible;
    }
    
    .ruleta-carta {
        width: 200px;
        height: 300px;
        margin-left: -100px;
        margin-top: -150px;
    }
    
    .carta-titulo {
        font-size: 1rem;
    }
    
    .carta-contenido {
        padding: 1.2rem;
    }
    
    .ruleta-controls {
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .ruleta-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .ruleta-btn-left,
    .ruleta-btn-right {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .ruleta-hint {
        font-size: 0.85rem;
        padding: 0 1rem;
    }
}

