/* ============================================================
   FITBEAT MUSIC – CSS Principal
   Inspirado en Spotify, estética fitness: violeta/rosa/negro
   ============================================================ */

:root {
    --fb-primary:    #7c3aed;
    --fb-primary-2:  #9d4edd;
    --fb-accent:     #ec4899;
    --fb-accent-2:   #f472b6;
    --fb-grad:       linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    --fb-grad-soft:  linear-gradient(135deg, rgba(124,58,237,.08) 0%, rgba(236,72,153,.08) 100%);
    --fb-dark:       #0f0f14;
    --fb-surface:    #ffffff;
    --fb-surface-2:  #f8f7ff;
    --fb-border:     #ede9fe;
    --fb-text:       #1a1523;
    --fb-text-2:     #6b7280;
    --fb-text-3:     #a78bfa;
    --fb-radius:     12px;
    --fb-radius-lg:  20px;
    --fb-shadow:     0 4px 24px rgba(124,58,237,.12);
    --fb-shadow-lg:  0 8px 40px rgba(124,58,237,.18);
    --fb-player-h:   80px;
    --fb-trans:      all .2s ease;
}

/* -------------------------------------------------------
   BASE
------------------------------------------------------- */
.fb-home-wrap,
.fb-dashboard,
.fb-tracklist-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--fb-text);
    padding-bottom: calc(var(--fb-player-h) + 32px);
    max-width: 960px;
    margin: 0 auto;
}

.fb-dashboard.fb-page-wrap {
    max-width: 100%;
    padding: 0;
    background: var(--fb-bg-page);
    min-height: 100vh;
}
.fb-dashboard .fb-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 24px calc(var(--fb-player-h, 80px) + 32px);
}

/* Agrega espaciado lateral para evitar que el contenido toque los bordes del celular */
.fb-dashboard {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 768px) {
    .fb-dashboard {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
}

/* -------------------------------------------------------
   BUTTONS
------------------------------------------------------- */
.fb-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--fb-grad);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--fb-trans);
    box-shadow: 0 4px 16px rgba(124,58,237,.3);
}
.fb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(124,58,237,.4);
    color: #fff;
    text-decoration: none;
}
.fb-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--fb-primary);
    border: 2px solid var(--fb-primary);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--fb-trans);
}
.fb-btn-outline:hover {
    background: var(--fb-primary);
    color: #fff;
    text-decoration: none;
}

/* Botón carrito: estado añadido (renderizado desde servidor) */
.fb-btn-cart--added,
.fb-btn-cart[data-in-cart="1"] {
    background: linear-gradient(135deg,#22c55e,#16a34a) !important;
    border-color: transparent !important;
    color: #fff !important;
}

/* -------------------------------------------------------
   HERO
------------------------------------------------------- */
.fb-hero {
    position: relative;
    background: var(--fb-dark);
    border-radius: var(--fb-radius-lg);
    overflow: hidden;
    padding: 56px 48px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: 320px;
}
.fb-hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a0533 0%, #0f0f14 50%, #1a0d2e 100%);
    z-index: 0;
}
.fb-hero__bg::after {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(124,58,237,.4) 0%, transparent 70%);
}
.fb-hero__bg::before {
    content: '';
    position: absolute;
    bottom: -80px; left: 30%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(236,72,153,.3) 0%, transparent 70%);
}
.fb-hero__content {
    position: relative;
    z-index: 1;
    flex: 1;
}
.fb-hero__visual {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.fb-hero__badge {
    display: inline-block;
    background: rgba(124,58,237,.3);
    border: 1px solid rgba(124,58,237,.5);
    color: #c4b5fd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 16px;
}
.fb-hero__title {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 12px;
    background: linear-gradient(90deg, #fff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.fb-hero__subtitle {
    font-size: 16px;
    color: rgba(255,255,255,.65);
    margin: 0 0 28px;
    line-height: 1.5;
}
.fb-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.fb-hero__stats {
    display: flex;
    gap: 28px;
}
.fb-hero__stat {
    text-align: center;
}
.fb-hero__stat strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #a78bfa;
}
.fb-hero__stat span {
    font-size: 12px;
    color: rgba(255,255,255,.5);
}

/* Vinilo animado */
.fb-hero__vinyl {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fb-vinyl-disc {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle at center,
        #1a1a2e 0px, #2d2d4e 4px, #1a1a2e 8px
    );
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fb-spin 6s linear infinite;
    box-shadow: 0 0 40px rgba(124,58,237,.4), inset 0 0 20px rgba(0,0,0,.5);
}
.fb-vinyl-center {
    position: absolute;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--fb-grad);
}
.fb-vinyl-label {
    position: relative;
    font-size: 14px;
    z-index: 1;
}
@keyframes fb-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .fb-hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }
    .fb-hero__actions { justify-content: center; }
    .fb-hero__stats   { justify-content: center; }
    .fb-hero__visual  { display: none; }
}

/* -------------------------------------------------------
   CATEGORÍAS
------------------------------------------------------- */
.fb-categories-section {
    margin-bottom: 32px;
}
.fb-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.fb-cat-btn {
    background: var(--fb-surface-2);
    border: 1.5px solid var(--fb-border);
    color: var(--fb-text-2);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--fb-trans);
}
.fb-cat-btn:hover,
.fb-cat-btn--active {
    background: var(--fb-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(124,58,237,.25);
}

/* -------------------------------------------------------
   SECCIÓN / HEADER
------------------------------------------------------- */
.fb-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.fb-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--fb-text);
    margin: 0;
}
.fb-track-count {
    font-size: 13px;
    color: var(--fb-text-2);
    background: var(--fb-surface-2);
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid var(--fb-border);
}

/* -------------------------------------------------------
   TRACKLIST HEADER & ROW
------------------------------------------------------- */
.fb-tracklist-header {
    display: grid;
    grid-template-columns: 60px 1fr 100px 52px;
    gap: 0 16px;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--fb-text-2);
    border-bottom: 1px solid var(--fb-border);
    margin-bottom: 4px;
}
@media (max-width: 600px) {
    .fb-tracklist-header { display: none; }
}

.fb-tracklist {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.fb-track-row {
    display: grid;
    grid-template-columns: 60px 1fr 100px 52px;
    gap: 0 16px;
    align-items: center;
    padding: 10px 16px;
    border-radius: var(--fb-radius);
    cursor: pointer;
    transition: background .15s ease;
    border-bottom: 1px solid transparent;
}
.fb-track-row:hover { background: var(--fb-surface-2); }
.fb-track-row.fb-track-row--playing {
    background: linear-gradient(90deg, rgba(124,58,237,.06), rgba(236,72,153,.04));
    border-bottom-color: rgba(124,58,237,.1);
}
.fb-track-row.fb-track-row--playing .fb-track-name {
    color: var(--fb-primary);
    font-weight: 700;
}
.fb-track-cover {
    position: relative;
    width: 52px; height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.fb-track-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-track-play-btn {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.5);
    border: none; color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; cursor: pointer; transition: opacity .15s ease;
    border-radius: 8px;
}
.fb-track-row:hover .fb-track-play-btn,
.fb-track-row.fb-track-row--playing .fb-track-play-btn { opacity: 1; }

.fb-track-info { display: flex; flex-direction: column; gap: 4px; overflow: hidden; min-width: 0; }
.fb-track-name { font-size: 15px; font-weight: 600; color: var(--fb-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-track-meta { font-size: 12px; color: var(--fb-text-2); display: flex; gap: 8px; align-items: center; }
.fb-bpm { background: rgba(124,58,237,.1); color: var(--fb-primary); padding: 1px 7px; border-radius: 50px; font-weight: 600; font-size: 11px; }

.fb-track-price { font-size: 14px; font-weight: 600; color: var(--fb-text); text-align: right; }
.fb-track-price .woocommerce-Price-amount { font-weight: 700; color: var(--fb-primary); }
.fb-track-actions { display: flex; align-items: center; justify-content: flex-end; }
.fb-btn-cart {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--fb-surface-2); border: 1.5px solid var(--fb-border);
    color: var(--fb-text-2); display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--fb-trans); flex-shrink: 0;
}
.fb-btn-cart:hover {
    background: var(--fb-grad); border-color: transparent; color: #fff;
    transform: scale(1.1); box-shadow: 0 4px 12px rgba(236,72,153,.3);
}

@media (max-width: 600px) {
    .fb-track-row { grid-template-columns: 52px 1fr 40px; gap: 0 12px; }
    .fb-track-price { display: none; }
    .fb-track-meta  { flex-wrap: wrap; }
}

/* -------------------------------------------------------
   CARGAR MÁS & ESTADO VACÍO
------------------------------------------------------- */
.fb-load-more-wrap { display: flex; justify-content: center; margin-top: 24px; }
.fb-btn-load-more {
    background: var(--fb-surface-2); border: 1.5px solid var(--fb-border);
    color: var(--fb-primary); padding: 12px 28px; border-radius: 50px;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--fb-trans);
}
.fb-btn-load-more:hover { background: var(--fb-grad); border-color: transparent; color: #fff; }
.fb-empty-state { text-align: center; padding: 60px 20px; color: var(--fb-text-2); }
.fb-empty-icon { font-size: 48px; margin-bottom: 12px; }

/* -------------------------------------------------------
   DASHBOARD TABS & PERFIL
------------------------------------------------------- */
.fb-dash-profile {
    display: flex; align-items: center; gap: 16px;
    background: var(--fb-surface-2); border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius-lg); padding: 20px 24px; margin-bottom: 24px; flex-wrap: wrap;
}
.fb-dash-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--fb-primary); flex-shrink: 0; }
.fb-dash-profile h2 { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.fb-dash-profile p { margin: 0; color: var(--fb-text-2); font-size: 14px; }
.fb-logout-btn { margin-left: auto; }
.fb-avatar-wrap { position: relative; flex-shrink: 0; }
.fb-avatar-edit {
    position: absolute; bottom: 0; right: 0; width: 24px; height: 24px;
    background: var(--fb-grad); border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #fff; border: 2px solid #fff;
}

@media (max-width: 768px) {
    .fb-dash-profile { flex-direction: column; text-align: center; }
    .fb-logout-btn   { margin-left: 0; }
}

.fb-dash-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--fb-border); margin-bottom: 24px; overflow-x: auto; }
.fb-dash-tab {
    padding: 12px 20px; font-size: 14px; font-weight: 600; color: var(--fb-text-2);
    text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px;
    white-space: nowrap; transition: color .15s ease;
}
.fb-dash-tab:hover { color: var(--fb-primary); text-decoration: none; }
.fb-dash-tab--active { color: var(--fb-primary); border-bottom-color: var(--fb-primary); }

.fb-dash-section-title { font-size: 18px; font-weight: 700; margin: 0 0 20px; color: var(--fb-text); }
.fb-dash-empty { text-align: center; padding: 48px 20px; color: var(--fb-text-2); }

/* -------------------------------------------------------
   AFFILIATES
------------------------------------------------------- */
.fb-aff-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.fb-aff-stat { background: var(--fb-grad-soft); border: 1px solid var(--fb-border); border-radius: var(--fb-radius); padding: 20px; text-align: center; }
.fb-aff-stat span {
    display: block; font-size: 28px; font-weight: 800; background: var(--fb-grad);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.fb-aff-stat label { font-size: 13px; color: var(--fb-text-2); margin-top: 4px; display: block; }
.fb-aff-link-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.fb-aff-link-input {
    flex: 1; min-width: 200px; padding: 10px 16px; border: 1.5px solid var(--fb-border);
    border-radius: 50px; font-size: 13px; background: var(--fb-surface-2); color: var(--fb-text);
}
.fb-commission-row {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--fb-radius);
    background: var(--fb-surface-2); border: 1px solid var(--fb-border); margin-bottom: 8px; flex-wrap: wrap;
}
.fb-commission-msg { flex: 1; font-size: 14px; color: var(--fb-text-2); }
.fb-commission-amount { font-weight: 700; color: #22c55e; font-size: 16px; }
.fb-commission-date { font-size: 12px; color: var(--fb-text-2); }
@media (max-width: 768px) {
    .fb-aff-stats-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------
   WALLET & FORMULARIOS
------------------------------------------------------- */
.fb-wallet-balance-card {
    background: var(--fb-dark); border-radius: var(--fb-radius-lg); padding: 32px;
    text-align: center; margin-bottom: 28px; position: relative; overflow: hidden;
}
.fb-wallet-balance-card::before {
    content: ''; position: absolute; top: -40px; right: -40px; width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(124,58,237,.3) 0%, transparent 70%);
}
.fb-wallet-label { color: rgba(255,255,255,.6); font-size: 14px; margin-bottom: 8px; }
.fb-wallet-amount {
    font-size: 48px; font-weight: 800; color: #fff; position: relative;
    background: var(--fb-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.fb-wallet-amount span { font-size: 24px; opacity: .7; }

.fb-withdrawal-form { background: var(--fb-surface-2); border: 1px solid var(--fb-border); border-radius: var(--fb-radius-lg); padding: 24px; margin-bottom: 24px; }
.fb-withdrawal-form h4 { margin: 0 0 18px; font-size: 16px; font-weight: 700; }
.fb-form-field { margin-bottom: 16px; }
.fb-field-label { display: block; font-size: 13px; font-weight: 600; color: var(--fb-text-2); margin-bottom: 6px; }
.fb-input { width: 100%; padding: 10px 16px; border: 1.5px solid var(--fb-border); border-radius: var(--fb-radius); font-size: 14px; background: #fff; box-sizing: border-box; }
.fb-input:focus { border-color: var(--fb-primary); outline: none; box-shadow: 0 0 0 3px rgba(124,58,237,.1); }

.fb-form-msg { margin-top: 12px; padding: 10px 16px; border-radius: var(--fb-radius); font-size: 14px; }
.fb-form-msg--success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.fb-form-msg--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.fb-withdrawal-row {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--fb-radius);
    background: var(--fb-surface-2); border: 1px solid var(--fb-border); margin-bottom: 8px; flex-wrap: wrap;
}
.fb-withdrawal-amount { font-weight: 700; font-size: 16px; color: var(--fb-text); }
.fb-withdrawal-paypal { color: var(--fb-text-2); font-size: 13px; flex: 1; }
.fb-withdrawal-date   { color: var(--fb-text-2); font-size: 12px; }

/* -------------------------------------------------------
   REPRODUCTOR FIJO (FOOTER)
------------------------------------------------------- */
.fitbeat-player {
    position: fixed; bottom: 0; left: 0; right: 0; height: var(--fb-player-h);
    background: rgba(15,15,20,.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-top: 2px solid #e30052 !important; display: flex; align-items: center; padding: 0 20px;
    gap: 20px; z-index: 9999; transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.fitbeat-player--hidden { transform: translateY(100%); }
.fitbeat-player__track { display: flex; align-items: center; gap: 12px; width: 220px; flex-shrink: 0; overflow: hidden; }
.fitbeat-player__track img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.fitbeat-player__info { display: flex; flex-direction: column; overflow: hidden; }
#fb-player-title { color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#fb-player-meta { color: rgba(255,255,255,.5); font-size: 12px; }

.fitbeat-player__controls { flex: 1; display: flex; align-items: center; gap: 14px; max-width: 600px; margin: 0 auto; }
.fb-btn-play {
    width: 44px; height: 44px; border-radius: 50%; background: var(--fb-grad); border: none; color: #fff;
    display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(124,58,237,.4);
}
.fitbeat-player__progress-wrap { flex: 1; display: flex; align-items: center; gap: 10px; }
#fb-time-current, #fb-time-total { color: rgba(255,255,255,.5); font-size: 12px; width: 35px; }
#fb-time-total { text-align: right; }
.fitbeat-player__progress-bar { flex: 1; height: 4px; background: rgba(255,255,255,.15); border-radius: 4px; cursor: pointer; position: relative; }
.fitbeat-player__progress-fill { height: 100%; background: var(--fb-grad); border-radius: 4px; width: 0%; pointer-events: none; }

@media (max-width: 640px) {
    :root { --fb-player-h: 110px; }
    .fitbeat-player { flex-wrap: wrap; height: auto; padding: 10px 14px 12px; gap: 8px; justify-content: center; }
    .fitbeat-player__track { flex: 1; min-width: 0; width: auto; }
    .fitbeat-player__track img { width: 36px; height: 36px; }
    .fitbeat-player__controls { width: 100%; flex: none; gap: 10px; order: 3; }
    .fitbeat-player__progress-wrap { display: flex; flex: 1; }
}

/* 4. Animación de la flechita */
.fb-player-toggle-tab svg {
    transition: transform 0.3s ease;
}

.fitbeat-player.is-minimized .fb-player-toggle-tab svg {
    transform: rotate(180deg);
}



/* -------------------------------------------------------
   TOAST NOTIFICATION (Fondo blanco, letras verdes)
------------------------------------------------------- */
.fb-toast {
    position: fixed; 
    bottom: calc(var(--fb-player-h) + 16px); 
    left: 50%; 
    transform: translateX(-50%) translateY(20px);
    background: #ffffff !important; /* Fondo blanco */
    color: #111111 !important; !important; /* Letras verdes (mismo tono que el botón de carrito) */
    border: 1px solid #22c55e !important; /* Borde verde para que resalte */
    padding: 12px 22px; 
    border-radius: 50px; 
    font-size: 14px;
    font-weight: 700; /* Letra un poquito más gruesa para que el verde se lea perfecto */
    z-index: 10000; 
    opacity: 0; 
    transition: opacity .3s ease, transform .3s ease; 
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important; /* Sombra más suave */
}
.fb-toast.fb-toast--visible { 
    opacity: 1; 
    transform: translateX(-50%) translateY(0); 
}

/* -------------------------------------------------------
   WIDGET FLOTANTE
------------------------------------------------------- */
.fb-floating-widget {
    position: fixed;
    right: 20px;
    bottom: 110px; /* Altura base */
    z-index: 999999;
    transition: bottom 0.3s ease;
}

/* Forzamos que en celulares suba más para esquivar el reproductor */
@media (max-width: 768px) {
    .fb-floating-widget { 
        bottom: 150px !important; 
    }
}

@media (min-width: 769px) {
    .fb-floating-widget { 
        bottom: 30px; 
    }
}

.fb-btn-float {
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}
.fb-btn-float:active { transform: scale(0.95); }
.fb-float-empty { background: #f5f5f5; color: #a0a0a0; box-shadow: none; cursor: not-allowed; }

/* -------------------------------------------------------
   MODAL LATERAL (CARRITO)
------------------------------------------------------- */
#fb-cart-sidebar {
    position: fixed; top: 0; right: -350px; width: 320px; max-width: 100%; height: 100vh;
    background: #fff; box-shadow: -5px 0 15px rgba(0,0,0,0.1); z-index: 9999999;
    transition: right 0.3s ease; display: flex; flex-direction: column;
}
#fb-cart-sidebar.fb-cart-open { right: 0; }
.fb-cart-sidebar-header {
    display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #eee;
}
#fb-cart-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5);
    z-index: 9999998; display: none;
}

/* ---- ESTILOS WOOCOMMERCE DENTRO DEL PANEL LATERAL ---- */
.fb-cart-sidebar-content ul.cart_list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.fb-cart-sidebar-content ul.cart_list li {
    display: flex !important;
    align-items: center !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    position: relative !important;
    padding-right: 40px !important; /* Espacio reservado para la cruz */
}
.fb-cart-sidebar-content ul.cart_list li img {
    width: 50px !important; height: 50px !important; border-radius: 8px !important;
    margin-right: 15px !important; margin-left: 0 !important; float: none !important; object-fit: cover;
}
.fb-cart-sidebar-content ul.cart_list li a:not(.remove) {
    flex: 1 !important; font-weight: 600 !important; color: #111 !important;
    text-decoration: none !important; font-size: 14px !important; line-height: 1.3 !important;
}

/* La 'X' de Borrar (Estilo definitivo) */
.fb-cart-sidebar-content ul.cart_list li a.remove {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #ef4444 !important;
    border: 1px solid #ef4444 !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 16px !important;
    background: #fff !important;
    text-decoration: none !important;
    font-weight: bold !important;
    margin: 0 !important;
    padding: 0 !important;
}
.fb-cart-sidebar-content ul.cart_list li a.remove:hover {
    background: #ef4444 !important;
    color: #fff !important;
}

/* Contenedor de Botones de Compra */
.fb-cart-sidebar-content .buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 20px !important;
}
.fb-cart-sidebar-content .buttons .button {
    display: block !important; width: 100% !important; padding: 12px !important;
    border-radius: 50px !important; font-weight: bold !important; text-align: center !important;
    text-decoration: none !important; box-sizing: border-box !important;
}

/* 1. OCULTAR BOTONES REDUNDANTES (Ver Carrito nativo) */
.fb-cart-sidebar-content .buttons a.button.wc-forward:not(.checkout),
.fb-cart-sidebar-content .buttons a.button:not(.checkout) {
    display: none !important;
}

/* 2. BOTÓN ACTUALIZAR (Inyectado por JS) */
#fb-btn-update-cart {
    display: block !important;
    background: #ffffff !important;
    color: #444 !important;
    border: 1px solid #dddddd !important;
    margin-bottom: 8px !important;
}

/* 3. BOTÓN FINALIZAR COMPRA (Checkout) */
.fb-cart-sidebar-content .buttons .checkout {
    background: #e91e63 !important;
    color: #fff !important;
    border: none !important;
}




/* =======================================================
   FIX DEFINITIVO: BOTÓN FINALIZAR COMPRA (MOBILE Y DESKTOP)
   ======================================================= */

/* 1. Botón Finalizar Compra DENTRO del panel lateral */
.fb-cart-sidebar-content .buttons a.checkout,
.fb-cart-sidebar-content .buttons a.button.checkout {
    display: block !important;
    background: #e91e63 !important; /* Fondo fucsia forzado */
    color: #ffffff !important; /* Letras blancas forzadas */
    border: none !important;
    padding: 14px !important;
    border-radius: 50px !important;
    font-size: 15px !important;
    font-weight: bold !important;
    text-align: center !important;
    text-decoration: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 10px !important;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3) !important;
    transition: transform 0.2s ease !important;
}

/* Efecto al tocar el botón en el panel */
.fb-cart-sidebar-content .buttons a.checkout:active {
    transform: scale(0.96) !important;
}

/* 2. Botón Finalizar Compra en el WIDGET FLOTANTE */
.fb-float-checkout {
    display: inline-block !important;
    background: #e91e63 !important; /* Fondo fucsia forzado */
    color: #ffffff !important; /* Letras blancas forzadas */
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3) !important;
}

/* =======================================================
   BOTÓN MINIMIZAR REPRODUCTOR (PULL-TAB)
   ======================================================= */
/* 1. Al minimizar, empujamos el reproductor hacia abajo */
.fitbeat-player.is-minimized {
    transform: translateY(100%) !important;
}

/* 2. Si el reproductor está apagado/vacío por defecto, no mostramos la pestaña */
.fitbeat-player.fitbeat-player--hidden .fb-player-toggle-tab {
    display: none !important;
}

/* 3. Diseño de la Pestaña (Centrada) */
.fb-player-toggle-tab {
    position: absolute;
    top: -32px; 
    left: 50%; /* <--- Lo empuja a la mitad exacta de la pantalla */
    transform: translateX(-50%); /* <--- Lo ajusta para que el centro del botón quede en el medio */
    background: #e30052; 
    border: 1px solid rgba(124, 58, 237, 0.4); 
    border-bottom: none;
    color: #ffffff;
    padding: 4px 16px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10000;
    transition: all 0.2s ease;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
}

.fb-player-toggle-tab:hover {
    color: #ffffff;
    background: #e30052;
}



/* Nota: Borramos la regla @media de celulares porque el 50% funciona perfecto en todos los tamaños */


/* Subir botones flotantes en Desktop */
@media (min-width: 769px) {
    .fb-floating-widget {
        bottom: 110px !important; /* Lo subimos para que flote sobre el reproductor */
        right: 40px !important;    /* Le damos un poco más de aire al borde */
    }
}


/* --- ESTILOS DEL LOGO PNG --- */

.fb-header__logo {
    display: flex;
    align-items: center;
    padding-left: 10px; /* Un poco de aire a la izquierda */
}

.fb-logo-link {
    display: flex;
    align-items: center;
    height: 100%; /* Ocupa todo el alto del flex parent */
    text-decoration: none; /* Quitamos subrayado del enlace */
}

.fb-logo-img {
    /* Limitamos la altura a 40px para que quede centrado 
       dentro del header de 68px */
    height: 50px !important; 
    width: auto !important; /* Mantiene la proporción */
    
    display: block;
    object-fit: contain; /* Asegura que la imagen no se deforme */
    transition: transform 0.2s ease; /* Efecto suave para el hover */
}

/* Efecto sutil al pasar el mouse */
.fb-logo-link:hover .fb-logo-img {
    transform: scale(1.03);
}



/* El contenedor del logo dentro del disco */
.fb-vinyl-label {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* La imagen del logo propiamente dicha */
.fb-vinyl-logo-inner {
    width: 100px !important; /* Ajustá el tamaño para que encaje en el centro */
    height: auto;
    object-fit: contain;
    /* Si querés que el logo NO gire mientras el disco sí: */
    /* animation: fb-spin-reverse 8s linear infinite; */
}

/* Estilo para el centro del vinilo (opcional: hacerlo más grande para el logo) */
.fb-vinyl-center {
    width: 50px !important; 
    height: 50px !important;
    background: var(--fb-grad);
    position: absolute;
    border: 2px solid rgba(0,0,0,0.2);
}

/* Si activás el "spin-reverse", agregá esta animación: */
@keyframes fb-spin-reverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}













/* ============================================================
   CHECKOUT VIBRATIME APP: GRID 2 COLUMNAS Y MINIMALISTA
   ============================================================ */

/* 1. ESTRUCTURA MAESTRA (DESKTOP) - Grilla inquebrantable */
form.woocommerce-checkout {
    display: grid !important;
    grid-template-columns: 1fr 400px !important; /* Izquierda flexible, Derecha 400px fijos */
    gap: 30px !important;
    max-width: 1000px !important;
    margin: 40px auto !important;
    align-items: start !important;
    padding: 0 20px !important;
}

/* Limpieza de columnas flotantes nativas de WooCommerce */
form.woocommerce-checkout::before, 
form.woocommerce-checkout::after { 
    display: none !important; 
}
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. TARJETAS (CARDS) UTILIZANDO TUS VARIABLES SAAS */
#customer_details, #order_review {
    background: var(--fb-surface) !important;
    padding: 32px !important;
    border-radius: var(--fb-radius-lg) !important;
    border: 1px solid var(--fb-border) !important;
    box-shadow: var(--fb-shadow) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
}
#order_review {
    background: var(--fb-surface-2) !important; /* Un fondo levemente distinto para el pago */
}

/* 3. TÍTULOS Y ETIQUETAS MINIMALISTAS */
.woocommerce-checkout h3 {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--fb-text) !important;
    margin-bottom: 24px !important;
    border: none !important;
    padding: 0 !important;
}
#order_review_heading { display: none !important; } /* Ocultar título redundante */

.woocommerce-checkout label {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--fb-text-2) !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* 4. INPUTS ESTILO SAAS */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"] {
    background: var(--fb-surface) !important;
    border: 2px solid var(--fb-border) !important;
    border-radius: var(--fb-radius) !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    color: var(--fb-text) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: var(--fb-trans) !important;
    box-shadow: none !important;
}
.woocommerce-checkout input:focus {
    border-color: var(--fb-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 4px var(--fb-grad-soft) !important;
}

/* 5. TABLA DE RESUMEN LIMPIA */
.shop_table { border: none !important; width: 100% !important; margin-bottom: 20px !important; }
.shop_table th, .shop_table td {
    border-top: none !important;
    border-bottom: 1px solid var(--fb-border) !important;
    padding: 14px 0 !important;
    color: var(--fb-text) !important;
    font-size: 14px !important;
}
.shop_table .order-total th, .shop_table .order-total td {
    border-bottom: none !important;
    font-size: 18px !important;
    color: var(--fb-text) !important;
}
.shop_table .order-total .woocommerce-Price-amount {
    font-weight: 800 !important;
    color: var(--fb-primary) !important; /* Precio en tu violeta principal */
}

/* 6. PASARELA DE PAGO Y BOTÓN VIBRATIME */
#payment { background: transparent !important; }
#payment ul.payment_methods { padding: 0 !important; border: none !important; }
#payment ul.payment_methods li {
    background: var(--fb-surface) !important;
    border: 1px solid var(--fb-border) !important;
    border-radius: var(--fb-radius) !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    list-style: none !important;
}
#payment div.payment_box {
    background: var(--fb-surface-2) !important;
    color: var(--fb-text-2) !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-top: 10px !important;
    box-shadow: none !important;
}
#place_order {
    background: var(--fb-grad) !important; /* Gradiente de Vibratime */
    color: #fff !important;
    border: none !important;
    padding: 18px !important;
    border-radius: 50px !important; /* Botón píldora como en el resto de la web */
    font-size: 16px !important;
    font-weight: 700 !important;
    width: 100% !important;
    cursor: pointer !important;
    margin-top: 20px !important;
    transition: var(--fb-trans) !important;
    box-shadow: 0 4px 16px rgba(124,58,237,.3) !important;
}
#place_order:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 24px rgba(124,58,237,.4) !important;
}

/* Ocultar ruido visual extra */
.woocommerce-additional-fields,
.woocommerce-checkout-payment .about_paypal { display: none !important; }


/* ============================================================
   7. MODO MOBILE: MINIMALISTA, COMPACTO Y CENTRADO
   ============================================================ */
@media (max-width: 850px) {
    form.woocommerce-checkout {
        grid-template-columns: 1fr !important; /* Pasa a 1 sola columna vertical */
        gap: 20px !important;
        margin: 20px auto !important;
        padding: 10px !important;
    }
    
    #customer_details, #order_review {
        padding: 24px 20px !important; /* Menos espacio interior en celulares */
    }

    /* Reducción de textos e inputs para que no se vea gigante */
    .woocommerce-checkout h3 {
        font-size: 16px !important;
        text-align: center !important; /* Centra el título en móvil */
    }
    .woocommerce-checkout label {
        font-size: 11px !important;
    }
    .woocommerce-checkout input[type="text"],
    .woocommerce-checkout input[type="email"],
    .woocommerce-checkout input[type="tel"] {
        padding: 12px 14px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }
    .shop_table th, .shop_table td {
        font-size: 13px !important;
        padding: 10px 0 !important;
    }
    
    #place_order {
        padding: 14px !important;
        font-size: 15px !important;
    }
}





/* ============================================================
   ACHICAR TEXTO DE PRIVACIDAD EN CHECKOUT
   ============================================================ */
.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper p {
    font-size: 11px !important;
    line-height: 1.4 !important;
    color: var(--fb-text-2) !important;
    text-align: center !important;
    margin-top: 15px !important;
    margin-bottom: 10px !important;
}






/* Contenedor principal de los accesos de cuenta */
.fb-hero__account-actions {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Reglas específicas para que quede perfecto en celulares */
@media (max-width: 640px) {
    /* 1. Forza los dos botones principales a estar en 2 columnas */
    .fb-hero__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
    }
    
    .fb-hero__actions a {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 12px 10px !important;
        font-size: 13px !important; /* Achicamos un poco la letra para que entren ambos */
        white-space: nowrap;
    }
    
    .fb-hero__actions a svg {
        display: none; /* Ocultamos el ícono en celular para priorizar el texto */
    }

    /* 2. Centra los botones de Entrar | Crear cuenta */
    .fb-hero__account-actions {
        justify-content: center;
        width: 100%;
    }
}




/* ---- WHATSAPP FLOTANTE CON PESTAÑA ---- */
.fb-wa-widget {
    position: fixed;
    bottom: 120px; /* Más arriba, ajusta este valor si necesitas subirlo más */
    left: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    background-color: #25D366;
    border-radius: 0 50px 50px 0;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.fb-wa-link {
    display: flex;
    align-items: center;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 10px 10px 16px;
    transition: background 0.2s;
}

.fb-wa-link:hover {
    background-color: #128C7E;
}

.fb-wa-text {
    font-weight: 600;
    font-size: 14px;
    margin-left: 8px;
    white-space: nowrap;
    transition: all 0.3s;
    opacity: 1;
    max-width: 100px;
}

/* El botón divisor de Ocultar/Abrir */
.fb-wa-toggle {
    background: rgba(0,0,0,0.15);
    border: none;
    border-left: 1px solid rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px 0 12px;
    height: 44px; /* Igual a la altura de la píldora */
    transition: background 0.2s;
}

.fb-wa-toggle:hover {
    background: rgba(0,0,0,0.25);
}

.fb-wa-toggle-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 6px;
    white-space: nowrap;
    transition: all 0.3s;
    opacity: 1;
    max-width: 60px;
}

.fb-wa-arrow {
    transition: transform 0.3s;
}

/* ---- ESTADO CERRADO (Cuando el usuario le da a Ocultar) ---- */
.fb-wa-widget.is-closed .fb-wa-text {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    padding: 0;
}

.fb-wa-widget.is-closed .fb-wa-toggle-text {
    max-width: 0;
    opacity: 0;
    margin-right: 0;
}

.fb-wa-widget.is-closed .fb-wa-link {
    padding-right: 6px;
}

.fb-wa-widget.is-closed .fb-wa-toggle {
    padding: 0 12px;
    border-left: none; /* Quitamos la línea para que quede más limpio el ícono */
}

.fb-wa-widget.is-closed .fb-wa-arrow {
    transform: rotate(180deg); /* La flecha se da vuelta apuntando hacia afuera */
}









/* ---- AJUSTES MÓVILES PARA WIDGET WHATSAPP ---- */
@media (max-width: 640px) {
    .fb-wa-widget {
        bottom: 150px; /* Lo bajamos un poquito más en celu para que no quede en el medio de la pantalla */
    }
    
    .fb-wa-link {
        padding: 6px 8px 6px 12px; /* Reducimos los márgenes internos */
    }
    
    .fb-wa-link svg {
        width: 20px; /* Achicamos el ícono de WhatsApp */
        height: 20px;
    }
    
    .fb-wa-text {
        font-size: 12px; /* Letra más chica para "Soporte" */
        margin-left: 6px;
    }
    
    .fb-wa-toggle {
        height: 36px; /* Reducimos la altura total de la píldora */
        padding: 0 10px 0 8px;
    }
    
    .fb-wa-toggle-text {
        font-size: 10px; /* Letra más chica para "Ocultar" */
        margin-right: 4px;
    }
    
    .fb-wa-arrow {
        width: 14px; /* Achicamos la flechita */
        height: 14px;
    }
}

