:root {
    --bg: #07090e;
    --card-bg: rgba(13, 17, 23, 0.7);
    --border: #21262d;
    --text: #f0f6fc;
    --text-muted: #8b949e;
    --accent: #2f81f7; /* Azul tech de LeetSoft */
    --accent-glow: rgba(47, 129, 247, 0.15);
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Efecto de fondo de puntitos estilo LeetSoft/GitHub */
.dots-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(240, 246, 252, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: -1;
    pointer-events: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 8%;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0; z-index: 100;
}
.logo { font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; }
.logo .token { color: var(--accent); }
.nav-actions { display: flex; gap: 1.5rem; align-items: center; }
.btn-nav { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.3s;}
.btn-nav:hover { color: var(--text); }
.btn-accent { 
    font-family: var(--font-mono); border: 1px solid var(--accent); color: var(--accent);
    padding: 6px 16px; border-radius: 4px; text-decoration: none; font-size: 0.9rem;
    transition: all 0.3s;
}
.btn-accent:hover { background: var(--accent-glow); }

/* Hero */
.hero {
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}
.badge {
    font-family: var(--font-mono); font-size: 0.75rem; color: #56d364;
    background: rgba(86, 211, 100, 0.05); padding: 4px 12px; border-radius: 20px;
    border: 1px solid rgba(86, 211, 100, 0.2); margin-bottom: 1.5rem;
}
h1 { font-size: 3.8rem; font-weight: 800; letter-spacing: -1.5px; line-height: 1.15; margin-bottom: 1rem; }
.gradient-text { background: linear-gradient(90deg, #58a6ff, #bc8cff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { max-width: 650px; color: var(--text-muted); font-size: 1.15rem; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; }

/* Botones */
.btn-primary, .btn-secondary {
    padding: 12px 28px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: white; box-shadow: 0 4px 25px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); background: #1f6feb; }
.btn-secondary { border: 1px solid var(--border); color: var(--text); }
.btn-secondary:hover { background: var(--border); }

/* Secciones Genéricas */
.section-container { padding: 6rem 8% 2rem 8%; }
.section-header { margin-bottom: 3rem; }
.section-number { font-family: var(--font-mono); color: var(--accent); font-size: 0.9rem; }
.section-header h2 { font-size: 2rem; font-weight: 700; margin-top: 0.5rem; }
.section-header p { color: var(--text-muted); }

/* Cuadrícula de Aplicaciones (Apps Grid) */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.app-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.app-card:hover {
    border-color: #444d56;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.app-icon { font-size: 2rem; margin-bottom: 1rem; }
.app-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; font-weight: 600; }
.app-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; }
.app-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.app-tags span {
    font-family: var(--font-mono); font-size: 0.75rem; background: #161b22;
    padding: 2px 8px; border-radius: 4px; border: 1px solid var(--border); color: #c9d1d9;
}
.app-link {
    font-family: var(--font-mono); color: var(--accent); text-decoration: none; font-size: 0.9rem; font-weight: bold;
}
.app-link:hover { text-decoration: underline; }

/* Sección Academia (Estilo Terminal Grande) */
.call-to-action-section { padding-bottom: 8rem; }
.academy-panel {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
    max-width: 900px; margin: 0 auto; box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.panel-code-header {
    background: #161b22; padding: 12px 20px; display: flex; align-items: center; border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.panel-title { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); margin-left: 10px; }
.panel-body { padding: 3.5rem 2rem; text-align: center; }
.panel-body h2 { font-size: 2.2rem; margin-bottom: 1rem; letter-spacing: -1px; }
.panel-body p { color: var(--text-muted); max-width: 600px; margin: 0 auto 2.5rem auto; font-size: 1.1rem; }

/* Botón Gigante Terminal */
.btn-huge {
    display: inline-block; font-family: var(--font-mono); background: #000; color: #56d364;
    border: 1px solid var(--border); padding: 16px 32px; border-radius: 6px; text-decoration: none;
    font-weight: bold; font-size: 1.2rem; transition: all 0.3s;
}
.btn-huge:hover {
    border-color: #56d364; box-shadow: 0 0 20px rgba(86, 211, 100, 0.2); transform: scale(1.02);
}
.terminal-prompt { color: var(--accent); }

/* =========================================
   ESTILOS ESPECÍFICOS PARA LA PLAYLIST 
   (Aislados para no afectar el dark theme global)
   ========================================= */

/* Definimos las variables solo dentro de este contenedor */
.playlist-wrapper {
    --bg-app: #e2c9a9;
    --bg-tarjeta: #ebd5b6;
    --color-texto-app: #593922;
    --sombra-tarjeta: rgba(89, 57, 34, 0.25);

    /* Sobrescribimos el fondo y la fuente solo aquí */
    background-color: var(--bg-app);
    color: var(--color-texto-app);
    font-family: 'Georgia', 'Times New Roman', serif;
    padding: 60px 20px;
    
    /* Opcional: si quieres que ocupe toda la pantalla debajo del navbar */
    min-height: 100vh; 
    display: flex;
    justify-content: center;
}

/* --- Contenedor Principal de la Playlist --- */
.playlist-wrapper .main-container {
    max-width: 1200px;
    width: 100%;
}

/* --- Título --- */
.playlist-wrapper .main-header {
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-texto-app);
}

.playlist-wrapper .main-header h1 {
    font-size: 2.2rem;
    font-weight: bold;
    margin-top: 10px;
    letter-spacing: normal; /* Reseteamos el letter-spacing negativo de tu global */
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
    line-height: 1.3;
}

.playlist-wrapper .main-header-icon {
    font-size: 1.2rem;
    color: var(--color-texto-app); 
    opacity: 0.8;
}

/* --- Cuadrícula --- */
.playlist-wrapper .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* --- Tarjetas (Cambiado a .playlist-card para evitar conflictos) --- */
.playlist-wrapper .card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.playlist-wrapper .card-link:active {
    transform: scale(0.95);
}

.playlist-wrapper .card-link:hover {
    transform: translateY(-5px);
}

.playlist-wrapper .playlist-card {
    background-color: var(--bg-tarjeta);
    border-radius: 18px;
    border: none; /* Quitamos bordes en caso de que herede del global */
    overflow: hidden;
    box-shadow: 0 6px 12px var(--sombra-tarjeta), inset 0 2px 0 rgba(255,255,255,0.4);
}

/* --- Imágenes --- */
.playlist-wrapper .card-image-container {
    width: 100%;
    position: relative;
    padding-top: 100%;
    background-color: #d1b796; 
    border-radius: 18px 18px 0 0;
}

.playlist-wrapper .card-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px 18px 0 0;
    transition: filter 0.3s ease;
}

.playlist-wrapper .card-link:hover .card-image-container img {
    filter: brightness(1.15) contrast(1.1);
}

.playlist-wrapper .card-corner-icon {
    position: absolute;
    bottom: 10px;
    right: 15px;
    color: #fff;
    opacity: 0.7;
    font-size: 1.2rem;
    z-index: 10;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.playlist-wrapper .card-link:hover .card-corner-icon {
    opacity: 1;
}

/* --- Textos de la tarjeta --- */
.playlist-wrapper .card-text {
    padding: 20px 15px;
    text-align: center;
}

.playlist-wrapper .card-text h2 {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-texto-app);
    letter-spacing: 0.5px;
    margin: 0; /* Reseteamos márgenes heredados */
}