/* ============================================================
   RCAD PRO — Sidebar Accordion v4 — Paleta ámbar elegante
   ============================================================ */

/* ── CONTENEDOR ─────────────────────────────────────────── */
.rcad-sidebar-accordion {
    background: #fff;
    border: 1px solid #e8e0d0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(180,130,0,.08);
}

.rcad-sidebar-title {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #fff;
    background: #f5a623;
    padding: 12px 16px;
    margin: 0;
}

.rcad-accordion-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── NIVEL 0 ────────────────────────────────────────────── */
.rcad-acc-item {
    border-bottom: 1px solid #f0ebe0;
    position: relative;
}
.rcad-acc-item:last-child { border-bottom: none; }

.rcad-acc-row { display: flex; align-items: stretch; }

.rcad-acc-link {
    flex: 1;
    padding: 11px 14px;
    color: #2d2a22;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    transition: color .15s, background .15s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rcad-acc-link:hover {
    color: #c47f00;
    background: #fffbf0;
    text-decoration: none;
}

/* ── BOTÓN TOGGLE — chevron elegante ───────────────────── */
.rcad-acc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    background: transparent;
    border: none;
    border-left: 1px solid #f0ebe0;
    cursor: pointer;
    color: #c8b080;
    transition: all .2s;
    padding: 0;
    flex-shrink: 0;
}
.rcad-acc-btn:hover {
    background: #fff8e6;
    color: #f5a623;
}
.rcad-acc-btn[aria-expanded="true"] {
    background: #fff3d0;
    color: #d48a00;
    border-left-color: #f5d080;
}

/* Símbolo chevron — ▾ / ▴ */
.rcad-acc-sym {
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    user-select: none;
    display: inline-block;
    transition: transform .25s ease;
    color: inherit;
}
.rcad-acc-btn[aria-expanded="true"] .rcad-acc-sym {
    transform: rotate(180deg);
}

/* ── ACTIVO / ANCESTRO ──────────────────────────────────── */
.rcad-acc-current > .rcad-acc-row {
    background: linear-gradient(90deg, #fff8e1 0%, #fffdf7 100%);
}
.rcad-acc-current > .rcad-acc-row > .rcad-acc-link {
    color: #c47f00;
    font-weight: 700;
    padding-left: 11px;
    border-left: 3px solid #f5a623;
}
.rcad-acc-ancestor > .rcad-acc-row > .rcad-acc-link {
    color: #b87200;
    font-weight: 700;
}

/* ── SUBMENU NIVEL 1 ────────────────────────────────────── */
.rcad-acc-d0 {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    background: #faf7f0;
    border-top: 1px solid #ede5d0;
}
.rcad-acc-d0 > .rcad-acc-item {
    border-bottom: 1px solid #ede8dc;
}
.rcad-acc-d0 > .rcad-acc-item:last-child { border-bottom: none; }

.rcad-acc-d0 > .rcad-acc-item > .rcad-acc-row > .rcad-acc-link {
    padding: 9px 14px 9px 30px;
    font-size: 13px;
    font-weight: 500;
    color: #4a3f2a;
    position: relative;
}
/* Viñeta nivel 1 — rombo ◆ */
.rcad-acc-d0 > .rcad-acc-item > .rcad-acc-row > .rcad-acc-link::before {
    content: '◆';
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 5px;
    color: #d4a840;
    line-height: 1;
    transition: color .15s;
}
.rcad-acc-d0 > .rcad-acc-item > .rcad-acc-row > .rcad-acc-link:hover::before {
    color: #f5a623;
}
.rcad-acc-d0 > .rcad-acc-item > .rcad-acc-row > .rcad-acc-link:hover {
    color: #c47f00;
    background: #fff3d8;
}
.rcad-acc-d0 .rcad-acc-btn {
    width: 38px;
    background: transparent;
    border-left: 1px solid #ede8dc;
    color: #d4b870;
}
.rcad-acc-d0 .rcad-acc-btn:hover,
.rcad-acc-d0 .rcad-acc-btn[aria-expanded="true"] {
    background: #fff3d8;
    color: #d48a00;
}

/* Activo nivel 1 */
.rcad-acc-d0 > .rcad-acc-current > .rcad-acc-row > .rcad-acc-link {
    color: #c47f00;
    font-weight: 600;
    background: #fff3d0;
}
.rcad-acc-d0 > .rcad-acc-current > .rcad-acc-row > .rcad-acc-link::before {
    color: #f5a623;
    font-size: 6px;
}

/* ── SUBMENU NIVEL 2 ────────────────────────────────────── */
.rcad-acc-d1 {
    list-style: none;
    margin: 0;
    padding: 2px 0;
    background: #f2ece0;
    border-top: 1px solid #e5dcc8;
}
.rcad-acc-d1 > .rcad-acc-item {
    border-bottom: 1px solid #e8e0cc;
}
.rcad-acc-d1 > .rcad-acc-item:last-child { border-bottom: none; }

.rcad-acc-d1 > .rcad-acc-item > .rcad-acc-row > .rcad-acc-link {
    padding: 8px 14px 8px 46px;
    font-size: 12.5px;
    font-weight: 400;
    color: #6b5c40;
    position: relative;
}
/* Viñeta nivel 2 — guión largo elegante */
.rcad-acc-d1 > .rcad-acc-item > .rcad-acc-row > .rcad-acc-link::before {
    content: '—';
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #c8a84a;
    line-height: 1;
    font-weight: 300;
    transition: color .15s;
}
.rcad-acc-d1 > .rcad-acc-item > .rcad-acc-row > .rcad-acc-link:hover {
    color: #c47f00;
    background: #ffe8a0;
}
.rcad-acc-d1 > .rcad-acc-item > .rcad-acc-row > .rcad-acc-link:hover::before {
    color: #f5a623;
}

/* Activo nivel 2 */
.rcad-acc-d1 > .rcad-acc-current > .rcad-acc-row > .rcad-acc-link {
    color: #c47f00;
    font-weight: 600;
    background: #ffeea0;
}

/* ── EMOJI / ICONO ──────────────────────────────────────── */
.rcad-icon {
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}

/* ── OCULTAR search-item ────────────────────────────────── */
.widget-area .search-form,
.widget-area .widget_search,
.rcad-accordion-menu > .menu-item.search-item,
.rcad-acc-sub > .menu-item.search-item { display: none !important; }

/* ── LAYOUT SIDEBAR ─────────────────────────────────────── */
#content-wrapper.flex { display: flex; gap: 30px; }
#content-wrapper.flex > .entry-content { flex: 1; min-width: 0; }
#content-wrapper.flex > #secondary,
#content-wrapper.flex > .entry-aside { width: 300px; flex-shrink: 0; }

@media (max-width: 991px) {
    #content-wrapper.flex { flex-direction: column; }
    #content-wrapper.flex > #secondary,
    #content-wrapper.flex > .entry-aside { width: 100%; }
}
