/* home_preu.css - Estilos específicos para Preuniversitario (Paleta Púrpura ULagos) */

:root {
    --preu-purple: #7E57C5;
    --preu-dark-purple: #5E3A9B;
    --preu-light-purple: #9B7BDF;
}

.homepreu .main-card {
    border-left-color: var(--preu-purple) !important;
}

.homepreu .main-card h1 {
    color: var(--preu-purple) !important;
}

.homepreu .breadcrumb-item a {
    color: var(--preu-purple) !important;
}

.homepreu .breadcrumb-item a:hover {
    color: var(--preu-dark-purple) !important;
}

.homepreu .alert-info {
    background: linear-gradient(135deg, #EDE7F6 0%, #F3E5F5 100%) !important;
    color: var(--preu-dark-purple) !important;
    border-left: 4px solid var(--preu-purple) !important;
}

.homepreu .alert-info i {
    color: var(--preu-purple) !important;
}

/* ========== BOTONES ========== */

.homepreu .btn-primary {
    background: linear-gradient(135deg, var(--preu-dark-purple) 0%, var(--preu-purple) 100%) !important;
    border: none !important;
}

.homepreu .btn-primary:hover {
    background: linear-gradient(135deg, #3A2366 0%, var(--preu-dark-purple) 100%) !important;
}

/* ========== TARJETAS DE CURSO ========== */

.homepreu .card-header-custom {
    background: linear-gradient(135deg, var(--preu-dark-purple) 0%, var(--preu-purple) 100%) !important;
}

.homepreu .course-meta i,
.homepreu .teacher i {
    color: var(--preu-purple) !important;
}

.homepreu .btn-course {
    background: linear-gradient(135deg, var(--preu-dark-purple) 0%, var(--preu-purple) 100%) !important;
}

.homepreu .btn-course:hover {
    background: linear-gradient(135deg, #3A2366 0%, var(--preu-dark-purple) 100%) !important;
}

.homepreu ::-webkit-scrollbar-thumb {
    background: var(--preu-purple) !important;
}

.homepreu ::-webkit-scrollbar-thumb:hover {
    background: var(--preu-dark-purple) !important;
}

.banner-youtube {
    display: block;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(94, 58, 155, 0.2);
    cursor: pointer;
}

.banner-youtube-inner {
    background: linear-gradient(135deg, #003366 0%, #005aa0 60%, #003f7a 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    min-height: 100px;
}

.banner-youtube-inner::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.banner-youtube-inner::after {
    content: '';
    position: absolute;
    bottom: -60px; left: 30%;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem 1.25rem 1.75rem;
    z-index: 1;
    flex: 1;
    min-width: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: left center;
}

.banner-youtube:hover .banner-content {
    transform: translateX(-6px) scale(1.015);
}

.banner-play-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s, transform 0.3s;
    transform-origin: left center;
}

.banner-youtube:hover .banner-play-icon {
    background: #ff0000;
    border-color: #ff0000;
    transform: translateX(-4px) scale(1.08);
}

.banner-play-icon i {
    font-size: 1.6rem;
    color: white;
}

.banner-texto {
    min-width: 0;
}

.banner-titulo {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banner-subtitulo {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.4;
}

.banner-mascota {
    height: 120px;
    width: auto;
    padding-right: 8px;
    object-fit: contain;
    object-position: center;
    align-self: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: right center;
    filter: drop-shadow(-4px 0 12px rgba(0, 0, 0, 0.2));
}

.banner-youtube:hover .banner-mascota {
    transform: translateY(-4px) scale(1.02);
}

/* ========== BADGE "EN CLASES AHORA" ========== */

.badge-clase-vivo {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(126, 87, 197, 0.12);
    color: var(--preu-dark-purple);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(126, 87, 197, 0.2);
}

.badge-clase-vivo .dot-vivo {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--preu-purple);
    animation: pulseDot 1.8s infinite;
}

/* ========== PANEL FLOTANTE CLASE ACTIVA ========== */

.panel-clase-activa {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1040;
    background: linear-gradient(135deg, var(--preu-dark-purple) 0%, var(--preu-purple) 100%);
    color: white;
    padding: 0.85rem 1.25rem;
    box-shadow: 0 -4px 20px rgba(94, 58, 155, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideUpPanel 0.4s ease;
}

.panel-clase-activa .panel-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.panel-clase-activa .pulse-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--preu-light-purple);
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(155, 123, 223, 0.7);
    animation: pulseDot 1.8s infinite;
}

.panel-clase-activa .panel-texto {
    font-size: 0.88rem;
    line-height: 1.3;
    min-width: 0;
}

.panel-clase-activa .panel-texto strong {
    display: block;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-clase-activa .panel-texto span {
    opacity: 0.8;
    font-size: 0.78rem;
}

.btn-marcar-panel {
    background: white;
    color: var(--preu-dark-purple);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.1rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-marcar-panel:hover {
    background: #ede7f6;
    color: var(--preu-dark-purple);
    transform: scale(1.03);
}

.btn-ya-marcado-panel {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: default;
}

/* Espacio para que el panel no tape el último curso */
.homepreu {
    padding-bottom: 80px;
}

@keyframes slideUpPanel {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}

@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(155, 123, 223, 0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(155, 123, 223, 0); }
    100% { box-shadow: 0 0 0 0 rgba(155, 123, 223, 0); }
}

/* ========== ACCIONES DEL PANEL ========== */

.panel-acciones {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.btn-zoom-panel {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    padding: 0.5rem 1.1rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
}

.btn-zoom-panel:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: scale(1.03);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 576px) {
    .banner-youtube-inner {
        min-height: 80px;
    }

    .banner-content {
        padding: 1rem 0.75rem 1rem 1rem;
        gap: 0.75rem;
    }

    .banner-play-icon {
        width: 44px; height: 44px;
    }

    .banner-play-icon i {
        font-size: 1.25rem;
    }

    .banner-titulo {
        font-size: 1rem;
    }

    .banner-subtitulo {
        display: none;
    }

    .banner-mascota {
        height: 80px;
        padding-right: 4px;
    }

    .panel-clase-activa {
        padding: 0.7rem 1rem;
        gap: 0.75rem;
    }

    .panel-clase-activa .panel-texto strong {
        font-size: 0.85rem;
    }

    .btn-marcar-panel,
    .btn-ya-marcado-panel {
        font-size: 0.8rem;
        padding: 0.45rem 0.9rem;
    }

    .panel-acciones {
        gap: 0.4rem;
        width: 100%;
        justify-content: flex-end;
    }

    .btn-zoom-texto {
        font-size: 0.72rem;
    }

    .btn-zoom-panel,
    .btn-marcar-panel,
    .btn-ya-marcado-panel {
        padding: 0.45rem 0.7rem;
        font-size: 0.72rem;
    } 

    
}