/* =====================================================================
   YosoyErandy · Focus Guate · style.css
   Responsive: Desktop sidebar | Tablet top + sidebar | Mobile bottom nav
   ===================================================================== */

/* ── VARIABLES ─────────────────────────────────────────────────────── */
:root {
    --c-bg:        #faf4ec;
    --c-surface:   #ffffff;
    --c-surface2:  #fff9f2;
    --c-primary:   #c99d70;
    --c-primary-d: #a97d50;
    --c-primary-l: #f5e6d3;
    --c-accent:    #e8845a;
    --c-text:      #3d2b1f;
    --c-text2:     #7a5840;
    --c-muted:     #b89878;
    --c-border:    #edddc8;
    --c-shadow:    rgba(100,60,20,.10);
    --c-shadow-md: rgba(100,60,20,.16);
    --sidebar-w:   260px;
    --topbar-h:    60px;
    --bnav-h:      68px;
    --r:           16px;
    --r-pill:      50px;
    --font:        'Poppins', sans-serif;
    --ease:        cubic-bezier(.4,0,.2,1);
}
@media (prefers-color-scheme: dark) {
    :root {
        --c-bg:      #1e1510;
        --c-surface: #2a1e16;
        --c-surface2:#332418;
        --c-text:    #f5e8d8;
        --c-text2:   #c9a880;
        --c-muted:   #8a6848;
        --c-border:  #4a3020;
        --c-shadow:  rgba(0,0,0,.25);
    }
}

/* ── RESET ─────────────────────────────────────────────────────────── */
.yoe-app *, .yoe-app *::before, .yoe-app *::after { box-sizing: border-box; margin: 0; padding: 0; }
.yoe-app {
    font-family: var(--font);
    color: var(--c-text);
    background: var(--c-bg);
    min-height: 100%;
    position: relative;
}
.yoe-app a { text-decoration: none; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

/* ══════════════════════════════════════════════════════════════════════
   LAYOUT — DESKTOP (≥1024px): sidebar fija + main
   ══════════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
    .yoe-app { display: flex; min-height: 100vh; }

    /* SIDEBAR */
    .yoe-sidebar {
        width: var(--sidebar-w);
        flex-shrink: 0;
        background: var(--c-surface);
        border-right: 1px solid var(--c-border);
        display: flex;
        flex-direction: column;
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        z-index: 200;
    }
    .yoe-topbar      { display: none; }
    .yoe-bottom-nav  { display: none; }
    .yoe-sidebar-overlay { display: none; }

    /* MAIN */
    .yoe-main {
        flex: 1;
        min-width: 0;
        padding: 32px 40px;
        overflow-y: auto;
        max-width: calc(100vw - var(--sidebar-w));
    }

    /* Hábitos: 2 columnas en desktop */
    .yoe-two-col { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
    .yoe-admin-grid { grid-template-columns: repeat(3, 1fr); }
    .yoe-community-layout { max-width: 720px; }
    #blogList { grid-template-columns: repeat(3, 1fr); }
    #noticesList { grid-template-columns: repeat(2, 1fr); }
    .yoe-stats-grid { grid-template-columns: repeat(4, 1fr); }
    .yoe-dash-grid { grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
}

/* ══════════════════════════════════════════════════════════════════════
   LAYOUT — TABLET (768–1023px): sidebar oculta / hamburger
   ══════════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1023px) {
    .yoe-app { display: flex; flex-direction: column; min-height: 100vh; }
    .yoe-bottom-nav { display: none; }

    /* Sidebar deslizable */
    .yoe-sidebar {
        position: fixed; top: 0; left: -100%; height: 100vh; z-index: 500;
        width: 280px;
        background: var(--c-surface);
        border-right: 1px solid var(--c-border);
        display: flex; flex-direction: column;
        transition: left .28s var(--ease);
        box-shadow: 4px 0 24px var(--c-shadow-md);
    }
    .yoe-sidebar.open { left: 0; }

    .yoe-main { flex: 1; padding: 24px 28px; padding-top: calc(var(--topbar-h) + 24px); }
    .yoe-two-col { display: grid; grid-template-columns: 280px 1fr; gap: 20px; }
    .yoe-admin-grid { grid-template-columns: repeat(2, 1fr); }
    #blogList { grid-template-columns: repeat(2, 1fr); }
    .yoe-stats-grid { grid-template-columns: repeat(4, 1fr); }
    .yoe-dash-grid { grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
}

/* ══════════════════════════════════════════════════════════════════════
   LAYOUT — MOBILE (<768px): topbar + bottom nav
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .yoe-sidebar { display: none; }
    .yoe-main { padding: 16px; padding-top: calc(var(--topbar-h) + 16px); padding-bottom: calc(var(--bnav-h) + 16px); }
    .yoe-two-col { display: block; }
    .yoe-two-col .yoe-col-left { margin-bottom: 16px; }
    .yoe-admin-grid { grid-template-columns: 1fr; }
    #blogList { grid-template-columns: 1fr; }
    #noticesList { grid-template-columns: 1fr; }
    .yoe-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .yoe-dash-grid { display: block; margin-top: 16px; }
    .yoe-dash-grid > *:first-child { margin-bottom: 16px; }
}

/* ══════════════════════════════════════════════════════════════════════
   SIDEBAR STYLES
   ══════════════════════════════════════════════════════════════════════ */
.yoe-sidebar-profile {
    padding: 24px 20px 18px;
    border-bottom: 1px solid var(--c-border);
    display: flex; flex-direction: column; gap: 10px;
}
.yoe-sidebar-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    object-fit: cover; border: 3px solid var(--c-primary-l);
    box-shadow: 0 4px 12px var(--c-shadow);
}
.yoe-sidebar-info strong {
    display: block; font-size: .95rem; font-weight: 700; color: var(--c-text);
}
.yoe-sidebar-info span { font-size: .75rem; color: var(--c-muted); }
.yoe-badge-admin {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(232,132,90,.12); color: var(--c-accent);
    font-size: .72rem; font-weight: 700;
    padding: 3px 10px; border-radius: var(--r-pill);
    width: fit-content;
}

.yoe-sidebar-nav {
    flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px;
}
.yoe-nav-btn {
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 11px 14px;
    background: none; border: none; cursor: pointer;
    font-family: var(--font); font-size: .88rem; font-weight: 500;
    color: var(--c-text2); border-radius: 12px;
    transition: all .15s var(--ease);
    position: relative; text-align: left;
}
.yoe-nav-btn i { width: 20px; text-align: center; font-size: 1rem; flex-shrink: 0; }
.yoe-nav-btn:hover { background: var(--c-primary-l); color: var(--c-primary-d); }
.yoe-nav-btn.active {
    background: var(--c-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(201,157,112,.35);
}
.yoe-nav-btn.active i { color: #fff; }
.yoe-nav-btn.yoe-nav-admin { color: var(--c-accent); }
.yoe-nav-btn.yoe-nav-admin.active { background: var(--c-accent); color: #fff; box-shadow: 0 4px 14px rgba(232,132,90,.3); }
.yoe-nav-badge {
    margin-left: auto; background: var(--c-accent); color: #fff;
    font-size: .65rem; font-weight: 700; min-width: 18px; height: 18px;
    border-radius: 9px; display: flex; align-items: center; justify-content: center;
    padding: 0 5px;
}

.yoe-sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid var(--c-border);
}
.yoe-sidebar-logout {
    display: flex; align-items: center; gap: 10px;
    color: var(--c-muted); font-size: .84rem;
    padding: 9px 14px; border-radius: 12px;
    transition: all .15s;
}
.yoe-sidebar-logout:hover { background: var(--c-primary-l); color: var(--c-primary-d); }

/* ══════════════════════════════════════════════════════════════════════
   TOPBAR (mobile / tablet)
   ══════════════════════════════════════════════════════════════════════ */
.yoe-topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 300;
    height: var(--topbar-h);
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    display: flex; align-items: center;
    padding: 0 16px; gap: 12px;
    box-shadow: 0 2px 12px var(--c-shadow);
}
.yoe-hamburger {
    background: none; border: none; cursor: pointer;
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--c-text2);
    transition: background .15s;
}
.yoe-hamburger:hover { background: var(--c-primary-l); }
.yoe-topbar-brand { flex: 1; font-weight: 700; font-size: 1.05rem; color: var(--c-text); }
.yoe-topbar-right { display: flex; align-items: center; gap: 8px; }
.yoe-topbar-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--c-primary-l); }
.yoe-icon-btn {
    position: relative; background: none; border: none; cursor: pointer;
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--c-text2); font-size: .95rem; transition: background .15s;
}
.yoe-icon-btn:hover { background: var(--c-primary-l); }
.yoe-notif-dot {
    position: absolute; top: 5px; right: 5px;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--c-accent); border: 2px solid var(--c-surface);
}

/* Sidebar overlay (tablet) */
.yoe-sidebar-overlay {
    display: none; position: fixed; inset: 0; z-index: 490;
    background: rgba(0,0,0,.45); backdrop-filter: blur(2px);
}
.yoe-sidebar-overlay.active { display: block; }

/* ══════════════════════════════════════════════════════════════════════
   BOTTOM NAV (solo mobile)
   ══════════════════════════════════════════════════════════════════════ */
.yoe-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
    height: var(--bnav-h);
    display: flex; align-items: stretch;
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    box-shadow: 0 -4px 20px var(--c-shadow);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.yoe-bnav-btn {
    flex: 1; background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 8px 4px; margin: 4px 2px;
    font-family: var(--font); font-size: .6rem; font-weight: 500;
    color: var(--c-muted); border-radius: 12px;
    transition: all .18s var(--ease);
}
.yoe-bnav-btn i { font-size: 1.15rem; transition: transform .2s var(--ease); }
.yoe-bnav-btn.active { color: var(--c-primary-d); background: var(--c-primary-l); }
.yoe-bnav-btn.active i { transform: scale(1.15); }
.yoe-bnav-btn.yoe-bnav-admin { color: var(--c-accent); }
.yoe-bnav-btn.yoe-bnav-admin.active { background: rgba(232,132,90,.12); }

/* ══════════════════════════════════════════════════════════════════════
   PANTALLAS / SCREENS
   ══════════════════════════════════════════════════════════════════════ */
.yoe-screen { display: none; animation: yoeFadeUp .22s var(--ease) both; }
.yoe-screen.active { display: block; }
@keyframes yoeFadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

.yoe-page-header { margin-bottom: 24px; }
.yoe-page-header h1 { font-size: 1.6rem; font-weight: 800; color: var(--c-text); line-height: 1.2; }
.yoe-page-header p  { font-size: .9rem; color: var(--c-text2); margin-top: 4px; }
.yoe-accent { color: var(--c-primary-d); }
.yoe-subtitle { color: var(--c-text2); font-size: .9rem; margin-top: 4px; }

/* ── STATS GRID ────────────────────────────────────────────────────── */
.yoe-stats-grid { display: grid; gap: 14px; margin-bottom: 0; }
.yoe-stat-card {
    background: var(--c-surface); border-radius: var(--r);
    border: 1px solid var(--c-border);
    padding: 20px; display: flex; align-items: center; gap: 16px;
    box-shadow: 0 4px 16px var(--c-shadow);
    transition: transform .15s, box-shadow .15s;
}
.yoe-stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--c-shadow-md); }
.yoe-stat-card.fire  { border-top: 3px solid #ff6b35; }
.yoe-stat-card.check { border-top: 3px solid #4caf50; }
.yoe-stat-card.book  { border-top: 3px solid #5c85d6; }
.yoe-stat-card.star  { border-top: 3px solid var(--c-primary); }
.yoe-stat-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.yoe-stat-num  { font-size: 1.9rem; font-weight: 800; color: var(--c-text); line-height: 1; }
.yoe-stat-lbl  { font-size: .75rem; color: var(--c-muted); font-weight: 500; margin-top: 3px; }

/* ── DASHBOARD GRID ────────────────────────────────────────────────── */
.yoe-dash-grid { display: grid; gap: 20px; margin-top: 20px; }

/* ── CARD ──────────────────────────────────────────────────────────── */
.yoe-card {
    background: var(--c-surface);
    border-radius: var(--r); border: 1px solid var(--c-border);
    box-shadow: 0 4px 16px var(--c-shadow); padding: 22px;
}
.yoe-card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px;
}
.yoe-card-header h3 { font-size: 1rem; font-weight: 700; color: var(--c-text); display: flex; align-items: center; gap: 8px; }
.yoe-card-header h3 i { color: var(--c-primary); }
.yoe-mb { margin-bottom: 12px; }
.yoe-mt { margin-top: 12px; }

/* ── CALENDARIO ────────────────────────────────────────────────────── */
.yoe-cal-card { padding: 20px; }
.yoe-cal-card .yoe-card-header { margin-bottom: 14px; }
.yoe-cal-btn {
    background: var(--c-surface2); border: 1px solid var(--c-border);
    width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--c-text2); font-size: .8rem; transition: all .15s;
}
.yoe-cal-btn:hover { background: var(--c-primary-l); color: var(--c-primary-d); }
.yoe-cal-dow { display: grid; grid-template-columns: repeat(7,1fr); text-align: center; margin-bottom: 8px; }
.yoe-cal-dow span { font-size: .72rem; font-weight: 600; color: var(--c-muted); padding: 4px; }
.yoe-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.yoe-cal-day {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    font-size: .78rem; font-weight: 500; border-radius: 50%; color: var(--c-text2);
}
.yoe-cal-day.empty { background: none; }
.yoe-cal-day.is-today { border: 2px solid var(--c-primary); font-weight: 700; color: var(--c-primary-d); }
.yoe-cal-day.low  { background: rgba(201,157,112,.2); }
.yoe-cal-day.mid  { background: rgba(201,157,112,.45); color: var(--c-text); }
.yoe-cal-day.high { background: var(--c-primary); color: #fff; font-weight: 700; }

/* ── QUICK HABITS (dashboard) ──────────────────────────────────────── */
.yoe-quick-habits { overflow-y: auto; max-height: 340px; }
#quickHabits { display: flex; flex-direction: column; gap: 8px; }
.yoe-qh-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 10px;
    background: var(--c-surface2); border: 1.5px solid var(--c-border);
    transition: all .15s;
}
.yoe-qh-item.done { background: rgba(201,157,112,.1); border-color: var(--c-primary-l); }
.yoe-qh-dot   { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.yoe-qh-name  { flex: 1; font-size: .85rem; font-weight: 500; color: var(--c-text); }
.yoe-qh-item.done .yoe-qh-name { text-decoration: line-through; color: var(--c-muted); }
.yoe-qh-btn {
    background: none; border: 1.5px solid var(--c-border);
    border-radius: var(--r-pill); padding: 4px 12px;
    font-size: .72rem; font-weight: 600; font-family: var(--font);
    color: var(--c-text2); cursor: pointer; transition: all .12s;
    white-space: nowrap;
}
.yoe-qh-btn:hover, .yoe-qh-item.done .yoe-qh-btn {
    background: var(--c-primary); color: #fff; border-color: var(--c-primary);
}

/* ── FORMS ─────────────────────────────────────────────────────────── */
.yoe-input, .yoe-select, .yoe-app textarea {
    width: 100%; font-family: var(--font); font-size: .88rem;
    background: var(--c-surface2); color: var(--c-text);
    border: 1.5px solid var(--c-border); border-radius: 12px;
    padding: 11px 14px; outline: none;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none; appearance: none;
    display: block;
}
.yoe-input:focus, .yoe-select:focus, .yoe-app textarea:focus {
    border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(201,157,112,.18);
}
.yoe-app textarea { resize: vertical; min-height: 80px; }
.yoe-app select.yoe-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b89878' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.yoe-color-input { width: 44px; height: 44px; padding: 2px; border-radius: 10px; cursor: pointer; border: 2px solid var(--c-border); flex-shrink: 0; }
.yoe-form-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.yoe-form-row .yoe-input { flex: 1; min-width: 120px; }

/* ── BUTTONS ───────────────────────────────────────────────────────── */
.yoe-btn-primary {
    background: var(--c-primary); color: #fff;
    border: none; border-radius: 12px;
    padding: 11px 20px; font-family: var(--font); font-size: .88rem; font-weight: 600;
    cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
    transition: all .15s; white-space: nowrap;
}
.yoe-btn-primary:hover { background: var(--c-accent); transform: translateY(-1px); }
.yoe-btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.yoe-btn-block {
    width: 100%; padding: 13px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    color: #fff; font-family: var(--font); font-size: .9rem; font-weight: 600;
    border: none; border-radius: var(--r-pill); cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 4px 14px rgba(201,157,112,.3);
    transition: all .18s var(--ease);
}
.yoe-btn-block:hover   { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,157,112,.4); }
.yoe-btn-block:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.yoe-btn-ghost {
    background: none; border: 1.5px solid var(--c-border);
    padding: 10px 20px; border-radius: var(--r-pill);
    font-family: var(--font); font-size: .85rem; font-weight: 500;
    color: var(--c-text2); cursor: pointer;
    display: inline-flex; align-items: center; gap: 7px;
    transition: all .15s; text-decoration: none;
}
.yoe-btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary-d); background: var(--c-primary-l); }
.yoe-btn-ghost.full { width: 100%; justify-content: center; }

.yoe-btn-send {
    background: var(--c-primary); color: #fff; border: none; border-radius: var(--r-pill);
    padding: 9px 20px; font-family: var(--font); font-size: .84rem; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all .15s;
}
.yoe-btn-send:hover { background: var(--c-accent); }
.yoe-btn-send:disabled { opacity: .6; cursor: not-allowed; }

.yoe-btn-danger-sm {
    background: none; border: 1px solid #f7b; color: #c02; border-radius: 8px;
    font-size: .72rem; padding: 4px 10px; cursor: pointer; font-family: var(--font);
    transition: all .15s; margin-top: 6px;
}
.yoe-btn-danger-sm:hover { background: #fff0f2; }

/* ── CHIPS ─────────────────────────────────────────────────────────── */
.yoe-chips-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.yoe-chip {
    padding: 5px 14px; border-radius: var(--r-pill);
    font-size: .78rem; font-weight: 600;
    background: color-mix(in srgb, var(--chip-color, #c99d70) 15%, transparent);
    color: color-mix(in srgb, var(--chip-color, #c99d70) 80%, var(--c-text));
    border: 1.5px solid color-mix(in srgb, var(--chip-color, #c99d70) 35%, transparent);
}
.yoe-chip-empty { font-size: .8rem; color: var(--c-muted); padding: 4px 0; }

/* ── HÁBITOS LIST ──────────────────────────────────────────────────── */
#habitsGrid { display: flex; flex-direction: column; gap: 10px; }
.yoe-habit-card {
    background: var(--c-surface); border-radius: 14px;
    border: 1.5px solid var(--c-border); padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 2px 8px var(--c-shadow); transition: all .15s;
}
.yoe-habit-card:hover { box-shadow: 0 4px 16px var(--c-shadow-md); }
.yoe-habit-card.checked { background: color-mix(in srgb, var(--c-primary) 7%, var(--c-surface)); border-color: var(--c-primary-l); }
.yoe-habit-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.yoe-habit-name { font-size: .9rem; font-weight: 500; color: var(--c-text); }
.yoe-habit-card.checked .yoe-habit-name { text-decoration: line-through; color: var(--c-muted); }
.yoe-habit-cat { font-size: .72rem; color: var(--c-muted); margin-top: 2px; }
.yoe-habit-toggle {
    background: var(--c-surface2); border: 1.5px solid var(--c-border);
    border-radius: var(--r-pill); padding: 6px 14px;
    font-family: var(--font); font-size: .75rem; font-weight: 600;
    cursor: pointer; color: var(--c-text2);
    display: flex; align-items: center; gap: 6px;
    transition: all .15s; white-space: nowrap; flex-shrink: 0;
}
.yoe-habit-toggle:hover, .yoe-habit-toggle.checked { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.yoe-habit-del { background: none; border: none; cursor: pointer; color: var(--c-muted); font-size: .9rem; padding: 6px; border-radius: 8px; transition: color .15s; }
.yoe-habit-del:hover { color: #c02; background: #fff0f2; }

/* ── PLANES ────────────────────────────────────────────────────────── */
#plansList { display: flex; flex-direction: column; gap: 14px; }
.yoe-plan-card { background: var(--c-surface); border-radius: var(--r); border: 1px solid var(--c-border); padding: 20px; box-shadow: 0 4px 14px var(--c-shadow); }
.yoe-plan-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.yoe-plan-title { font-size: 1rem; font-weight: 700; color: var(--c-text); }
.yoe-plan-del { background: none; border: none; cursor: pointer; color: var(--c-muted); font-size: .9rem; padding: 4px; }
.yoe-plan-del:hover { color: #c02; }
.yoe-plan-progress-bar { height: 8px; background: var(--c-border); border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.yoe-plan-bar-fill { height: 100%; background: linear-gradient(90deg, var(--c-primary), var(--c-accent)); border-radius: 8px; transition: width .4s var(--ease); }
.yoe-plan-meta { font-size: .78rem; color: var(--c-muted); margin-bottom: 14px; font-weight: 500; }
.yoe-plan-days { display: flex; flex-wrap: wrap; gap: 6px; }
.yoe-day-btn {
    width: 34px; height: 34px;
    background: var(--c-surface2); border: 1.5px solid var(--c-border);
    border-radius: 9px; font-size: .74rem; font-weight: 600;
    color: var(--c-text2); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .12s;
}
.yoe-day-btn.done { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.yoe-day-btn:hover:not(.done) { border-color: var(--c-primary); color: var(--c-primary-d); }

/* ── COMUNIDAD ─────────────────────────────────────────────────────── */
.yoe-composer { padding: 18px; margin-bottom: 18px; }
.yoe-composer-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.yoe-composer-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--c-primary-l); flex-shrink: 0; }
.yoe-composer-row textarea { flex: 1; resize: none; min-height: 80px; background: var(--c-surface2); border: 1.5px solid var(--c-border); border-radius: 14px; padding: 12px; font-family: var(--font); font-size: .88rem; color: var(--c-text); outline: none; transition: border-color .15s; }
.yoe-composer-row textarea:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(201,157,112,.18); }
.yoe-composer-foot { display: flex; align-items: center; justify-content: space-between; }
.yoe-charcount { font-size: .75rem; color: var(--c-muted); }
.yoe-charcount.yoe-char-warn { color: var(--c-accent); }

.yoe-feed { display: flex; flex-direction: column; gap: 14px; }
.yoe-post-card { background: var(--c-surface); border-radius: var(--r); border: 1px solid var(--c-border); padding: 18px; box-shadow: 0 2px 8px var(--c-shadow); }
.yoe-post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.yoe-post-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.yoe-post-meta strong { display: block; font-size: .88rem; color: var(--c-text); }
.yoe-post-meta span   { font-size: .74rem; color: var(--c-muted); }
.yoe-post-meta { flex: 1; }
.yoe-post-content { font-size: .9rem; color: var(--c-text); line-height: 1.55; margin-bottom: 14px; white-space: pre-wrap; }
.yoe-post-actions { display: flex; gap: 10px; align-items: center; }
.yoe-like-btn, .yoe-comment-toggle {
    background: none; border: 1px solid var(--c-border); border-radius: var(--r-pill);
    padding: 6px 14px; font-size: .78rem; font-weight: 600; cursor: pointer;
    color: var(--c-muted); display: flex; align-items: center; gap: 6px;
    transition: all .15s; font-family: var(--font);
}
.yoe-like-btn:hover   { background: #fff0f2; border-color: #f8a; color: #c02; }
.yoe-like-btn.liked   { background: #fff0f2; border-color: #f8a; color: #e03; }
.yoe-comment-toggle:hover { border-color: var(--c-primary); color: var(--c-primary-d); }
.yoe-post-del { background: none; border: none; cursor: pointer; color: var(--c-muted); font-size: .9rem; margin-left: auto; padding: 4px; border-radius: 8px; transition: all .15s; }
.yoe-post-del:hover { color: #c02; background: #fff0f2; }
.yoe-comments-wrap { margin-top: 12px; border-top: 1px solid var(--c-border); padding-top: 12px; }
.yoe-comments-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.yoe-comment { display: flex; gap: 8px; align-items: baseline; font-size: .82rem; }
.yoe-comment strong { color: var(--c-text2); flex-shrink: 0; }
.yoe-comment span   { color: var(--c-text); flex: 1; }
.yoe-comment-time   { color: var(--c-muted); font-size: .7rem; flex-shrink: 0; }
.yoe-comment-form   { display: flex; gap: 8px; align-items: center; }
.yoe-comment-input  { flex: 1; padding: 9px 12px; font-size: .83rem; border-radius: 10px; }
.yoe-load-more-wrap { text-align: center; padding: 12px 0; }

/* ── AVISOS ────────────────────────────────────────────────────────── */
#noticesList { display: grid; gap: 14px; }
.yoe-notice-card {
    border-radius: var(--r); padding: 18px 20px;
    border-left: 4px solid var(--c-primary);
    background: var(--c-surface);
    box-shadow: 0 2px 10px var(--c-shadow);
    position: relative;
}
.yoe-notice-card.yoe-notice-info     { border-color: #5c85d6; }
.yoe-notice-card.yoe-notice-success  { border-color: #4caf50; }
.yoe-notice-card.yoe-notice-warning  { border-color: #ff9800; }
.yoe-notice-card.yoe-notice-reminder { border-color: var(--c-primary); }
.yoe-notice-card.yoe-notice-event    { border-color: #9c27b0; }
.yoe-notice-card.pinned::after { content: '📌'; position: absolute; top: 14px; right: 16px; font-size: .9rem; }
.yoe-notice-title { font-size: .95rem; font-weight: 700; color: var(--c-text); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.yoe-notice-title i { color: var(--c-primary); }
.yoe-notice-img { width: 100%; border-radius: 10px; margin: 10px 0; object-fit: cover; max-height: 200px; }
.yoe-notice-text { font-size: .86rem; color: var(--c-text2); line-height: 1.5; margin-bottom: 8px; }
.yoe-notice-time { font-size: .72rem; color: var(--c-muted); }

/* ── BLOG ──────────────────────────────────────────────────────────── */
#blogList { display: grid; gap: 18px; }
.yoe-blog-card { background: var(--c-surface); border-radius: var(--r); border: 1px solid var(--c-border); overflow: hidden; box-shadow: 0 4px 16px var(--c-shadow); transition: transform .15s, box-shadow .15s; }
.yoe-blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px var(--c-shadow-md); }
.yoe-blog-img-wrap img { width: 100%; height: 180px; object-fit: cover; display: block; }
.yoe-blog-img-placeholder { height: 100px; background: var(--c-primary-l); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--c-primary); }
.yoe-blog-body { padding: 18px; }
.yoe-blog-title { font-size: 1rem; font-weight: 700; color: var(--c-text); margin-bottom: 8px; }
.yoe-blog-excerpt { font-size: .84rem; color: var(--c-text2); line-height: 1.45; margin-bottom: 12px; }
.yoe-blog-footer { display: flex; gap: 12px; font-size: .74rem; color: var(--c-muted); margin-bottom: 12px; }
.yoe-read-more {
    background: none; border: 1.5px solid var(--c-primary); border-radius: var(--r-pill);
    padding: 7px 18px; font-family: var(--font); font-size: .8rem; font-weight: 600;
    color: var(--c-primary-d); cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
    transition: all .15s;
}
.yoe-read-more:hover { background: var(--c-primary); color: #fff; }

/* ── ADMIN ─────────────────────────────────────────────────────────── */
.yoe-admin-grid { display: grid; gap: 20px; }
.yoe-toggle-row { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--c-text2); cursor: pointer; margin-top: 10px; }
.yoe-switch-input { position: absolute; opacity: 0; width: 0; height: 0; }
.yoe-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; background: var(--c-border); border-radius: 12px; transition: background .2s; }
.yoe-switch::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; left: 3px; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.yoe-switch-input:checked ~ .yoe-switch { background: var(--c-primary); }
.yoe-switch-input:checked ~ .yoe-switch::after { transform: translateX(20px); }

/* ── MODAL ─────────────────────────────────────────────────────────── */
.yoe-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.yoe-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); }
.yoe-modal-box {
    position: relative; z-index: 1; background: var(--c-surface);
    border-radius: 24px; width: 100%; max-width: 680px;
    max-height: 85vh; overflow-y: auto; padding: 32px;
    box-shadow: 0 24px 64px rgba(0,0,0,.25);
    animation: yoeFadeUp .24s var(--ease);
}
.yoe-modal-close {
    position: absolute; top: 18px; right: 18px;
    background: var(--c-surface2); border: none; border-radius: 50%;
    width: 36px; height: 36px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; color: var(--c-muted); transition: all .15s;
}
.yoe-modal-close:hover { background: var(--c-primary-l); color: var(--c-primary-d); }
.yoe-modal-body { padding-top: 4px; }
.yoe-modal-title { font-size: 1.4rem; font-weight: 800; color: var(--c-text); margin-bottom: 16px; padding-right: 44px; }
.yoe-modal-hero { width: 100%; border-radius: 14px; max-height: 280px; object-fit: cover; margin-bottom: 18px; }
.yoe-modal-content { font-size: .9rem; color: var(--c-text2); line-height: 1.7; }
.yoe-modal-content p { margin-bottom: 12px; }
.yoe-modal-by { font-size: .76rem; color: var(--c-muted); margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--c-border); }
/* Mobile: bottom sheet */
@media (max-width: 767px) {
    .yoe-modal { align-items: flex-end; padding: 0; }
    .yoe-modal-box { border-radius: 24px 24px 0 0; max-height: 88vh; padding: 20px; }
    .yoe-modal-box::before { content:''; display:block; width:40px; height:4px; background:var(--c-border); border-radius:2px; margin:0 auto 16px; }
}

/* ── TOAST ─────────────────────────────────────────────────────────── */
.yoe-toast {
    position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
    background: #2a1e16; color: #fff;
    padding: 13px 24px; border-radius: var(--r-pill);
    font-family: var(--font); font-size: .86rem; font-weight: 500;
    display: flex; align-items: center; gap: 9px;
    z-index: 10000; box-shadow: 0 8px 28px rgba(0,0,0,.3);
    white-space: nowrap; max-width: 88vw;
}
@media (max-width: 767px) { .yoe-toast { bottom: calc(var(--bnav-h) + 16px); } }
.yoe-toast i { font-size: 1rem; color: var(--c-primary); }
.yoe-toast.yoe-toast-error i { color: #f77; }
.yoe-toast.yoe-toast-info  i { color: #7af; }

/* ── ESTADOS ───────────────────────────────────────────────────────── */
.yoe-loading { text-align: center; padding: 40px 20px; color: var(--c-muted); font-size: .9rem; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.yoe-loading i { font-size: 1.6rem; color: var(--c-primary); }
.yoe-empty { text-align: center; padding: 48px 20px; color: var(--c-muted); }
.yoe-empty i { font-size: 2.4rem; display: block; margin-bottom: 12px; color: var(--c-primary-l); }
.yoe-empty p { font-size: .9rem; }
