/* Mejoras de Estética V5 */
.reto-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.reto-actions .boton-secundario,
.reto-actions .boton-peligro-suave {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.6rem;
}

.form-editor {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.form-editor textarea {
    width: 100%;
    height: 300px;
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid #eef2ff;
    font-family: inherit;
    line-height: 1.6;
}

.modal-btns {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.glass-extra {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid white;
}

/* ANALYTICS ENHANCEMENTS (V90) */
.anim-grow {
    animation: growWidth 1.5s ease-out forwards;
}

@keyframes growWidth {
    from {
        width: 0;
    }
}

.alert-item-pro {
    transition: all 0.3s ease;
}

.alert-item-pro:hover {
    transform: translateX(10px);
    background: rgba(239, 68, 68, 0.1) !important;
}

.stat-main h4 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0;
}

.stat-main p {
    font-size: 0.8rem;
    opacity: 0.7;
    margin: 0;
}

/* [V8.30] Botones de acción para Mis Retos */
.btn-accion-reto {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-accion-reto:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.btn-accion-reto:active {
    transform: translateY(0) scale(0.95);
}

/* V232: Estilos para evaluaciones bloqueadas */
.card-reto-v7.bloqueado {
    position: relative;
    opacity: 0.85;
    cursor: not-allowed !important;
}

.card-reto-v7.bloqueado::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(220, 38, 38, 0.05));
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.card-reto-v7.bloqueado>* {
    position: relative;
    z-index: 1;
}

.card-reto-v7.bloqueado:hover {
    transform: none !important;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.25) !important;
}