/* ============================================
   Sistema de Entrenamiento Personalizado
   Tema: Neón moderno - Fondo negro, verde limón
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #0a0a0a;
    --bg-card: #111111;
    --bg-input: #1a1a1a;
    --neon-green: #ccff00;
    --neon-green-glow: rgba(204, 255, 0, 0.3);
    --text-primary: #e0e0e0;
    --text-muted: #a0a0a0;
    --danger: #ff4444;
    --success: #00ff88;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
}

/* ===================== HEADER ===================== */
.main-header {
    background-color: rgba(17,17,17,0.98);
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--neon-green);
    font-size: 1.8rem;
    text-shadow: 0 0 15px var(--neon-green-glow);
}

.main-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--neon-green);
    background-color: rgba(204,255,0,0.1);
    text-shadow: none;
}

/* ===================== WELCOME BANNER ===================== */
.welcome-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.welcome-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-large {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--neon-green);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 0 25px var(--neon-green-glow);
}

.welcome-left h1 {
    margin: 0;
    font-size: 1.8rem;
    text-align: left;
    text-shadow: none;
    color: #fff;
}

.welcome-left p {
    color: var(--text-muted);
    margin-top: 5px;
}

.access-info {
    display: flex;
    gap: 10px;
}

.badge-expiry {
    background-color: rgba(204,255,0,0.1);
    border: 1px solid var(--neon-green);
    border-radius: 20px;
    padding: 8px 16px;
    color: var(--neon-green);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===================== RESUMEN SEMANAL ===================== */
.week-summary {
    margin-bottom: 25px;
}

.week-summary h3 {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 1rem;
}

.week-days {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.day-item {
    flex: 1;
    min-width: 80px;
    background-color: #0a0a0a;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 10px 5px;
    text-align: center;
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.day-item:hover {
    border-color: var(--neon-green);
    transform: translateY(-3px);
}

.day-item.has-content {
    border-color: rgba(204,255,0,0.5);
}

.day-item.is-today {
    background-color: rgba(204,255,0,0.15);
    border-color: var(--neon-green);
}

.day-item.is-selected {
    background-color: var(--neon-green);
    color: #000;
    border-color: var(--neon-green);
    box-shadow: 0 0 20px var(--neon-green-glow);
}

.day-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-number {
    font-size: 1.4rem;
    font-weight: 700;
}

.day-indicator {
    font-size: 0.6rem;
    color: var(--neon-green);
}

.day-item.is-selected .day-indicator {
    color: #000;
}

/* ===================== SELECTOR FECHA MÓVIL ===================== */
.date-selector-mobile {
    display: none;
    margin-bottom: 20px;
}

.date-form {
    display: flex;
    gap: 10px;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid #222;
    border-radius: 10px;
    padding: 12px;
}

.date-form label {
    margin: 0;
    color: var(--text-muted);
    text-transform: none;
    font-size: 0.9rem;
}

.date-form input[type="date"] {
    width: auto;
    background-color: var(--bg-input);
    border: 1px solid #333;
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
}

/* ===================== TÍTULO SECCIÓN ===================== */
.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.section-title h2 {
    margin: 0;
    font-size: 1.5rem;
    border-left: none;
    padding-left: 0;
    color: #fff;
    text-shadow: none;
}

.badge-count {
    background-color: rgba(204,255,0,0.1);
    color: var(--neon-green);
    border-radius: 15px;
    padding: 4px 12px;
    font-size: 0.85rem;
}

/* ===================== TARJETAS DE CONTENIDO ===================== */
.content-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.content-type-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background-color: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.content-type-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.content-description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===================== EMPTY STATE ===================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--bg-card);
    border-radius: 15px;
    border: 1px dashed #444;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* ===================== FOOTER ===================== */
.main-footer {
    background-color: #0a0a0a;
    border-top: 1px solid #222;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo i {
    color: var(--neon-green);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-links a:hover {
    color: var(--neon-green);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===================== VIDEO PROTECCIÓN ===================== */
.video-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.video-wrapper video {
    width: 100%;
    display: block;
    pointer-events: auto;
}

.video-protect-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
    cursor: default;
}

.watermark {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 5;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .header-inner {
        height: auto;
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }
    .welcome-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .date-selector-mobile {
        display: block;
    }
    .week-days {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .day-item {
        min-width: 60px;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
.week-summary h3 { margin-bottom: 15px; color: var(--text-muted); font-size: 1rem; }
.week-days { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.day-item { flex: 1; min-width: 80px; background-color: #0a0a0a; border: 1px solid #222; border-radius: 10px; padding: 10px 5px; text-align: center; text-decoration: none; color: var(--text-muted); transition: var(--transition); display: flex; flex-direction: column; gap: 5px; }
.day-item:hover { border-color: var(--neon-green); transform: translateY(-3px); }
.day-item.has-content { border-color: rgba(204,255,0,0.5); }
.day-item.is-today { background-color: rgba(204,255,0,0.15); border-color: var(--neon-green); }
.day-item.is-selected { background-color: var(--neon-green); color: #000; border-color: var(--neon-green); box-shadow: 0 0 20px var(--neon-green-glow); }
.day-name { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
.day-number { font-size: 1.4rem; font-weight: 700; }
.day-indicator { font-size: 0.6rem; color: var(--neon-green); }
.day-item.is-selected .day-indicator { color: #000; }