/**
 * QuieresComprar.com — Estilos de Experiencias y Dinámicas Club QC (Fase 8.18)
 * Mobile-First, Responsive (320px - 1366px), Accesible (prefers-reduced-motion)
 */

/* ==========================================================================
   1. PORTAL GENERAL DE EXPERIENCIAS
   ========================================================================== */
.qc-exp-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 1rem;
    color: #fff;
    padding: 2.5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.qc-exp-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.qc-exp-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    overflow: hidden;
    background: #fff;
}

.qc-exp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.qc-exp-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

/* ==========================================================================
   2. CAJA MISTERIOSA QC
   ========================================================================== */
.qc-mbox-container {
    max-width: 760px;
    margin: 0 auto;
}

.qc-mbox-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
    background: radial-gradient(circle, #f8fafc 0%, #edf2f7 100%);
    border-radius: 1rem;
    border: 2px dashed #cbd5e1;
    margin-bottom: 1.5rem;
}

.qc-mbox-box {
    font-size: 4.5rem;
    color: #f59e0b;
    filter: drop-shadow(0 8px 12px rgba(245, 158, 11, 0.25));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qc-mbox-box.is-opened {
    transform: scale(1.1) rotate(-8deg);
    color: #10b981;
}

.qc-clue-card {
    border-left: 4px solid #3b82f6;
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 0.75rem;
    padding: 1rem 1.25rem;
}

.qc-clue-card__number {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #3b82f6;
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   3. GIRA Y GANA QC — SPIN & WIN (Fase 8.18 & Fase 8.22 Mobile-First)
   ========================================================================== */
.qc-exp-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1rem;
}

.qc-exp-header {
    text-align: center;
    margin-bottom: 2rem;
}

.qc-exp-badge {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
    font-size: 0.825rem;
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    margin-bottom: 0.75rem;
}

.qc-exp-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.qc-exp-subtitle {
    color: #64748b;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    max-width: 650px;
    margin: 0 auto;
}

.qc-spin-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .qc-spin-layout {
        grid-template-columns: 7fr 5fr;
        align-items: start;
    }
}

.qc-spin-wheel-card {
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    padding: 1.75rem 1.25rem;
    text-align: center;
}

.qc-spin-wrapper,
.qc-wheel-wrapper {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 1.5rem auto;
    aspect-ratio: 1 / 1;
}

.qc-spin-pointer,
.qc-wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 36px;
    height: 44px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.qc-spin-pointer svg,
.qc-wheel-pointer svg {
    width: 100%;
    height: 100%;
    display: block;
}

#qcSpinCanvas,
.qc-wheel-canvas {
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 50%;
    box-shadow: 0 0 0 8px #1e293b, 0 10px 25px -3px rgba(0, 0, 0, 0.25);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.qc-spin-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.qc-exp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-weight: 700;
    border-radius: 0.75rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    min-height: 48px;
    transition: all 0.2s ease;
}

.qc-exp-btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.39);
}

.qc-exp-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
    color: #ffffff;
}

.qc-exp-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

.qc-spin-cooldown-timer {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
}

.qc-spin-result-alert {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.qc-spin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.qc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.qc-card-accent {
    border-left: 4px solid #3b82f6;
}

.qc-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.qc-rules-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: #475569;
}

.qc-rules-list li {
    margin-bottom: 0.5rem;
}

.qc-prizes-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.qc-prize-item {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.875rem;
}

.qc-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qc-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
}

.qc-history-item:last-child {
    border-bottom: none;
}

.qc-wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    background: #1e293b;
    border: 4px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    z-index: 5;
    color: #f59e0b;
    font-size: 1.5rem;
}

/* ==========================================================================
   4. TARJETA SOCIAL DE COMPARTIR
   ========================================================================== */
.qc-share-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
}

.qc-share-preview__image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #e2e8f0;
}

.qc-share-category-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    width: 100%;
}

.qc-share-category-btn:hover {
    border-color: #3b82f6;
    background: #f0f7ff;
}

.qc-share-category-btn.is-active {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

/* ==========================================================================
   5. ACCESIBILIDAD Y RESPONSIVE
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .qc-wheel-canvas {
        transition: none !important;
    }
    .qc-exp-card {
        transition: none !important;
    }
    .qc-mbox-box {
        transition: none !important;
    }
}

@media (max-width: 575.98px) {
    .qc-wheel-wrapper {
        max-width: 290px;
    }
    .qc-wheel-center {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
    .qc-exp-hero {
        padding: 1.75rem 1rem;
    }
}
