﻿/* =========================================================
   PÁGINA RUTINAS
   ========================================================= */

.rutinas-wrapper {
    max-width: 1100px;
}

/* ===== CABECERA ===== */
.rutinas-page-title {
    color: #1f2937;
    letter-spacing: 0.3px;
}

.rutinas-page-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
}

/* ===== TARJETAS ===== */
.rutina-card {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease;
    margin-bottom: 1.8rem;
}

    .rutina-card:hover {
        border-color: #dbe5f0;
    }

    .rutina-card .card-body {
        padding: 1.35rem 1.4rem;
    }

/* ===== TÍTULOS DE BLOQUE ===== */
.rutina-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #1f2937;
    text-transform: uppercase;
    margin-bottom: 1.05rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #edf2f7;
}

/* ===== ITEMS ===== */
.rutina-item {
    padding: 0.3rem 0;
}

    /* separación sutil entre rutinas */
    .rutina-item:not(:last-child) {
        border-bottom: 1px dashed #eef2f7;
        padding-bottom: 0.6rem;
        margin-bottom: 0.3rem;
    }

    .rutina-item a {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        line-height: 1.2;
        font-size: 0.98rem;
        font-weight: 600;
        color: #0d6efd;
        transition: color 0.2s ease, transform 0.15s ease, text-decoration-color 0.2s ease;
    }

        .rutina-item a:hover {
            color: #0a58ca;
            transform: translateX(4px);
            text-decoration: underline;
        }

        .rutina-item a:focus {
            outline: none;
            box-shadow: none;
        }

.rutina-icon {
    position: relative;
    top: 1px;
    font-size: 1rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.rutina-desc {
    margin-top: 0.2rem;
    margin-left: 1.2rem;
    font-size: 0.84rem;
    line-height: 1.4;
    color: #6c757d;
}

/* ===== BADGE PENDIENTE ===== */
.badge-pendiente {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 0.45rem;
    border-radius: 50%;
    background: #dc3545;
    position: relative;
    flex-shrink: 0;
}

    .badge-pendiente::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: rgba(220, 53, 69, 0.45);
        animation: rutina-pulse 1.6s infinite ease-out;
    }

@keyframes rutina-pulse {
    0% {
        transform: scale(1);
        opacity: 0.75;
    }

    70% {
        transform: scale(2.2);
        opacity: 0;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}

.breadcrumb-item {
    font-size: 0.9rem;
    color: #9ca3af;
}

    .breadcrumb-item a {
        color: #6b7280;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .breadcrumb-item a:hover {
            color: #0d6efd;
        }

    .breadcrumb-item.active {
        color: #1f2937;
        font-weight: 500;
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .rutinas-wrapper {
        max-width: 100%;
    }

    .rutina-card .card-body {
        padding: 1.1rem 1rem;
    }

    .rutina-title {
        font-size: 0.95rem;
    }

    .rutina-item a {
        font-size: 0.95rem;
    }

    .rutina-desc {
        margin-left: 1.1rem;
        font-size: 0.8rem;
    }
}



.badge-pendiente {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 0.45rem;
    border-radius: 50%;
    background: #dc3545;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

    .badge-pendiente::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: rgba(220, 53, 69, 0.5);
        animation: rutina-pulse 1.8s infinite ease-out;
    }