/* /rutinas/{slug} — detalle de rutina (alineado a tienda oscura) */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700&family=Jost:wght@500;600;700;800&display=swap');

body {
    background-color: #1a1a1a !important;
}

.rp-page {
    background: #1a1a1a;
    color: #ffffff;
    font-family: 'Heebo', system-ui, sans-serif;
    min-height: 60vh;
    padding: calc(var(--hf-navbar-h, 72px) + 1.25rem) 0 4rem;
    -webkit-font-smoothing: antialiased;
}

.rp-page h1,
.rp-page h2,
.rp-page h3,
.rp-page h4,
.rp-page h5 {
    font-family: 'Jost', 'Heebo', system-ui, sans-serif !important;
    color: #ffffff !important;
    letter-spacing: -0.02em;
}

.rp-container {
    max-width: 1120px;
}

/* ---------- Banner ---------- */
.rp-banner {
    margin-bottom: 1.75rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #3C3C3C;
    background: #2c2c2c;
}

.rp-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.rp-banner__desk {
    display: block;
}

.rp-banner__mob {
    display: none;
}

@media (max-width: 991.98px) {
    .rp-banner__desk {
        display: none;
    }
    .rp-banner__mob {
        display: block;
    }
}

/* ---------- Layout ---------- */
.rp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas:
        "main sidebar"
        "muscles sidebar";
    gap: 1.5rem;
    align-items: start;
}

.rp-main {
    grid-area: main;
    min-width: 0;
}

.rp-sidebar {
    grid-area: sidebar;
    position: sticky;
    top: calc(var(--hf-navbar-h, 72px) + 1rem);
}

.rp-muscles {
    grid-area: muscles;
}

@media (max-width: 991.98px) {
    .rp-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "sidebar"
            "muscles";
    }

    .rp-sidebar {
        position: static;
    }
}

/* ---------- Title ---------- */
.rp-title-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.rp-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    flex: 1;
}

.rp-share {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #6F6F6F;
    background: #2c2c2c;
    color: #b8b8b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rp-share:hover {
    color: #88F047;
    border-color: #88F047;
    background: #242424;
}

/* ---------- Tabs ---------- */
.rp-tabs {
    margin-bottom: 1.5rem;
}

.rp-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    border-bottom: 2px solid #3C3C3C;
}

.rp-tabs__btn {
    appearance: none;
    border: none;
    background: transparent;
    color: #a8a8a8;
    font-family: 'Heebo', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.7rem 1rem;
    margin-bottom: -2px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.rp-tabs__btn:hover {
    color: #88F047;
}

.rp-tabs__btn.is-active {
    color: #88F047;
    border-bottom-color: #88F047;
}

.rp-tabs__panel {
    display: none;
}

.rp-tabs__panel.is-active {
    display: block;
}

.rp-prose {
    color: #d4d4d4;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.rp-prose p,
.rp-prose li,
.rp-prose span,
.rp-prose div {
    color: #d4d4d4 !important;
}

.rp-prose strong,
.rp-prose b {
    color: #ffffff !important;
}

.rp-prose a {
    color: #88F047 !important;
}

.rp-empty {
    color: #a8a8a8;
    font-size: 0.95rem;
    margin: 0;
    padding: 0.5rem 0;
}

/* Comments inside tabs */
.rp-comments {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.rp-comment {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: #2c2c2c;
    border: 1px solid #3C3C3C;
}

.rp-comment__author {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff !important;
    margin: 0 0 0.35rem;
}

.rp-comment__text {
    color: #c8c8c8;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ---------- Muscles + 3D panel ---------- */
.rp-muscles {
    margin-top: 0;
    padding: 1.25rem;
    border-radius: 14px;
    background: #2c2c2c;
    border: 1px solid #3C3C3C;
}

.rp-muscles__head {
    margin-bottom: 1rem;
}

.rp-muscles__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.rp-muscles__hint {
    color: #a8a8a8;
    font-size: 0.875rem;
    margin: 0;
}

.rp-muscles__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

@media (max-width: 767.98px) {
    .rp-muscles__grid {
        grid-template-columns: 1fr;
    }
}

.rp-model-wrap {
    border-radius: 12px;
    background: #242424;
    border: 1px solid #3C3C3C;
    overflow: hidden;
    min-height: 320px;
}

#modelo-3d {
    width: 100%;
    height: 420px;
    display: block;
    background: #242424;
    cursor: grab;
}

@media (max-width: 991.98px) {
    #modelo-3d {
        height: 360px;
    }
}

.rp-muscles__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rp-priority {
    margin-bottom: 1rem;
}

.rp-priority:last-child {
    margin-bottom: 0;
}

.rp-priority__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 0.45rem;
}

.rp-priority__label i {
    font-size: 0.9rem;
}

.rp-priority__muscles {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.rp-priority__muscles li {
    position: relative;
    color: #c8c8c8;
    font-size: 0.95rem;
    line-height: 1.4;
}

.rp-priority__muscles li::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.55;
}

.rp-muscles__list-empty {
    color: #a8a8a8;
    font-size: 0.9rem;
    margin: 0;
}

.rp-buy {
    padding: 1.25rem;
    border-radius: 14px;
    background: #2c2c2c;
    border: 1px solid #3C3C3C;
}

.rp-buy__row {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}

.rp-price {
    font-family: 'Jost', sans-serif !important;
    font-size: 1.85rem;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0;
    line-height: 1.1;
}

.rp-price--free {
    color: #88F047 !important;
}

.rp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    border: none;
    background: #88F047;
    color: #111111 !important;
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rp-cta:hover {
    background: #7FE312;
    color: #111111 !important;
    text-decoration: none;
    transform: translateY(-1px);
}

.rp-buy__divider {
    border: none;
    border-top: 1px solid #3C3C3C;
    margin: 0 0 1.1rem;
}

.rp-buy__section-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.85rem;
    color: #ffffff !important;
}

.rp-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.rp-features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #d4d4d4;
    font-size: 0.95rem;
}

.rp-features li i {
    width: 1.1rem;
    text-align: center;
    color: #88F047;
}

/* ---------- Recommended ---------- */
.rp-recommended {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #3C3C3C;
}

.rp-recommended__head {
    margin-bottom: 1.35rem;
    text-align: left;
}

.rp-recommended__title {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.rp-recommended__sub {
    color: #a8a8a8;
    font-size: 0.95rem;
    margin: 0;
}

.rp-rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.rp-rec-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #2c2c2c;
    border: 1px solid #3C3C3C;
    text-decoration: none !important;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rp-rec-card:hover {
    border-color: #88F047;
    transform: translateY(-2px);
    text-decoration: none;
}

.rp-rec-card__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #242424;
}

.rp-rec-card__body {
    padding: 0.85rem 1rem 1rem;
}

.rp-rec-card__name {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff !important;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.rp-rec-card__meta {
    color: #88F047;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.rp-rec-empty,
.rp-rec-loading {
    color: #a8a8a8;
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 575.98px) {
    .rp-page {
        padding-left: 0;
        padding-right: 0;
    }

    .rp-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .rp-tabs__btn {
        padding: 0.65rem 0.75rem;
        font-size: 0.875rem;
    }
}
