/* ============================================================
   custom-home.css - Dashboard Homepage
   States: A (active), B (welcome), C (expired), D (CB expired)
   Scoped to .ip-dashboard-home body class.
   index.php sets this class when activeItemid === siteConfig.itemid_dashboard.
   NO sed pass needed on deployment - works on every instance as-is.
   ============================================================ */

/* Strip demo-card wrapper - content renders via modules in article body */
.ip-dashboard-home .demo-card,
.ip-dashboard-home .demo-card-body {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Strip background card from Bienvenidos slider only */
.ip-dashboard-home .moduletable:has(.ip-slider-bienvenidos),
.ip-dashboard-home .mod-custom:has(.ip-slider-bienvenidos),
.ip-bienvenidos .moduletable:has(.ip-slider-bienvenidos),
.ip-bienvenidos .mod-custom:has(.ip-slider-bienvenidos) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}


/* ============================================================
   SHARED - home card base
   ============================================================ */
.ip-dashboard-home .ip-home-card {
    background: #1F1F21;
    border: 1px solid rgba(228, 230, 252, 0.08);
    border-radius: 12px;
    padding: 20px;
    height: 100%;
}

.ip-dashboard-home .ip-section-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #939397;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ip-dashboard-home .ip-section-label i {
    font-size: 1.2rem;
    color: #7367f0;
}

.ip-dashboard-home .ip-home-card a,
.ip-dashboard-home .ip-course-tile,
.ip-dashboard-home .ip-lesson-card {
    color: inherit;
    text-decoration: none;
}


/* ============================================================
   STATUS BAR CARDS - 3-column
   ============================================================ */
/* Make cols flex containers so height:100% on cards works correctly */
.ip-dashboard-home .row:has(.ip-status-card) > [class*="col"] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Joomla module wrapper inside col must also stretch */
.ip-dashboard-home .row:has(.ip-status-card) > [class*="col"] > .mod-custom {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ip-dashboard-home .ip-status-card {
    background: #1F1F21;
    border: 1px solid rgba(228, 230, 252, 0.08);
    border-radius: 12px;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ip-dashboard-home .ip-status-card .ip-status-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e0e0e5;
    line-height: 1.2;
}

.ip-dashboard-home .ip-status-card .ip-status-meta {
    font-size: 0.8rem;
    color: #939397;
}

.ip-dashboard-home .ip-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 4px;
}

.ip-dashboard-home .ip-plan-badge.active {
    background: rgba(40, 199, 111, 0.12);
    color: #28c76f;
    border: 1px solid rgba(40, 199, 111, 0.3);
    align-self: flex-start;
}

.ip-dashboard-home .ip-plan-badge.monthly {
    background: rgba(115, 103, 240, 0.15);
    color: #7367f0;
    border: 1px solid rgba(115, 103, 240, 0.3);
}

.ip-dashboard-home .ip-plan-badge.complete {
    background: rgba(40, 199, 111, 0.12);
    color: #28c76f;
    border: 1px solid rgba(40, 199, 111, 0.3);
}

.ip-dashboard-home .ip-plan-badge.expired {
    background: rgba(234, 84, 85, 0.12);
    color: #ea5455;
    border: 1px solid rgba(234, 84, 85, 0.3);
    align-self: flex-start;
}

.ip-dashboard-home .ip-status-card.expired a {
    font-size: 0.78rem;
    color: #ea5455;
    text-decoration: none;
    padding: 0 !important;
    margin-top: 4px;
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    transition: color 0.2s;
}
.ip-dashboard-home .ip-status-card.expired a:hover {
    color: #ff6b6c;
    text-decoration: underline;
}

.ip-dashboard-home .ip-days-ring {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ip-dashboard-home .ip-days-number {
    font-size: 2rem;
    font-weight: 700;
    color: #7367f0;
    line-height: 1;
}

.ip-dashboard-home .ip-days-label {
    font-size: 0.75rem;
    color: #939397;
    line-height: 1.3;
}

.ip-dashboard-home .ip-progress-bar-wrap {
    background: rgba(228, 230, 252, 0.08);
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
    margin-top: 4px;
}

.ip-dashboard-home .ip-progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #5F4AFE, #7367f0);
}

.ip-dashboard-home .ip-progress-bar-fill.locked {
    background: rgba(115, 103, 240, 0.3);
}


/* ============================================================
   BUTTONS
   ============================================================ */
.ip-dashboard-home .ip-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(115, 103, 240, 0.15);
    color: #7367f0;
    border: 1px solid rgba(115, 103, 240, 0.55);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
    white-space: nowrap;
}

.ip-dashboard-home .ip-btn-primary:hover {
    background: rgba(115, 103, 240, 0.28);
    color: #9f92fe;
    border-color: rgba(115, 103, 240, 0.7);
    box-shadow: 0 0 0 1px rgba(115, 103, 240, 0.25);
    text-decoration: none;
}

.ip-dashboard-home .ip-status-card .ip-btn-primary,
.ip-dashboard-home .ip-status-card .ip-btn-danger {
    align-self: flex-start;
}

.ip-dashboard-home .ip-btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(234, 84, 85, 0.15);
    color: #ea5455;
    border: 1px solid rgba(234, 84, 85, 0.5);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.ip-dashboard-home .ip-btn-danger:hover {
    background: rgba(234, 84, 85, 0.28);
    color: #ff6b6c;
    border-color: rgba(234, 84, 85, 0.75);
    box-shadow: 0 0 0 1px rgba(234, 84, 85, 0.2);
    text-decoration: none;
}


/* ============================================================
   SECTION HEADERS
   ============================================================ */
.ip-dashboard-home .ip-section-wrap {
    margin-bottom: 28px;
}

.ip-dashboard-home .ip-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ip-dashboard-home .ip-section-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #e0e0e5;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ip-dashboard-home .ip-section-header h2 i {
    font-size: 1.1rem;
    color: #7367f0;
}

.ip-dashboard-home .ip-section-header a.ip-see-all {
    font-size: 0.78rem;
    color: #7367f0;
    text-decoration: none;
    transition: color 0.2s;
}

.ip-dashboard-home .ip-section-header a.ip-see-all:hover {
    color: #9f92fe;
}


/* ============================================================
   LEVEL BADGES
   ============================================================ */
.ip-dashboard-home .ip-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
}

.ip-dashboard-home .ip-level-badge.basico {
    background: rgba(0, 207, 232, 0.12);
    color: #00cfe8;
    border: 1px solid rgba(0, 207, 232, 0.3);
}

.ip-dashboard-home .ip-level-badge.intermedio {
    background: rgba(115, 103, 240, 0.15);
    color: #7367f0;
    border: 1px solid rgba(115, 103, 240, 0.3);
}

.ip-dashboard-home .ip-level-badge.avanzado {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.ip-dashboard-home .ip-level-badge.temas {
    background: rgba(40, 199, 111, 0.12);
    color: #28c76f;
    border: 1px solid rgba(40, 199, 111, 0.3);
}


/* ============================================================
   STATE A - CONTINUAR APRENDIENDO
   ============================================================ */
.ip-dashboard-home .ip-resume-card {
    background: #1F1F21;
    border: 1px solid rgba(228, 230, 252, 0.08);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 16px;
    gap: 20px;
}

@media (max-width: 767px) {
    .ip-dashboard-home .ip-resume-card {
        flex-direction: column;
        align-items: stretch;
    }
}

.ip-dashboard-home .ip-resume-thumb {
    width: 360px;
    aspect-ratio: 16/9;
    flex-shrink: 0;
    background: #2e2e33;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

@media (max-width: 767px) {
    .ip-dashboard-home .ip-resume-thumb {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9;
    }
}

.com-content-article__body .ip-dashboard-home .ip-resume-thumb img,
.ip-dashboard-home .ip-resume-thumb img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
}

.ip-dashboard-home .ip-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.ip-dashboard-home .ip-play-overlay i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.ip-dashboard-home .ip-resume-body {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.ip-dashboard-home .ip-resume-body .ip-btn-primary {
    align-self: flex-start;
}

.ip-dashboard-home .ip-resume-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #e0e0e5;
    line-height: 1.4;
    margin: 0;
}

.ip-dashboard-home .ip-resume-meta {
    font-size: 0.78rem;
    color: #939397;
}


/* ============================================================
   STATE A - COURSE PROGRESS GRID
   ============================================================ */
.ip-dashboard-home .ip-courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .ip-dashboard-home .ip-courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ip-dashboard-home .ip-course-tile {
    background: #1F1F21;
    border: 1px solid rgba(228, 230, 252, 0.08);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    color: inherit;
    position: relative;
}

.ip-dashboard-home .ip-course-tile:hover {
    border-color: rgba(115, 103, 240, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: inherit;
}

.ip-dashboard-home .ip-tile-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.ip-dashboard-home .ip-tile-icon i { font-size: 1.1rem; }

.ip-dashboard-home .ip-tile-icon.basico     { background: rgba(0, 207, 232, 0.12); color: #00cfe8; }
.ip-dashboard-home .ip-tile-icon.intermedio { background: rgba(115, 103, 240, 0.15); color: #7367f0; }
.ip-dashboard-home .ip-tile-icon.avanzado   { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.ip-dashboard-home .ip-tile-icon.temas      { background: rgba(40, 199, 111, 0.12); color: #28c76f; }

.ip-dashboard-home .ip-tile-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #c8c8cd;
    line-height: 1.3;
}

.ip-dashboard-home .ip-tile-count {
    font-size: 0.72rem;
    color: #939397;
}

.ip-dashboard-home .ip-tile-progress-label {
    font-size: 0.7rem;
    color: #939397;
    display: flex;
    justify-content: space-between;
}

.ip-dashboard-home .ip-courses-wrap {
    margin-bottom: 28px;
}

.ip-dashboard-home .ip-courses-footer {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.ip-dashboard-home .ip-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #7367f0;
    background: rgba(115, 103, 240, 0.1);
    border: 1px solid rgba(115, 103, 240, 0.3);
    border-radius: 7px;
    padding: 6px 14px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ip-dashboard-home .ip-btn-ghost:hover {
    background: rgba(115, 103, 240, 0.2);
    border-color: rgba(115, 103, 240, 0.55);
    color: #9f92fe;
    text-decoration: none;
}

.ip-dashboard-home .ip-course-tile.skeleton {
    background: linear-gradient(90deg, #1F1F21 25%, #25252a 50%, #1F1F21 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
    border-color: rgba(228, 230, 252, 0.04);
    min-height: 120px;
    pointer-events: none;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.ip-dashboard-home .ip-course-tile.locked {
    opacity: 0.7;
    cursor: default;
}

.ip-dashboard-home .ip-course-tile.locked:hover {
    border-color: rgba(228, 230, 252, 0.08);
    box-shadow: none;
}

.ip-dashboard-home .ip-lock-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.85rem;
    color: #57575a;
}


/* ============================================================
   STATE A - NOVEDADES GRID
   ============================================================ */
.ip-dashboard-home .ip-novedades-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 991px) {
    .ip-dashboard-home .ip-novedades-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ip-dashboard-home .ip-lesson-card {
    background: #1F1F21;
    border: 1px solid rgba(228, 230, 252, 0.08);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: inherit;
}

.ip-dashboard-home .ip-lesson-card:hover {
    border-color: rgba(115, 103, 240, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: inherit;
}

.ip-dashboard-home .ip-lesson-thumb {
    aspect-ratio: 16/9;
    background: #2e2e33;
    position: relative;
    overflow: hidden;
}

.ip-dashboard-home .ip-lesson-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ip-dashboard-home .ip-lesson-thumb img[src*="thumb-placeholder"] {
    display: none;
}

.ip-dashboard-home .ip-thumb-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
}

.ip-dashboard-home .ip-lesson-info {
    padding: 12px;
    flex: 1;
}

.ip-dashboard-home .ip-lesson-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #c8c8cd;
    line-height: 1.4;
    margin: 0 0 4px;
}

.ip-dashboard-home .ip-lesson-course {
    font-size: 0.72rem;
    color: #939397;
}


/* ============================================================
   STATE A - ANNOUNCEMENT CARD
   ============================================================ */
.ip-dashboard-home .ip-announcement-card {
    background: #1F1F21;
    border: 1px solid rgba(115, 103, 240, 0.25);
    border-left: 3px solid #7367f0;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ip-dashboard-home .ip-ann-icon {
    font-size: 1.3rem;
    color: #7367f0;
    flex-shrink: 0;
    margin-top: 2px;
}

.ip-dashboard-home .ip-ann-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e0e0e5;
    margin: 0 0 4px;
}

.ip-dashboard-home .ip-ann-body {
    font-size: 0.82rem;
    color: #939397;
    margin: 0;
    line-height: 1.5;
}


/* ============================================================
   STATE B - HERO CARD
   ============================================================ */
.ip-dashboard-home .ip-hero-card {
    background: linear-gradient(135deg, #1a1730 0%, #1F1F21 50%, #141418 100%);
    border: 1px solid rgba(115, 103, 240, 0.2);
    border-radius: 14px;
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.ip-dashboard-home .ip-hero-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(95, 74, 254, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

@media (max-width: 767px) {
    .ip-dashboard-home .ip-hero-card {
        flex-direction: column;
        padding: 24px;
        text-align: center;
    }
}

.ip-dashboard-home .ip-hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7367f0;
    margin-bottom: 8px;
}

.ip-dashboard-home .ip-hero-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #e0e0e5;
    line-height: 1.3;
    margin: 0 0 10px;
}

.ip-dashboard-home .ip-hero-sub {
    font-size: 0.9rem;
    color: #939397;
    margin: 0 0 24px;
    line-height: 1.5;
}

.ip-dashboard-home .ip-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #5F4AFE, #7367f0);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s, box-shadow 0.2s;
    border: none;
}

.ip-dashboard-home .ip-hero-cta:hover {
    opacity: 0.9;
    box-shadow: 0 4px 20px rgba(95, 74, 254, 0.35);
    text-decoration: none;
    color: #fff;
}

.ip-dashboard-home .ip-hero-visual {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(115, 103, 240, 0.12);
    border: 1px solid rgba(115, 103, 240, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #7367f0;
}


/* ============================================================
   STATE B - FREE BADGE + SOFT CTA
   ============================================================ */
.ip-dashboard-home .ip-free-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(40, 199, 111, 0.12);
    color: #28c76f;
    border: 1px solid rgba(40, 199, 111, 0.3);
}

.ip-dashboard-home .ip-soft-cta {
    background: #1F1F21;
    border: 1px solid rgba(228, 230, 252, 0.08);
    border-radius: 12px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
}

@media (max-width: 767px) {
    .ip-dashboard-home .ip-soft-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

.ip-dashboard-home .ip-soft-cta-text {
    font-size: 0.95rem;
    color: #c8c8cd;
    margin: 0;
}

.ip-dashboard-home .ip-soft-cta-sub {
    font-size: 0.8rem;
    color: #939397;
    margin-top: 4px;
}


/* ============================================================
   STATE C - EXPIRED
   ============================================================ */
.ip-dashboard-home .ip-expired-status {
    background: rgba(234, 84, 85, 0.06);
    border: 1px solid rgba(234, 84, 85, 0.25);
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ip-dashboard-home .ip-expired-status .ip-status-value {
    font-size: 1rem;
    font-weight: 700;
    color: #ea5455;
}

.ip-dashboard-home .ip-locked-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #57575a;
    margin-top: 8px;
}

.ip-dashboard-home .ip-locked-notice i {
    font-size: 0.9rem;
    color: #57575a;
}

.ip-dashboard-home .ip-resume-card.locked-state .ip-level-badge,
.ip-dashboard-home .ip-resume-card.locked-state .ip-btn-danger {
    align-self: flex-start;
}

.ip-dashboard-home .ip-resume-card.locked-state {
    opacity: 0.75;
    position: relative;
}

.ip-dashboard-home .ip-resume-card.locked-state .ip-resume-thumb img {
    display: block;
    filter: brightness(0.35);
}

.ip-dashboard-home .ip-resume-card.locked-state .ip-resume-thumb {
    background: #1a1a1e;
}

.ip-dashboard-home .ip-lock-icon-big {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #57575a;
    z-index: 1;
}

/* ============================================================
   PROGRESO + ACTIVIDAD CARDS
   ============================================================ */
.ip-dashboard-home .ip-status-cards {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 767px) {
    .ip-dashboard-home .ip-status-cards {
        grid-template-columns: 1fr;
    }
}

.ip-dashboard-home .ip-status-cards > .mod-custom {
    display: contents;
}

.ip-dashboard-home #ip-status-module .ip-status-card {
    background: #1F1F21;
    border: 1px solid rgba(228, 230, 252, 0.08);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

.ip-dashboard-home .ip-status-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #939397;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ip-dashboard-home .ip-status-card-header i {
    font-size: 1.2rem;
    color: #7367f0;
}

.ip-dashboard-home .ip-status-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ip-dashboard-home #ip-pct {
    font-size: 2.4rem;
    font-weight: 700;
    color: #e0e0e5;
    line-height: 1;
    letter-spacing: -0.02em;
}

.ip-dashboard-home .ip-progress-bar {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #5F4AFE, #7367f0);
    transition: width 0.6s ease;
    width: 0;
}

.ip-dashboard-home .ip-progress-label {
    font-size: 0.8rem;
    color: #939397;
    margin-top: 2px;
}

.ip-dashboard-home #ip-card-actividad {
    border-left: 2px solid rgba(115, 103, 240, 0.35);
}

.ip-dashboard-home .ip-activity-count {
    font-size: 3rem;
    font-weight: 700;
    color: #7367f0;
    line-height: 1;
    letter-spacing: -0.02em;
}

.ip-dashboard-home .ip-activity-label {
    font-size: 0.8rem;
    color: #939397;
}

/* ============================================================
   SLIDER MODULES
   All scoped to .ip-slider wrapper class added in module HTML.
   No module IDs - works on every deployment unchanged.
   ============================================================ */

.ip-dashboard-home .titles-style,
.ip-dashboard-home .ip-slider-bienvenidos p.titles-style,
.ip-bienvenidos .titles-style,
.ip-bienvenidos .ip-slider-bienvenidos p.titles-style {
    font-size: 1rem;
    font-weight: 600;
    color: #e0e0e5;
    letter-spacing: normal;
    text-transform: none;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ip-dashboard-home .titles-style i,
.ip-bienvenidos .titles-style i {
    font-size: 1.2rem;
    color: #7367f0;
    line-height: 1;
}

/* Bienvenidos play icon via ::before (no <i> in markup) */
.ip-dashboard-home .ip-slider-bienvenidos .titles-style::before,
.ip-bienvenidos .ip-slider-bienvenidos .titles-style::before {
    font-family: 'bootstrap-icons';
    content: "\F176";
    font-size: 1.2rem;
    color: #7367f0;
    line-height: 1;
    flex-shrink: 0;
}

.ip-dashboard-home .ip-slider,
.ip-bienvenidos .ip-slider {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 24px;
}

.ip-dashboard-home .ip-slider-lecciones {
    margin-top: 0;
}

.ip-dashboard-home .ip-slider .owl2-nav button,
.ip-bienvenidos .ip-slider .owl2-nav button {
    background: rgba(115,103,240,0.15) !important;
    border: 1px solid rgba(115,103,240,0.35) !important;
    color: #7367f0 !important;
    border-radius: 6px !important;
}
.ip-dashboard-home .ip-slider .owl2-nav button:hover,
.ip-bienvenidos .ip-slider .owl2-nav button:hover {
    background: rgba(115,103,240,0.28) !important;
    border-color: rgba(115,103,240,0.6) !important;
}
.ip-dashboard-home .ip-slider .owl-prev,
.ip-dashboard-home .ip-slider .owl-next,
.ip-bienvenidos .ip-slider .owl-prev,
.ip-bienvenidos .ip-slider .owl-next {
    top: calc((100% - 0px) / 2 - 20px) !important;
    transform: none !important;
}
.ip-dashboard-home .ip-slider-bienvenidos .owl-prev,
.ip-dashboard-home .ip-slider-bienvenidos .owl-next,
.ip-bienvenidos .ip-slider-bienvenidos .owl-prev,
.ip-bienvenidos .ip-slider-bienvenidos .owl-next {
    top: calc(24px + (100% - 66px) / 2 - 9px) !important;
    transform: none !important;
}
.ip-dashboard-home .ip-slider .yt-content-slider-item img,
.ip-bienvenidos .ip-slider .yt-content-slider-item img {
    border-radius: 0;
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.ip-dashboard-home .ip-slider .yt-content-slider-caption,
.ip-bienvenidos .ip-slider .yt-content-slider-caption {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #5F4AFE;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    line-height: 1.4;
}
.ip-dashboard-home .ip-slider .yt-content-slide,
.ip-bienvenidos .ip-slider .yt-content-slide {
    position: relative;
    border-radius: 12px;
    background: #1F1F21;
    border: 1px solid rgba(228,230,252,0.12);
    padding: 0;
    overflow: hidden;
}
.ip-dashboard-home .ip-slider .yt-content-slide > a,
.ip-bienvenidos .ip-slider .yt-content-slide > a {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}
.ip-dashboard-home .ip-slider .yt-content-slide > a img,
.ip-bienvenidos .ip-slider .yt-content-slide > a img {
    display: block;
    width: 100%;
    border-radius: 0;
}
.ip-dashboard-home .ip-slider .yt-slide-title,
.ip-bienvenidos .ip-slider .yt-slide-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #c8c8cd;
    margin-top: 0;
    padding: 10px;
    line-height: 1.3;
}
.ip-dashboard-home .ip-slider-bienvenidos .button-news,
.ip-bienvenidos .ip-slider-bienvenidos .button-news {
    display: inline-flex;
    align-items: center;
    padding: 9px 24px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #5F4AFE, #7367f0);
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s, box-shadow 0.2s;
}
.ip-dashboard-home .ip-slider-bienvenidos .button-news:hover,
.ip-bienvenidos .ip-slider-bienvenidos .button-news:hover {
    opacity: 0.9;
    box-shadow: 0 4px 16px rgba(95, 74, 254, 0.35);
}
.ip-dashboard-home .ip-slider-bienvenidos p,
.ip-bienvenidos .ip-slider-bienvenidos p {
    color: #c8c8cd;
    font-size: 0.9rem;
    margin-top: 16px;
    text-align: center;
}
.ip-dashboard-home .ip-slider .caption,
.ip-bienvenidos .ip-slider .caption {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(95, 74, 254, 0.82);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 0;
    text-transform: uppercase;
    line-height: 1.4;
    pointer-events: none;
    z-index: 2;
}



/* ============================================================
   MISC LINKS
   ============================================================ */
.ip-dashboard-home .ip-renew-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: #ea5455;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    transition: color 0.2s;
}
.ip-dashboard-home .ip-renew-link:hover {
    color: #ff6b6c;
    text-decoration: underline;
}

.ip-dashboard-home .ip-advance-link {
    color: #7367f0;
    display: inline-flex;
}
.ip-dashboard-home .ip-advance-link:hover {
    color: #9f92fe;
}

/* Bienvenidos slider: strip Conca mod-custom wrapper padding */
.ip-dashboard-home .mod-custom:has(.ip-slider-bienvenidos),
.ip-bienvenidos .mod-custom:has(.ip-slider-bienvenidos) {
    padding: 0 !important;
}

/* Bienvenidos slider / soft CTA spacing */
.ip-dashboard-home .ip-slider-bienvenidos,
.ip-bienvenidos .ip-slider-bienvenidos { margin-bottom: 0; }
.ip-dashboard-home .mod-custom:has(.ip-soft-cta) { margin-top: 8px; }
.ip-dashboard-home .ip-soft-cta { padding-top: 24px; }
