/* ==========================================================================
   1. VARIABLES Y TEMA
   ========================================================================== */
:root {
    /* --- Paleta Modo Oscuro (Default) --- */
    --bg: #0b0f14;
    --card: #111722;
    --text: #eaf2ff;
    --muted: #a6b3c4;
    --brand: #6fe3ff;
    --brand-2: #9eff80;
    --accent: #b892ff;
    --border: #1d2533;
    --hover: #273144;
    --red: #ff4d4d;
    --yt-bg: #0e121a;
    --btn-text: #0b0f14;
}

/* --- Paleta Modo Claro (Automático) --- */
@media (prefers-color-scheme: light) {
    :root {
        --bg: #f4f6f8;
        --card: #ffffff;
        --text: #1a202c;
        --muted: #4a5568;
        --brand: #0070f3;
        --brand-2: #16a34a;
        --accent: #7c3aed;
        --border: #e2e8f0;
        --hover: #edf2f7;
        --red: #dc2626;
        --yt-bg: #ffffff;
        --btn-text: #ffffff;
    }
}

/* ==========================================================================
   2. RESET Y BASES
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; } /* CORREGIDO */

html { scroll-behavior: smooth; }

html, body {
    margin: 0; padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

a { color: inherit; text-decoration: none; }

/* ==========================================================================
   3. LAYOUT GENERAL
   ========================================================================== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px; margin: 32px 0; justify-content: center;
}
.embed {
    aspect-ratio: 16/9; background: #000; border-radius: 12px;
    overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.embed iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   4. TIPOGRAFÍA Y HERO
   ========================================================================== */
.hero { padding: 60px 0 30px; text-align: center; }
.title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin: 0 auto .5rem;
    line-height: 1.25;
    background: linear-gradient(to right, var(--text), var(--muted));
    -webkit-background-clip: text;
    color: transparent;
}
.lead { color: var(--muted); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* ==========================================================================
   5. HEADER Y NAVEGACIÓN
   ========================================================================== */
header {
    position: sticky; top: 0; background: var(--bg);
    border-bottom: 1px solid var(--border); z-index: 50; transition: background 0.3s;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; gap: .6rem; align-items: center; font-weight: 700; font-size: 1.1rem; }
.logo-badge {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg,var(--brand),var(--brand-2));
    display: grid; place-items: center; color: #001114; font-weight: 800;
}
.menu { display: flex; gap: 0.5rem; }
.menu a {
    padding: .5rem .75rem; border-radius: 8px; color: var(--muted);
    font-size: 0.95rem; transition: all 0.2s ease;
}
.menu a:hover { background: var(--card); color: var(--text); }
.nav-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }

@media (max-width: 768px) {
    .nav { flex-wrap: wrap; height: auto; padding: 10px 20px; }
    .menu { order: 2; width: 100%; overflow-x: auto; padding-bottom: 5px; margin-top: 10px; gap: 0; }
    .menu a { white-space: nowrap; }
    .logo-text { display: none; }
    .nav-link { font-size: 0.85rem; padding: 0.5rem 0.4rem !important; }
    .nav-link svg { display: none; }
}

/* ==========================================================================
   6. BOTONES (CTAs)
   ========================================================================== */
.cta {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 12px 30px; border-radius: 50px;
    font-weight: 700; font-size: 1rem; transition: all 0.2s ease;
    border: 2px solid transparent; cursor: pointer;
}
.cta-primary { background: var(--brand); color: var(--btn-text); }
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(111, 227, 255, 0.4); }
.cta-outline { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.cta-outline:hover {
    background: var(--brand); color: var(--btn-text);
    box-shadow: 0 0 20px rgba(111, 227, 255, 0.3); transform: translateY(-2px);
}
.menu .btn-kofi {
    background-color: #72a4f2; color: #ffffff; font-weight: 700;
    display: inline-flex; align-items: center; border: 1px solid #72a4f2;
    box-shadow: 0 2px 5px rgba(114, 164, 242, 0.3);
}
.menu .btn-kofi:hover {
    background-color: #5a8dd6; border-color: #5a8dd6; color: #ffffff;
    transform: translateY(-1px); margin-left: 15px;
}
.icon-kofi { width: 20px; height: 20px; margin-right: 6px; vertical-align: text-bottom; }

/* ==========================================================================
   7. COMPONENTES GLOBALES (CARDS Y BADGES)
   ========================================================================== */
.card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 16px; padding: 24px; display: flex; flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; height: 100%;
}
.card h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
a.card:hover {
    border-color: var(--brand); box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}
.badge {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    font-weight: bold; font-size: 0.9rem; margin-bottom: 1rem;
}
.badge[data-lang="qvi"] { background: rgba(111, 227, 255, 0.15); color: var(--brand); border: 1px solid rgba(111, 227, 255, 0.3); }
.badge[data-lang="es"] { background: rgba(158, 255, 128, 0.15); color: var(--brand-2); border: 1px solid rgba(158, 255, 128, 0.3); }
.badge[data-lang="en"] { background: rgba(184, 146, 255, 0.15); color: var(--accent); border: 1px solid rgba(184, 146, 255, 0.3); }

/* ==========================================================================
   8. SECCIÓN HOME: YOUTUBE
   ========================================================================== */
.yt-hero {
    margin: 60px 0 32px; border-radius: 24px;
    background: linear-gradient(135deg, #1f0505 0%, #0f0f0f 100%);
    border: 1px solid #3f1010; position: relative; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.yt-bg-pattern {
    position: absolute; top: -50%; right: -10%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,0,0,0.08) 0%, transparent 70%);
    border-radius: 50%; z-index: 1; pointer-events: none;
}
.yt-content {
    position: relative; z-index: 2; padding: 40px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.yt-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }
.yt-logo-wrapper {
    width: 60px; height: 60px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px rgba(255,0,0,0.4);
}
.yt-icon-logo { color: #ff0000; width: 32px; height: 32px; }
.yt-title { margin: 0; font-size: 2rem; color: white; line-height: 1; }
.yt-subtitle { color: #aaa; font-size: 0.9rem; letter-spacing: 1px; }
.yt-desc { color: #ddd; max-width: 600px; margin: 0 0 30px 0; font-size: 1.1rem; }
.yt-actions { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }

.btn-yt-primary {
    background-color: #cc0000; color: white; padding: 12px 24px; border-radius: 50px;
    font-weight: 700; text-transform: uppercase; font-size: 0.9rem;
    border: 2px solid #cc0000; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
}
.btn-yt-primary:hover { background-color: #ff0000; border-color: #ff0000; transform: translateY(-2px); }
.btn-yt-secondary {
    background-color: transparent; color: white; padding: 12px 24px;
    border-radius: 50px; font-weight: 600; font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.2); transition: all 0.3s ease;
}
.btn-yt-secondary:hover { background-color: rgba(255, 255, 255, 0.1); border-color: white; }

/* ==========================================================================
   9. TARJETAS DE VIDEO
   ========================================================================== */
.card-media {
    padding: 0; overflow: hidden; background: var(--card);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card-media:hover { transform: translateY(-4px); box-shadow: 0 10px 40px rgba(0,0,0,0.15); }
.card-media .embed {
    width: 100%; aspect-ratio: 16/9; border-radius: 0;
    border-bottom: 1px solid var(--border); box-shadow: none;
}
.card-content { padding: 12px 16px; display: flex; flex-direction: column; }
.card-text { flex-grow: 1; text-align: left; }
.card-content h3 { margin: 0 0 4px 0; font-size: 1rem; line-height: 1.3; color: var(--text); }
.card-content p { font-size: 0.85rem; line-height: 1.4; color: var(--muted); margin-bottom: 8px; }
.btn-media-link {
    font-size: 0.8rem; font-weight: 600; color: var(--brand);
    display: inline-flex; align-items: center; transition: color 0.2s; align-self: flex-start;
}
.btn-media-link:hover { color: var(--text); text-decoration: underline; }

/* ==========================================================================
   10. TARJETAS ESPECIALES
   ========================================================================== */
.card-special {
    position: relative; padding: 0; overflow: hidden;
    border: 1px solid var(--border); box-shadow: 0 0 15px rgba(184, 146, 255, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card-special:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); border-color: var(--accent); }
.card-main-link { display: block; padding: 24px; flex-grow: 1; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.tag-collab {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    color: #fbbf24; background: rgba(251, 191, 36, 0.1); padding: 4px 8px;
    border-radius: 6px; border: 1px solid rgba(251, 191, 36, 0.3); letter-spacing: 0.5px;
}
.card-footer-collab {
    background: rgba(0, 0, 0, 0.2); border-top: 1px solid var(--border);
    padding: 12px 24px; display: flex; align-items: center; justify-content: space-between;
    font-size: 0.85rem; gap: 10px;
}
.collab-info { display: flex; flex-direction: column; line-height: 1.2; }
.collab-info span { color: var(--muted); font-size: 0.75rem; }
.collab-info strong { color: var(--text); font-weight: 700; }
.btn-friend {
    display: inline-flex; align-items: center; gap: 6px;
    background-color: #cc0000; color: white; padding: 6px 12px; border-radius: 20px;
    font-weight: 600; font-size: 0.75rem; transition: background 0.2s, transform 0.1s;
}
.btn-friend:hover { background-color: #ff0000; transform: scale(1.05); box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3); }

/* ==========================================================================
   11. ELEMENTOS DE LECCIONES / CURSOS
   ========================================================================== */
.callout {
    border-left: 4px solid var(--brand); padding: 15px 20px;
    background: rgba(111, 227, 255, 0.05); border-radius: 8px; margin: 24px 0; color: var(--text);
}
.callout strong { color: var(--brand); }

details {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 10px; padding: 15px; margin-bottom: 15px; transition: background 0.2s;
}
details[open] { background: var(--hover); }
summary { cursor: pointer; font-weight: 700; color: var(--brand-2); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; float: right; font-weight: bold; }
details[open] summary::after { content: '-'; }
details ul { margin-bottom: 0; padding-left: 20px; color: var(--muted); margin-top: 10px; }

/* Widget Descarga */
.download-widget {
    display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
    background: linear-gradient(145deg, var(--card) 0%, rgba(17, 23, 34, 0.6) 100%);
    border: 1px solid var(--border); border-radius: 16px; padding: 30px;
    position: relative; overflow: hidden; margin: 40px 0;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3); transition: transform 0.3s ease, border-color 0.3s ease;
}
.download-widget:hover { border-color: var(--brand); transform: translateY(-2px); }
.download-widget::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: linear-gradient(to bottom, var(--brand), var(--brand-2));
}
.file-icon {
    width: 80px; height: 80px; background: rgba(111, 227, 255, 0.1);
    border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--brand); flex-shrink: 0;
}
.file-icon svg { width: 36px; height: 36px; margin-bottom: 4px; }
.file-type { font-size: 0.7rem; font-weight: 800; letter-spacing: 1px; }
.file-info { flex: 1; min-width: 250px; }
.file-tag { font-size: 0.75rem; text-transform: uppercase; color: var(--brand-2); font-weight: 700; margin-bottom: 5px; display: block; }
.file-info h3 { margin: 0 0 8px 0; font-size: 1.4rem; color: var(--text); }
.file-info p { margin: 0 0 12px 0; font-size: 0.95rem; color: var(--muted); }
.file-meta { font-size: 0.85rem; color: var(--muted); display: flex; gap: 8px; opacity: 0.7; }
.btn-download {
    background: var(--text); color: var(--bg); font-weight: 700;
    padding: 12px 24px; border-radius: 50px; display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.2s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn-download:hover { transform: scale(1.05); background: var(--brand); color: #000; box-shadow: 0 0 20px rgba(111, 227, 255, 0.4); }

/* Playlist Banner */
.playlist-link {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(to right, #1f0505, var(--card));
    border: 1px solid rgba(255, 0, 0, 0.2);
    padding: 15px 25px; border-radius: 12px; text-decoration: none;
    margin-top: 30px; transition: all 0.3s ease;
}
.playlist-link:hover { border-color: #ff0000; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(255, 0, 0, 0.15); }
.playlist-content { display: flex; align-items: center; gap: 15px; }
.icon-yt-small { color: #ff0000; width: 32px; height: 32px; }
.playlist-info strong { display: block; color: var(--text); font-size: 1.05rem; line-height: 1.2; }
.playlist-info span { color: var(--muted); font-size: 0.85rem; }
.playlist-arrow { color: var(--brand); transition: transform 0.2s; }
.playlist-link:hover .playlist-arrow { transform: translateX(5px); color: #ff0000; }

/* Navegación Lecciones */
.lesson-navigation {
    display: flex; justify-content: space-between; align-items: center;
    margin: 40px 0 60px; gap: 20px; border-top: 1px solid var(--border); padding-top: 30px;
}
.nav-btn {
    display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-radius: 12px;
    text-decoration: none; transition: all 0.3s ease; flex: 1; max-width: 300px;
}
.nav-btn.prev { background: var(--card); border: 1px solid var(--border); color: var(--muted); }
.nav-btn.prev:hover { background: var(--hover); color: var(--text); transform: translateX(-5px); }
.nav-btn.next {
    background: var(--brand); color: var(--btn-text); font-weight: 800;
    justify-content: flex-end; text-align: right; box-shadow: 0 4px 15px rgba(111, 227, 255, 0.3);
}
.nav-btn.next:hover { filter: brightness(1.1); transform: translateX(5px); box-shadow: 0 6px 20px rgba(111, 227, 255, 0.5); }
.nav-label { display: flex; flex-direction: column; font-size: 0.8rem; }
.nav-label small { text-transform: uppercase; font-size: 0.7rem; opacity: 0.7; letter-spacing: 1px; }
.nav-label strong { font-size: 1rem; }
.nav-btn.disabled { opacity: 0.3; pointer-events: none; background: transparent; border-color: transparent; }

/* ==========================================================================
   12. BENTO GRID (QUÉ APRENDERÁS)
   ========================================================================== */
.learn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.learn-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 20px;
    padding: 30px; position: relative; overflow: hidden; transition: all 0.3s ease;
    display: flex; flex-direction: column; gap: 15px;
}
.learn-card:hover {
    transform: translateY(-5px); border-color: var(--brand);
    box-shadow: 0 10px 30px -10px rgba(111, 227, 255, 0.15);
}
.learn-icon {
    width: 50px; height: 50px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 5px; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.learn-card:hover .learn-icon { transform: scale(1.1) rotate(5deg); }
.icon-blue { background: rgba(111, 227, 255, 0.1); color: var(--brand); }
.icon-green { background: rgba(158, 255, 128, 0.1); color: var(--brand-2); }
.icon-purple { background: rgba(184, 146, 255, 0.1); color: var(--accent); }
.icon-red { background: rgba(255, 77, 77, 0.1); color: var(--red); }
.learn-card h3 { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--text); }
.learn-card p { margin: 0; font-size: 0.95rem; color: var(--muted); line-height: 1.6; }
.learn-card::before {
    content: ''; position: absolute; top: -50px; right: -50px; width: 100px; height: 100px;
    background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
    opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}
.learn-card:hover::before { opacity: 0.1; }
@media (min-width: 900px) {
    .learn-card.wide { grid-column: span 2; background: linear-gradient(to right, var(--card), rgba(111, 227, 255, 0.03)); }
}

/* ==========================================================================
   13. SIDEBAR Y LAYOUT CURSO
   ========================================================================== */
.course-layout {
    display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; padding-bottom: 60px;
}
.course-sidebar {
    position: sticky; top: 90px; background: var(--card); border: 1px solid var(--border);
    border-radius: 16px; padding: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.sidebar-title {
    font-size: 1rem; font-weight: 800; margin-bottom: 15px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border); color: var(--text);
    display: flex; justify-content: space-between; align-items: center;
}
.lesson-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.lesson-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: 8px; text-decoration: none; font-size: 0.9rem;
    color: var(--muted); transition: all 0.2s; border: 1px solid transparent;
}
.lesson-item:hover { background: var(--bg); color: var(--text); }
.lesson-item.active {
    background: rgba(111, 227, 255, 0.1); color: var(--brand);
    border-color: rgba(111, 227, 255, 0.3); font-weight: 600;
}
.status-icon {
    width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0;
}
.lesson-item.active .status-icon {
    border-color: var(--brand); background: var(--brand); box-shadow: none;
}
@media (max-width: 960px) {
    .course-layout { grid-template-columns: 1fr; }
    .course-sidebar { order: 2; position: static !important; }
}

/* ==========================================================================
   14. SECCIÓN HOBBY / KO-FI
   ========================================================================== */
.hobby-section {
    margin-top: 80px; border-top: 1px solid var(--border); padding-top: 40px;
}
.hobby-container {
    background: linear-gradient(to right, var(--card), rgba(11, 15, 20, 0.5));
    border: 1px solid var(--border); border-radius: 16px; padding: 30px;
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
}
.hobby-info { flex: 1; }
.hobby-badge {
    display: inline-block; font-size: 0.75rem; font-weight: 800; color: var(--muted);
    background: var(--bg); padding: 4px 10px; border-radius: 6px;
    border: 1px solid var(--border); margin-bottom: 12px; letter-spacing: 0.5px;
}
.hobby-info p { margin: 0; font-size: 0.95rem; color: var(--muted); line-height: 1.5; }
.hobby-info strong { color: var(--text); }

.btn-kofi-large {
    display: flex; align-items: center; gap: 15px;
    background: #29abe0; color: white; padding: 10px 24px 10px 16px;
    border-radius: 50px; text-decoration: none; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(41, 171, 224, 0.2); flex-shrink: 0;
}
.btn-kofi-large:hover {
    background: #1da0d6; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(41, 171, 224, 0.4);
}
.kofi-icon-box {
    width: 34px; height: 34px; background: rgba(255,255,255,0.15);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.kofi-icon-box svg { width: 20px; height: 20px; }
.steam { opacity: 0.8; animation: steam-rise 2s infinite ease-in-out; transform-origin: bottom; }
.s1 { animation-delay: 0s; } .s2 { animation-delay: 0.5s; } .s3 { animation-delay: 1s; }
@keyframes steam-rise {
    0% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-3px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.5; }
}
.kofi-text { display: flex; flex-direction: column; line-height: 1; }
.kofi-text small { font-size: 0.7rem; opacity: 0.9; }
.kofi-text strong { font-size: 1.1rem; letter-spacing: 0.5px; }

@media (max-width: 650px) {
    .hobby-container { flex-direction: column; text-align: center; gap: 20px; }
    .hobby-info, .btn-kofi-large { width: 100%; justify-content: center; }
}

/* ==========================================================================
   15. COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-card {
    position: fixed; bottom: 30px; left: 30px; width: 320px;
    background: rgba(11, 15, 20, 0.85); backdrop-filter: blur(12px);
    border: 1px solid var(--border); border-radius: 16px; padding: 24px;
    z-index: 9999; box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    font-family: system-ui, -apple-system, sans-serif; animation: slideUp 0.5s ease-out;
}
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cookie-icon { font-size: 1.5rem; animation: wiggle 2s infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
.cookie-card h3 { margin: 0; font-size: 1.1rem; color: var(--text); }
.cookie-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; margin: 0 0 20px 0; }
.cookie-actions { display: flex; gap: 10px; }
.btn-cookie-primary {
    flex: 1; background: var(--brand); color: #0b0f14; border: none; padding: 10px;
    border-radius: 8px; font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: transform 0.2s;
}
.btn-cookie-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(111, 227, 255, 0.3); }
.btn-cookie-secondary {
    flex: 1; background: transparent; color: var(--muted); border: 1px solid var(--border);
    padding: 10px; border-radius: 8px; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all 0.2s;
}
.btn-cookie-secondary:hover { border-color: var(--text); color: var(--text); }
@media (max-width: 480px) {
    .cookie-card { left: 20px; right: 20px; width: auto; bottom: 20px; }
}

/* ==========================================================================
   16. ESTILOS PÁGINA LEGAL (Movidos desde legal.html)
   ========================================================================== */
.legal-content { max-width: 800px; margin: 60px auto; padding: 0 20px; }
.legal-content h1 { text-align: center; margin-bottom: 10px; font-size: 2rem; }
.legal-content .date { display: block; text-align: center; color: var(--muted); margin-bottom: 50px; font-size: 0.9rem; }
.legal-section { margin-bottom: 50px; }
.legal-section h2 { font-size: 1.5rem; color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 15px; margin-bottom: 20px; }
.legal-section h3 { font-size: 1.1rem; color: var(--brand); margin-top: 30px; margin-bottom: 10px; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 0.95rem; line-height: 1.7; text-align: justify; }
.legal-content ul { padding-left: 20px; margin-bottom: 20px; }
.legal-content li { margin-bottom: 8px; }
.license-box { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin: 20px 0; }
.btn-reset-cookies {
    background: transparent; border: 1px solid var(--red); color: var(--red);
    padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; margin-top: 10px;
}
.btn-reset-cookies:hover { background: rgba(255, 77, 77, 0.1); }

/* ==========================================================================
   17. FOOTER
   ========================================================================== */
footer {
    border-top: 1px solid var(--border); padding: 20px 0; color: var(--muted); margin-top: 60px;
    text-align: center; font-size: 0.85rem;
}
